Advertisement
ismail5g

Question-4

Apr 13th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. import java.util.Scanner;
  2. class Bank{
  3.     public static void main(String[] args) throws Exception{
  4.         java.io.File file = new java.io.File("accountHolder.txt");
  5.         Scanner input= new Scanner(file);
  6.         while(input.hasNext()){
  7.             String id= input.next();
  8.             double withdraw= input.nextDouble();
  9.             double deposit= input.nextDouble();
  10.             System.out.println(id);
  11.             System.out.println(withdraw);
  12.             System.out.println(deposit);
  13.         }
  14.         input.close();
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement