Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package profile;
- import java.io.*;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) throws IOException {
- BufferedWriter bf=new BufferedWriter(new FileWriter("SomeFile"));
- Scanner scanner=new Scanner(System.in);
- String username=scanner.nextLine();
- String password=scanner.nextLine();
- User user=new User(username,password);
- bf.write(user.toString());
- }
- }
Add Comment
Please, Sign In to add comment