Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File;
- import java.io.FileNotFoundException;
- import java.util.Scanner;
- public class Marta {
- public static void main (String [] args) {
- File file = new File("ala.txt");
- System.out.println(file.exists());
- Scanner in = null;
- try {
- in = new Scanner(file);
- } catch (FileNotFoundException e) {
- e.printStackTrace();
- }
- String zdanie = in.nextLine();
- System.out.println(zdanie);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement