일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- Login with OAuth Authentication
- 페이징
- 전체
- angular2
- full text indexing
- Validations
- 단축키
- Random
- 다운캐스팅
- 형변환
- while
- 스프링
- 추상클래스
- 상속
- jquery
- 25가지 효율적인 sql작성법
- 전자정부
- 상속예제
- IBatis procedure
- Full text
- 업캐스팅
- 이클립스
- 자바 야구게임
- 로또
- 야구게임
- 다형성
- 가변인자
- 자바
- 전체텍스트
- Today
- Total
목록JAVA (117)
nalaolla
package test.com; import java.util.Scanner; public class Test04Score2 { public static void main(String[] args) { Test04ScoreSub scoresub = new Test04ScoreSub(); scoresub.ScorePrint(); } } class Test04ScoreSub{ public void ScorePrint(){ System.out.println("[성적관리 프로그램]"); System.out.println("========================="); Scanner scanner = new Scanner(System.in); System.out.println("국어점수입력"); int ko..
package test.com; public class Test04Score { public static void main(String[] args) { //성적처리 프로그램 String nKor = "국어"; String nEng = "영어"; String nMath = "수학"; int korScore = 100; int engScore = 49; int mathScore = 98; int totalSum = korScore+engScore+mathScore; double totalAvg = totalSum/3; String inputComment = " 점수를 입력학세요 : "; String line = "========================"; //변수의 상수 처리를 위한 final fin..
package test.com; public class Test03Sysout { public static void main(String[] args) { //System 출력(콘솔출력) System.out.println(1);//숫자 : ""표기생략 System.out.println(10); System.out.println(3.14); System.out.println(-1200); System.out.println("TEXT"); //문자열표기 System.out.println('민'); //문자 : ''표기 System.out.println(11+22); System.out.println(""+11+22); System.out.println(11+22+""); System.out.println("..
package test.com; public class Test02Comment { public static void main(String[] args) { //main coding >> ctrl + space //주석 : 단축키 Ctrl + Shift + c, // Ctrl + / /* 한줄또는 여러줄 주석(주석하고자 하는 코딩 drag후) : * Ctrl + Shift + / * 주석해제 : Ctrl + Shift + */ //줄정리 단축키 : Ctrl + Shift + f// 'sysout' + Ctrl + Shift = System.out.println(); } }
//package 이름package test.com; //class 선언public class Test01Hello { public static void main(String[] args) { System.out.println("Hello"); System.out.println("World"); } }=================================================================자바의 가장 기초적인 문법 [라인설명]2. 패키지 선언5. 클래스 선언7. Main메소드 선언9~11. console창에 해당 문자열 출력
import java.util.Random; public class Lotto_while { public static void main(String[] args) { // TODO Auto-generated method stub int[] lot = new int[7]; Random rdm = new Random(); for (int i = 0; i < lot.length; i++) { int rdm_num = rdm.nextInt(45) + 1; lot[i] = rdm_num; boolean exist = true; wh: while (exist) { for (int j = 0; j < i; j++) { if (lot[j] == rdm_num) { exist = false; System.out.prin..
package test.com; import java.util.Random; public class Lotto { public static void main(String[] args) { // TODO Auto-generated method stub int[] lot = new int[7]; int rdm_num; Random rdm = new Random(); for (int i = 0; i < lot.length; i++) { rdm_num = rdm.nextInt(45)+1; System.out.println(rdm_num); lot[i] = rdm_num; for (int j = 0; j < i; j++) { if(lot[j] == rdm_num) { System.out.println("중복에 의..