0
텍스트 파일의 각 줄을 배열에 저장하는 데 문제가 있습니다. 지금까지 내 프로그램은 파일을 읽을 수만 있습니다. 여기 내가 지금까지 가지고있는 것이있다.텍스트 파일의 각 줄을 배열에 저장
public class assignment1 {
public static void main(String[] args) {
System.out.println(System.getProperty("user.dir"));
File fileName = new File("competitors.txt");
try {
Scanner scnr = new Scanner(fileName);
} catch (Exception e) {
System.out.println(e);
}
}
}
당신이 다른 질문을 확인 할 수 있습니다 http://stackoverflow.com/a/12857731/6383857 – StaticBeagle