Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %%%%%%%
- %Q%&%%%
- %%%&&&%
- %&%&%%%
- %&%&%%%
- %&%&&7%
- %&%%%&%
- %&&&%&%
- %%%&&&%
- String theString = "";
- File fd = new File("input.txt");
- Scanner sc = new Scanner(fd);;
- theString = sc.nextLine();
- try {
- sc = new Scanner(fd);
- } catch (FileNotFoundException e) {
- System.out.println("File not found! Application terminatedn" + e.toString());
- return;
- }
- while (sc.hasNextLine()) {
- theString = theString + "n" + sc.nextLine();
- }
- sc.close();
- char[][] charArray= theString.toCharArray();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement