2-9 Literals

posted Jan 23, 2014, 5:26 AM by Dlovan ismail   [ updated Jan 23, 2014, 5:26 AM by Karwan Jacksi ]
// This program has literals and a variable.

package literals;

public class Literals 
{
    public static void main(String[] args)
    {
           int apples;
           
           apples = 20;
           System.out.println("Today we sold " + apples + " bushels of apples.");
    } 
}

ċ
Literals.java
(0k)
Karwan Jacksi,
Jan 23, 2014, 5:26 AM
Comments