isUpperCase(); 함수 사용하는데 not dereferenced error 에러 발생 원인: Object자리에 primitive 타입을 사용해서 에러가 났다. isUpper 함수는 Character.isUpperCase() 로 사용해야 하는데 char.isUpperCase()로 사용해서 발생한 에러 해결 Chracater.isUpperCase(c); 참고사이트 https://coderanch.com/t/389420/java/dereferenced-error not dereferenced error (Beginning Java forum at Coderanch) coderanch.com
String배열 Int배열로 변환 import java.util.stream.Stream; String[] stringArr = {"111", "222", "333"}; int[] intArr = Stream.of(stringArr).mapToInt(Integer::parseInt).toArray(); System.out.println(Arrays.toString(intArr)); //[111, 222, 333] Int배열 String배열로 반환 import java.util.stream.Stream; String ss[] = Stream.of(intArr).map(String::valueOf).toArray(String[]::new); System.out.println(Arrays.toString(ss..
문자열 자르기 - Split String a = "a,b,c,d,e"; String[] arr = a.split(","); System.out.println(Arrays.toString(arr)); [a, b, c, d, e] 특정문자 제거하기 - replace a = a.replace("{","").replace("}",""); 맨 앞의 요소 제거하기 - substring if(a.startsWith(",")) { a = a.substring(1); } String to Int String s = "123"; int StringToInt = Integer.parseInt(a); Int to String int i = 123; String IntToString = Integer.toString(i); S..
Stack의 특징 1.LIFO(Last In First Out)구조 2.그래프의 깊이우선탐색(DFS)에서 사용 3.재귀함수 호출할 때 사용 import java.util.Stack; Stack stack = new Stack(); stack.push(0); //값 추가 stack.pop(); //맨 위의 요소 제거 stack.peek(); //맨 위의 요소 조회 stack.clear(); //전체 값 제거 stack.size(); //크기 조회 stack.contains(0) // stack에 0이 있는지 check stack.empty() // stack이 비어있는지 체크 //empty check boolean empty = stack.isEmpty(); boolean empty = stack.empt..
- Total
- Today
- Yesterday
- provisioning key
- New Group Without Folder
- 알고리즘
- 장고
- New Group
- 이분탐색
- mvvm in swiftui
- ios mvvm
- 백준
- 백준알고리즘
- xcsharedata
- 백준 4673 swift
- sileo
- readme ignore파일 포함한 repository
- ios
- 클로저
- closure
- 파이썬
- main branch
- 프로퍼티 래퍼
- 애플 인증서
- Widget
- SWiFT
- django
- property wrapper
- 애플 인증
- 백준 1065번 swift
- palera1n
- xcuserdata
- Xcode
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |