일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 백준 14391
- 알고리즘
- 코딩테스트
- 백준 17425
- 자바
- 백준 11723
- 백준 16935
- Math.ceil()
- 프로그래머스 옹알이 java
- Math.floor()
- java 내림
- Algorithm
- java 올림
- java
- Arrays
- 프로그래머스 숫자의 표현 java
- java 반올림
- sort
- 프로그래머스 네트워크 java
- 백준 16927
- mysql
- 백준 4375
- 네트워크
- 백준 18290
- 백준 15661
- time complexity
- Codility
- 프로그래머스 도둑질 java
- 0으로 채우기
- 프로그래머스 연속된 수의 합 java
- Today
- Total
목록자바 (3)
취미처럼
public static void main(String args[]) { //10진수 int deciaml = 15; //2진수 String binaryString = Integer.toBinaryString(deciaml); int binaryToDecimal = Integer.parseInt(binaryString, 2); System.out.println(binaryString); //1111 System.out.println(binaryToDecimal); //15 //8진수 String octalString = Integer.toOctalString(deciaml); int octalToDecimal = Integer.parseInt(octalString, 8); System.out.printl..
Error updating database. Cause: java.sql.SQLException: Incorrect string value: '\xF0\x9F\xAB\x96 ' for column 'columnname' at row 1 Cause: java.sql.SQLException: Incorrect string value: '\xF0\x9F\xAB\x96 ' for column 'columnname' at row 1; uncategorized SQLException; SQL state [HY000]; error code [1366]; Incorrect string value: '\xF0\x9F\xAB\x96 ' for column 'columnname' at row 1; nested excepti..
1. casting : Object가 String이 아니면, 캐스팅 에러가 발생한다. 2. toString : Object가 null이면 NullPointerException이 발생한다. 3. String.valueOf : 파라미터가 null이면 문자열 "null"을 리턴한다. public static void main(String args[]) { int num = 1; Object obj = null; Integer integer = new Integer(1); // (String) 캐스팅 String str1 = (String) num;// 캐스팅 에러 String str2 = (String) obj;// null String str3 = (String) integer;// 캐스팅 에러 // toS..