Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.Scanner;
- public class HelloWorld{
- public static void main(String []args){
- Scanner sc = new Scanner(System.in);
- System.out.println("Podaj swoje imie");
- String imie = sc.nextLine();
- System.out.println("Podaj swoje nazwisko");
- String nazwisko = sc.nextLine();
- System.out.println("Podaj swoja grupe");
- String grupa = sc.nextLine();
- File plik = new File("java.txt");
- try{
- BufferedReader read = new BufferedReader(new FileReader("java.txt"));
- }
- catch(Exception e)
- {
- }
- Scanner read1 = new Scanner("java.txt");
- while(read1.hasNextLine())
- {
- System.out.println(read1.nextLine());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement