728x90 반응형 메소드1 자바 기초_ 메소드(method), 생성자, GETTER,SETTER 소스코드(메소드) public class MethodExample { /* 메인 메소드 가 최초로 실행이되면서 * */ public static void main(String[] args) { // String a = "hello"; // String b = "hongdroid"; // // System.out.println(a+b); MethodExample methodExample = new MethodExample(); // 생성 methodExample.StrCombine("hello","hongdroid"); // 메소드(실행형 메소드) 실행(String 타입 2개) System.out.println(methodExample.StrHongdroid("hello","hongdroid")); } /.. 2023. 1. 18. 이전 1 다음 728x90 반응형