Monday 16 September 2013

Data entry, total out-come and percentage calculation

 import javax.swing.JOptionPane;

public class reduced {
 
    public static void main(String[] args) {
   
    String name = JOptionPane.showInputDialog( "Item" );
    String message = String.format( "Word is, %s, is Items", name );
    JOptionPane.showMessageDialog( null, message );
   
    String firstNumber = JOptionPane.showInputDialog( "Enter quantsold Double " )




No comments:

Post a Comment