Development/Java(853)
-
ConsoleOutputEx04 - %서식문자 확인
%서식문자 확인 문자열의 조합에 사용되는 서식문자들 서식문자출력의 형태%d10진수 정수 형태의 출력%o8진수 정수 형태의 출력%x16진수 정수 형태의 출력%f실수의 출력%ee표기법 기반의 실수 출력%g출력의 대상에 따라서 %e또는 %f형태의 출력%s문자열 출력%c문자 출력 소스코드 public class ConsoleOutputEx04 { public static void main(String[] args) { System.out.printf("%d",23); System.out.println(""); System.out.printf("%x %x", 23, 32); System.out.println(""); System.out.printf("%o",23); System.out.println(""); Sy..
-
ConsoleOutputEx02 - printf( )메소드를 통한 문자열 조합
printf( )메소드를 통한 문자열 조합 소스코드 public class ConsoleOutputEx02 { public static void main(String[] args) { //JDK 1.5이상부터 사용가능합니다. System.out.printf("정수는 %d, 실수는 %f, 문자는 %c, 문자열는 %s", 7, 3.14F, 'J', "Love"); } } 출력결과
-
JDK 설치 - 단계별 Step by Step
java 개발 환경구축 (단계별 Step by Step) JDK 다운로드 http://codedragon.tistory.com/2345 JDK설치 http://codedragon.tistory.com/2346 JDK 정상 설치여부 확인 http://codedragon.tistory.com/2347
-
switch문
switch문· if문의 조건값은 boolean형인데 비해 · switch문의 조건값은 long형을 제외한 정수형(byte, short, int) 또는 char형이 올 수 있습니다. · 키워드 case, default를 가리켜 레이블이라고 합니다.· break문을 만나면 해당 switch문을 빠져나가게 됩니다. · break문은 조건 값마다 넣어주는 것을 권장하며 만약 없을 시에는 다음 break문을 만날 때까지 모든 수행문을 처리합니다.· (주의) case뒤에 오는 조건값은 중복되지 않아야 합니다. 그렇지 않으면 case를 구분하는 값이 복제되어 중복되었다는 오류가 발생합니다. switch(인자값) { case 조건값1 : // semicolon(;)이 아닌 colon(:) -> (주의) 수행문; br..
-
Eclipse version – MARS updated
MARS4.5 LUNA4.4 KEPLER4.3 JUNO4.2 INDIGO3.7 HELIOS3.6 GALILEO3.5 GANYMEDE3.4 EUROPA3.3 CALLISTO3.2
-
JAVA Update – 자바 자동 업데이트
우측 하단의 풍선도움말 우측하단의 JAVA아이콘 클릭 업데이트 나중에 알림 Java 버전 목록 보기한 경우 닫기