2-27 Compact

posted Jan 24, 2014, 4:42 AM by Dlovan ismail   [ updated Jan 24, 2014, 4:42 AM by Karwan Jacksi ]

package compact;

public class Compact 
{
    public static void main(String[] args)
    {
           int shares = 220; 
           double averagePrice = 14.67; 

           System.out.println("There were " + shares + " shares sold at $" + averagePrice +" per share.");

    }   
}

ċ
Compact.java
(0k)
Karwan Jacksi,
Jan 24, 2014, 4:42 AM
Comments