일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 월간결산
- python visualization
- 텐서플로
- 파이썬
- 한빛미디어
- Tistory
- 독후감
- Visualization
- matplotlib
- 시각화
- 서평단
- 딥러닝
- 통계학
- Python
- Ga
- 블로그
- 파이썬 시각화
- 한빛미디어서평단
- 티스토리
- 매틀랩
- Linux
- tensorflow
- MySQL
- Pandas
- Blog
- Google Analytics
- SQL
- 서평
- 리눅스
- MATLAB
- Today
- Total
목록분류 전체보기 (596)
pbj0812의 코딩 일기
package ch4.test; public class DoWhile1 { public static void main(String[] args) { int n = 1; do { System.out.println("Hello world"); n++; } while(n
public class For3Star { public static void main(String[] args) { String star = "☆"; for (int num1 = 1; num1
public class While1 { public static void main(String[] args) { int flag = 1; while(flag < 11) { System.out.println(flag); //flag++; flag += 2; } } } while(조건식) { 실행문 증감문 }
package ch4.test; public class Switch1 { public static void main(String[] args) { //boolean boo = true;// switch 불가 //double dou = 7.7;// switch 불가 char ch = 'A'; // char, int switch 가능 switch(ch) { case 'A' : System.out.println("A"); break; } String str = "hi"; switch(str) { case "hi" : System.out.println("hi");break; } } } switch(변수) { case 변수일치조건1 : 실행문 case 변수일치조건2 : 실행문 ... } 주의할 점은 case 가 ..
import java.util.Scanner; public class If3 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("정수입력 : "); int intVar = sc.nextInt(); if(intVar == 1) { System.out.println("1"); }else if(intVar == 2) { System.out.println("2"); }else { System.out.println("error"); } } } if (조건식) { 실행문 }
import java.util.Scanner; // Util package의 scanner class 가져오기 public class TestScanner { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // System.in ->입력 버퍼를 연결하겠다. System.out.println("int 입력"); // 문구 띄우기 int intVar = sc.nextInt(); // 입력 대기 상태 System.out.println("dfdf" + intVar); } }
public static void main(String[] args) { int intVar = (10 > 100)? 10 : 100; System.out.println(intVar); } 결과 : 100 해석 : 10이 100보다 크면 10을 intVar에 저장하고 아니면 100을 저장해라.
public class TestInteger { public static void main(String[] args) { String s1 = "123"; System.out.println(Integer.valueOf(s1) + 123); System.out.println(Integer.MAX_VALUE); // integer 최대 범위 21억 머시기 System.out.println(Integer.MIN_VALUE); // integer 최소 범위 -21억 머시기 System.out.println(Integer.SIZE); // integer bit 사이즈 32 Integer integerVar = new Integer(777); byte byteVar = integerVar.byteValue(); s..
ex1) public class String2Index { public static void main(String[] args) { String str1 = "Nice to meet you !!!"; // index - 위치(0에서 시작) // length - 길이 System.out.println(str1.length()); // 문자열의 길이 System.out.println(str1.charAt(1)); // 특정 번지의 문자 추출 System.out.println(str1.indexOf('!')); // 특정 문자의 첫번째 위치 System.out.println(str1.lastIndexOf('!')); // 특정 문자의 마지막 위치 System.out.println(str1.indexOf("to..
/* * Math Class * - 수학 관련 method들이 있는class * - 모든 method가 static method로 객체 생성(new) 없이 사용 가능(예:Math.random()) * - abs(절대값), sin, cos, tan, log, exp(지수) * - ceil(올림), round(반올림), floor(내림) * - max(큰 수), min(작은 수) * - pow(승수), sqrt(제곱근), random(무작위 수) */public class MathTest { public static void main(String[] args) {System.out.println("Math.ceil(0.1) : " + Math.ceil(0.1));System.out.println("Math...