분류 전체보기 (318) 썸네일형 리스트형 java - No enclosing instance of type Main is accessible. No enclosing instance of type Main is accessible. Must qualify the allocation with an enclosing instance of type Main (e.g. x.new A() where x is an instance of Main). public class Main { public static void main(String[] args) {Solution s = new Solution(); }class Solution { public int solution(String numbers) { int answer = 0; return answer; }} } public class Main { public static void main(String.. java.lang.String.substring String java.lang.String.substring(int beginIndex, int endIndex) substringpublic String substring(int beginIndex, int endIndex)Returns a string that is a substring of this string. The substring begins at the specified beginIndex and extends to the character at index endIndex - 1. Thus the length of the substring is endIndex-beginIndex. Examples: "hamburger".substring(4, 8) returns "urge" "smiles".. java.util.Arrays.sort sortpublic static void sort(T[] a, Comparator Arrays.copyOfRange(original, from, to) copyOfRangepublic static boolean[] copyOfRange(boolean[] original, int from, int to)public static int[] copyOfRange(int[] original, int from, int to)Copies the specified range of the specified array into a new array. The initial index of the range (from) must lie between zero and original.length, inclusive. The value at original[from] is placed into the initial element of the copy (unless from =.. java - Array constants can only be used in initializers Array constants can only be used in initializers IT 관련/Programming [자바오류] Array constants can only be used in initializers 출처: http://resup.tistory.com/15 String[] phone_book = {"12232332", "12", "222222"}; phone_book = {"911", "97625999", "91125426"}; String[] phone_book = {"12232332", "12", "222222"}; String[] phone_book2 = {"911", "97625999", "91125426"}; 피보나치 https://programmers.co.kr/learn/courses/30/lessons/42576http://allg.tistory.com/18 java.util.ConcurrentModificationException Exception in thread "main" java.util.ConcurrentModificationExceptionat java.util.HashMap$HashIterator.nextNode(Unknown Source)at java.util.HashMap$KeyIterator.next(Unknown Source)at programmers.hash.Solution.removeKey(Solution.java:51)at programmers.hash.Solution.solution(Solution.java:29)at programmers.hash.Main.main(Main.java:9) git test2 이클립스 깃 연동 Repository 폴더를 따로 만든 경우 Project name: javaproject1D:\workspace/javaproject1D:\repositories\javaproject1 Project Explorer 에서 프로젝트 이름 > 오른쪽 클릭 > Team > Share ProjectConfigure Git RepositoryCreate 미리 만들어논 폴더 지정D:\repositories\javaproject1 2. Repository: D:\repositories\javaproject1\.git Git Perspective : Git Repositories Remote 저장소와 연결하기Remotes > 마우스 우클릭 > Create RemoteRemote name: originOK Configure Pushhttps://github.co.. 이전 1 ··· 25 26 27 28 29 30 31 ··· 40 다음