This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 이진영 | |
// 미니 과제 1 | |
public class ZeroReport01 { | |
public static void main(String[] args) { | |
StringBuffer sb = new StringBuffer(); | |
sb.append("[구구단 출력] \n"); | |
for(int i = 1; i <= 9; i++){ | |
for(int j = 1; j <= 9; j++){ | |
sb.append(i * j >= 10 ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
// 이진영 | |
// 미니과제 2 | |
public class ZeroReport02 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
System.out.println("[캐시백 계산]"); | |
System.out.print("결제 금액을 입력해 주세요. (금액):"); | |
int num = intCheck(sc); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
// 이진영 | |
// 미니과제 3번 문제 | |
public class ZeroReport03 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
System.out.println("[입장권 계산]"); | |
System.out.print("나이를 입력해 주세요.(숫자 입력):" ); | |
int age = intCheck(sc); | |
System.out.print("입장시간을 입력해 주세요.(숫자 입력):"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Comparator; | |
import java.util.HashMap; | |
import java.util.Random; | |
import java.util.Scanner; | |
// 이진영 | |
// 미니과제 6번 | |
public class ZeroReport06 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
StringBuffer sb = new StringBuffer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
import java.util.Scanner; | |
// 이지영 | |
// 미니과제 4번 | |
public class ZeroReport04 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
System.out.println("[주민등록번호 계산]"); | |
System.out.print("출생년도를 입력해 주세요.(yyyy):" ); | |
String year = String.valueOf(intCheck(sc, "yyyy" , 4 , 2020, 2023)).substring(2, 4); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Calendar; | |
import java.util.Scanner; | |
// 이진영 | |
public class ZeroReport05 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
System.out.println("[달력 출력 프로그램]"); | |
System.out.print("달력의 년도를 입력해 주세요.(yyyy):" ); | |
int year = intCheck(sc, "yyyy", 1000, 2023); | |
System.out.print("달력의 월을 입력해 주세요.(mm):"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.Comparator; | |
import java.util.Scanner; | |
// 이진영 | |
class CustomComparator implements Comparator<String> { | |
@Override | |
public int compare(String o1, String o2) { | |
return o1.compareTo(o2); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
// 이진영 | |
public class ZeroReport08 { | |
static int result = 0; | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
System.out.println("[과세금액 계산 프로그램]"); | |
System.out.print("연소득을 입력해 주세요.:"); | |
int money = intCheck(sc); | |
int[] tax = {6,15,24,35,38,40,42,45}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.HexFormat; | |
import java.util.LinkedList; | |
import java.util.Scanner; | |
public class B1991 { | |
static Node head = new Node("A", null, null); | |
public static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.Scanner; | |
import java.util.function.Function; | |
class Node { | |
HashMap<Character, Node> child; | |
public Node() { | |
this.child = new HashMap<>(); | |
} |
OlderNewer