As well as the compiler error Knute pointed out, there is an out‑by‑one error in that line; I challenge you to find it.
Zara bailey wrote: . . .. . .
THe dos and don'ts about starting new threads: DON'T start a new thread if you're posting about the same subject. DO start a new thread if your post has nothing to do with the subject.
I'm not sure what you mean by attent, do you mean sign up or actually being there, if it's signing up I will explain in the last question.
1. after a user selects a lesson a message should show the status of attendance so I am thinking to implement a status method with an If statement with a decision variable that determines if the array list was selected. Then system.out.print ( you are attending class ) but I am not too sure how to show if the user has returned from the lesson?
2. The customer can change the selected fitness class
do I implement this by using a switch statement in a loop? and allow the user to switch and insert new input
3. the user can select specific data and time for a lesson
I have no clue how to start with this functionality any suggestions on how I can tackle this?
4. if a class has 20 customers the book will be unsuccessfull
I don't see where the OP is comparing a String using ==. There are a couple of places where a char is compared using == but that is actually correct.
Daniel Demesmaecker wrote:First a friendly tip, in a couple of places in your code you use == to compare a string or a char, == dosn't compare the value, but the object itself, so it's safer to use the .equal method.
Line 16? I thought that bit looked peculiar.
Zara bailey wrote:. . . I have tried to set a parameter to the array method such as " (int x ) " . . .
Looking at what you supplied made me think, is that supposed to be a constructor? Or should it be replaced by a factory method? You could write this sort of thing:-I personally would have a utility class to wrap the Scanner for keyboard input, so I could write KeyboardInputs.nextInt("Please enter mileage: "); or similar.
Swastik Dey wrote:. . . I don't think customerDetails method . . .
He's dead Jim. Grab his tricorder. I'll get his wallet and this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your databasehttps://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database