JAVA/예제

[JAVA] ch02-04. 공란 활용

밍글링글링 2017. 8. 21.
728x90
 
public class Ex04 { // 공란 활용
    public static void main(String[] args){
        String a = 7 + " ";
        String b = " " + 7;
        String c = 7 +"";
        String d = "" + 7;
        String e = "" + "";
        String f = 7 + 7 +"";
        String g = "" + 7 + 7;
        
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
        System.out.println(e);
        System.out.println(f);
        System.out.println(g);                
    }
}

728x90

댓글