Projects/Toy Project (3) 썸네일형 리스트형 주어진 숫자의 각 자리수 더하기 자바 import java.util.Scanner; public class Add { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String num = sc.nextLine(); int sum=0; String[] nums = num.split(""); int[] ele_sum = new int[nums.length]; for (int i=0;i Java Banking application 자바 뱅킹 어플리케이션 프로젝트 import java.util.Scanner; public class ScannerTest { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter a number"); int a = sc.nextInt(); System.out.println("value = " + a); } } import java.util.Scanner; public class ScannerTest { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter a Characte.. 자바로 텍스트 게임 만들기 package tutorials; import java.util.Random; import java.util.Scanner; public class Main { public static void main(String[] args) { // System objects Scanner in = new Scanner(System.in); Random rand = new Random(); // Game variables String[] enemies = {"Skeleton", "Zombie", "Warrior", "Assassin"}; int maxEnemyHealth = 75; int enemyAttackDamage = 25; // Player variables int health = 100; int attac.. 이전 1 다음