#include void main() {printf("long : %dByte\n", sizeof(long));printf("double : %dByte\n", sizeof(double));printf("int : %dByte\n", sizeof(int));printf("char : %dByte\n", sizeof(char));} long : 4Bytedouble : 8Byteint : 4Bytechar : 1Byte sizeof(데이터타입) 을 통해 변수의 데이터 크기를 확인할 수 있습니다.
import this Beautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is better than complicated.Flat is better than nested.Sparse is better than dense.Readability counts.Special cases aren't special enough to break the rules.Although practicality beats purity.Errors should never pass silently.Unless explicitly silenced.In the face of ambiguity, refuse ..
package day160708; class Phone{String model, maker, color;int count;Phone(String model){this(model, "강남점", 25);}Phone(String model, String maker, int count){this(model, maker, count, "white");}Phone(String model, String maker, int count, String color){this.model = model;this.color = color;this.count = count;this.maker = maker;}void phonePrint(){System.out.println("=-=-=-=-=-= Phone =-=-=-=-=-=-"..
package day160708; class robotInfo{String model, lang;int since, working;robotInfo(String model, int since, int working, String lang){this.model = model;this.since = since;this.working = working;this.lang = lang;this.robotInfoPrint();}void robotInfoPrint(){System.out.println("=-=-=-=-= INFO =-=-=-=-=");System.out.println("Model : " + this.model);System.out.println("DEV_lang : " + this.lang);Syst..
package day160708; class person{int age,year,day;String name;person(String Cname, int Cage, int Cyear, int Cday){name = Cname;age = Cage;year = Cyear;day = Cday;}} public class day160708_01 { public static void main(String[] args) {person humanA = new person("홍길동", 44, 1358, 15);System.out.println("=-=-=-=-=-= INFO =-=-=-=-=-=-=");System.out.println("Name : " + humanA.name);System.out.println("A..
package day160707; class overLoading2{void add(int a){System.out.println("a = " + a);}void add(int a, int b){System.out.println("a + b = " + (a+b));}void add(int a, int b, int c){System.out.println("a + b + c = " + (a+b+c));}} public class day160707_04 { public static void main(String[] args) {overLoading2 ol2 = new overLoading2();ol2.add(15);ol2.add(25, 52);ol2.add(853,996,1004);} } a = 15a + b..