Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class Bank{
- public static void main(String[] args) throws Exception{
- java.io.File file = new java.io.File("accountHolder.txt");
- Scanner input= new Scanner(file);
- while(input.hasNext()){
- String id= input.next();
- double withdraw= input.nextDouble();
- double deposit= input.nextDouble();
- System.out.println(id);
- System.out.println(withdraw);
- System.out.println(deposit);
- }
- input.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement