Writing Java Programs

amount  variable’s value.

class test {
public static void main(String args[]) {
double amount;
amount = 5.55;


amount = amount + 15.00;
System.out.print(“bill $”);
System.out.print(amount);
System.out.println(“credit card.”);
}
}