Hello friends, I have question to ask why I am not able to compile this 3 Java files using JDK. The method I used to compile this 3 files are using
command prompt, javac <direction>.java
But i failed to compile because of Ticket.Java issue and Main.java.
I have define everything in ticket.java but in my Main.java, line 504,505,506 and 512 got problem.
Something wrong with here :
int childTicketPrice = Ticket.getSeatPrice(childInput, "child");
int adultTicketPrice = Ticket.getSeatPrice(adultInput, "adult");
int oapTicketPrice = Ticket.getSeatPrice(oapInput, "oap");
// Calculate total
int total = (childTicketPrice +adultTicketPrice+oapTicketPrice);
//Convert this integer value to a string in the correct format
String totalString = Ticket.calculateStringTotal(total);
the = ticket , here is having issue.
How to fix this?
My extra question, is JDK not the correct method to compile this 3 files? Please let me know thanks