This file contains hidden or 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.List; | |
class FileDownloader implements Runnable { | |
private final String fileName; | |
// 생성자: 어떤 파일을 다운로드할지 파일 이름을 받습니다. | |
public FileDownloader(String fileName) { | |
this.fileName = fileName; |
This file contains hidden or 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.Map; | |
import java.util.Scanner; | |
class UnderageException extends Exception{ | |
public UnderageException(String message){ | |
super(message); |
This file contains hidden or 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.InputMismatchException; | |
import java.util.Scanner; | |
public class AtmHw { | |
public static void main(String[] args) { | |
int balance=10000; |
This file contains hidden or 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.*; | |
public class Listex { | |
public static void main(String[] args) { | |
HashMap<String, List<Integer>> students=new HashMap(); | |
Scanner sc=new Scanner(System.in); |
This file contains hidden or 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.HashSet; | |
import java.util.Scanner; | |
public class Listex { | |
public static void main(String[] args) { |
This file contains hidden or 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.Collections; | |
import java.util.Comparator; | |
import java.util.Scanner; | |
class Contact{ | |
String name; | |
String phone; |
This file contains hidden or 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.io.*; | |
public class BufferedFileCopy { | |
private static final int BUFFER_SIZE = 8192; | |
public static void main(String[] args) { | |
File source = new File("test.txt"); |
This file contains hidden or 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 JavaEx07 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
System.out.println("학생 정보를 입력하세요."); |
This file contains hidden or 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
// 백엔드 원근영 | |
class InsufficientBalanceException extends RuntimeException { | |
public InsufficientBalanceException(String message) { | |
super(message); | |
} | |
} | |
This file contains hidden or 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
// 백엔드 원근영 | |
public class JavaEx07 { | |
public static void main(String[] args) { | |
String[][] words={ | |
{"어제", "내일"}, | |
{"나는", "동생은"}, | |
{"여행을","학교에"}, | |
{"다녀왔다", "갈 예정이다"} |
NewerOlder