728x90 자바 어레이2 [Java Examples] Array Lists, 어레이 리스트 예제코드 및 설명 Array Lists, 어레이 리스트 예제코드 및 설명 포스트 난이도: HOO_Junior # Example Code import java.util.ArrayList; public class ArrayList_Practice { public static void main(String[] args) { ArrayList nameList = new ArrayList(); nameList.add("Amy"); nameList.add("Ryan"); nameList.add("Jin"); System.out.println("The array has " + nameList.size() + " names."); for(String s : nameList) System.out.println(s); System.out... 2024. 2. 21. [Java Examples] 자바 어레이를 사용해서 오름차순으로 출력하기 자바 어레이를 사용해서 오름차순으로 출력하기 포스트 난이도: HOO_Junior # Example Code import java.util.Arrays; import java.util.Scanner; /** * This class prompts the user to enter three names and then displays them sorted in ascending order. */ public class NameSorter { /** * The main method that initiates the program. * @param args Not used in this application. */ public static void main(String[] args) { // Create a sca.. 2024. 2. 14. 이전 1 다음 728x90