프로그래밍/Java25 이클립스 플러그인 수동설치 https://skyfox83.tistory.com/532 [에러/Spring] Java ORM Plugin 설치 0. 참고도서 - 스프링 퀵 스타트 / 채규태 1. 현상 - MyBatis 사용을 위해 이클립스에서 "Java ORM" 플러그인 설치 필요! - 이클립스 Help > Eclipse Marketplace > (Find) ORM 검색 시 해당 프로그램이 나오지.. skyfox83.tistory.com 2021. 11. 25. [Java] String 값 ',' 기준으로 잘라서 List에 넣기 // for문을 이용한 split -> list 변환 String str = "a,b,c,d,e,f,g"; List list = new ArrayList(); String[] splitStr = str.split(","); for(int i=0; i 2021. 11. 23. 이클립스 자동빌드 되지않을때 [임시방편] Project -> build automatically가 체크되어있어도 소스코드를 수정하면 바로 빌드되지 않을때는 좌측 Project Explorer 에서 F5를 누르면 된다 2021. 10. 18. [Java] 특정문자의 개수 구하는 법 아래 코드들은 char형이기때문에 2개이상의 문자의 개수를 구할수없다. 1. 반복문 사용 public class CharCount { public static void main(String[] args) { String str = "apple"; System.out.println(countChar(str, 'a')); // 1 System.out.println(countChar(str, 'p')); // 2 System.out.println(countChar(str, 'l')); // 1 System.out.println(countChar(str, 'e')); // 1 System.out.println(countChar(str, 'c')); // 0 } public static int countChar(.. 2021. 10. 14. 이전 1 2 3 4 5 6 7 다음