Guest User

Untitled

a guest
Nov 5th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. package profile;
  2.  
  3. import java.io.*;
  4. import java.util.Scanner;
  5.  
  6. public class Main {
  7.  
  8. public static void main(String[] args) throws IOException {
  9.  
  10. BufferedWriter bf=new BufferedWriter(new FileWriter("SomeFile"));
  11. Scanner scanner=new Scanner(System.in);
  12. String username=scanner.nextLine();
  13. String password=scanner.nextLine();
  14. User user=new User(username,password);
  15. bf.write(user.toString());
  16.  
  17. }
  18. }
Add Comment
Please, Sign In to add comment