java

개인 공부/JAVA

[JAVA] Code Up 기초 100제 (1033 ~ 1042)

# 1033 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = sc.nextInt(); String hexString = Integer.toHexString(i).toUpperCase(); System.out.println(hexString); } } # 1034 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int oct ..

개인 공부/JAVA

[JAVA] Code Up 기초 100제 (1023 ~ 1032)

# 1023 import java.util.Scanner; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String num = sc.nextLine(); StringTokenizer token = new StringTokenizer(num, "."); int[] nums = new int[2]; int i = 0; while (token.hasMoreTokens()) { nums[i] = Integer.parseInt(token.nextToken()); i += 1; } String front = String.for..

카테고리 없음

[JAVA] Code Up 기초 100제 (1012 ~ 1022)

# 1012 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); float f = sc.nextFloat(); String str = String.format("%.6f", f); System.out.println(str); } } # 1013 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt()..

내캉
'java' 태그의 글 목록 (3 Page)