import java.math.BigInteger;
import java.util.Scanner;
import javax.swing.JOptionPane;
/*
 * ScannerExample.java
 *
 * Created on January 5, 2005, 5:25 PM
 */

/**
 *
 * @author Bill Kraynek
 */
public class ScannerExample {
    
     /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String out = "";
        while(true) {
            String input = JOptionPane.showInputDialog("Enter Id, name and balance separated by spaces");
            // if the user clicks on the cancel button then null is returned so quit
            if( input == null ) break;
            Scanner myScanner = new Scanner(input);
            out +=   myScanner.nextInt() + " " + myScanner.next() + " " + myScanner.nextDouble() + "\n";
        } // end while
        JOptionPane.showMessageDialog(null,out);
    } // end main
    
}

