Programming/[Java]

    문자열 합치기

    도입JAVA에서 문자열을 합치는 방법에는 여러가지가 있다.각 방법에 대해 시간을 비교해보자.공통 테스트용 문자열다음 문자열을 계속해서 연결할 것이다.final static String test = "test";+연산자 // + 연산자를 이용한 문자열 합치기 public static void plusOperation(int loop) { String result = ""; long startTime = System.currentTimeMillis(); for (int i = 0; i < loop; i++) { result += test; } long endTime = System.currentTimeMillis(); System.out.println("plusOperation::걸린 시간" + (endTi..

    [JAVA/EXCEPTION] Class ConcurrentModificationException

    ConcurrentModificationException (Java SE 19 & JDK 19) 발생 다음과 같은 코드가 있다고 하자. TreeSet을 사용하였으며, 값이 중복되지 않게 들어가며, item 값이 오름차순으로 출력된다. 원하는 출력은 중복이 포함되지 않으므로 2, 3, 5 순서대로 개행되면서 출력되는 것이다. import java.util.TreeSet; public class ExceptionTest { public static void main(String[] args) { TreeSet treeSet = new TreeSet(); treeSet.add(3); treeSet.add(3); treeSet.add(2); treeSet.add(5); for (int item : treeSet..

    Java 이클립스 톰캣 서버 연결

    이클립스 내 Server 탭이 없는 경우 Eclipse IDE for Eclipse Committers 로 받았을 가능성이 높음 Eclipse IDE for Eclipse Committers | Eclipse Packages Package Description Package suited for development of Eclipse itself at Eclipse.org; based on the Eclipse Platform adding PDE, Git, Marketplace Client, source code and developer documentation. Click here to file a bug against Eclipse Platform. Click here t www.eclipse.org..

    GUI Java 오목 프로그램

    https://github.com/qpdh/JavaOmokProject qpdh/JavaOmokProject Using Java GUI. Contribute to qpdh/JavaOmokProject development by creating an account on GitHub. github.com