In my toString I'm trying to print the total cost as $9.30. It is printing as $9.3 - without the 0 on the end.
This looks like:
public String toString()
{
return "$"+total;
}
Type: Posts; User: caiz1
In my toString I'm trying to print the total cost as $9.30. It is printing as $9.3 - without the 0 on the end.
This looks like:
public String toString()
{
return "$"+total;
}
For example the context could be to see if a person can enter the club or not being underage or legal.
In an enum class named Age:
package test;
public enum Age {
Underage(0),...
Currently there is no output, there is an error with this line in the CinemaApp class:
Movie m = new Movie();
Ideally the output should look like:
Which movie would you like to watch?
1 A...
Hi there, I am looking for direction on how to fix this code, as you can see I'm trying to print out the String and and enum which is stored in an array. The text however isn't printing
This is my...