Programming languages/JAVA
2023. 1. 25.
3. 클래스, 메소드, 인스턴스, Static
import javax.swing.*; import java.io.FileWriter; import java.io.IOException; import java.util.Scanner; //클래스,메소드 public class third { public static String glob = "I am Global!"; //전역 변수 선언 public static void main(String[] args) throws IOException { IO_PS a2 = new IO_PS("A2"); //인스턴스 생성 other_method(); my_method(); a2.print(glob); //전역 변수 호출 second.str_conditional(); //다른 클래스에 존재하는 메소드 호출 } //다른 ..