Thief of Wealth
Published 2019. 11. 2. 18:23
Java Input.txt에서 입력받기 개발/Java

import java.io.FileInputStream;

import java.io.FileNotFoundException;


public class main {

public static void main(String[] args) throws FileNotFoundException {

System.setIn(new FileInputStream("C:\\Users\주소주소input.txt"));

Scanner scan = new Scanner(System.in);

int n = Integer.parseInt(scan.nextLine());



profile on loading

Loading...