public class F
{
private final String NAME = "Lin";
private final int year;
public F(int y)
{
year = y;
}
public String toString()
{
return NAME+": "+year;
}
public static void main(String args[])
{
final int SIZE = 10;
//SIZE = 20;//not able to be changed
F f = new F(2017);
System.out.println(f);
}
}
public final class Car
{
private final String maker;
private final String color;
public Car(String m, String c)
{
maker = m;
color = c;
}
public String getMaker()
{
return maker;
}
public String getColor()
{
return color;
}
}