Zara bailey

Greenhorn
+ Follow
since Dec 31, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Zara bailey

check in the previous class ass in the lesson *
1 week ago
I want to be able to Check if the user is in the previous class and Remove user from previous class to next element
1 week ago
Yes , I do mean previous and next elements within an array
1 week ago
Is there a way to get the previous array and release from previous to the next array just in an array and not an array list?  I know with the array list you can import the java .util.ListIterator, Is there any options to do with just an array . for the loop below

1 week ago
I am getting code writer's block and I cannot think straight on how to structure a certain piece of code in java I am getting my self confused and would like some guidance, please . I want to pass a variable from one method to another such as a user has selected an option from an array list "select " variable and I want to compare the select variable with an array list capacity which will show that the select array list option " the selected lesson capacity is full in the evening "  " but not in the morning  would you like to book this lesson instead "

so what I have done is code up name string arrays in a customer class one array list has 20 customer names   and less than 20 customers (  please do not pay any notice to the duplicate customer names I am still editing )

Here is  the lesson  class code

package fitnessclassapp;







within the main controller class where I would hard code the functionality, I have made the capacity method where I would show the capacity for user input with is the " selected lesson"  the " select" variable.    So if the user selects array choice number 1 which is "Zumba " I want the capacity method to be able to show " the Zumba afternoon lesson is full" and the " morning lesson is available "   by comparing the two string arrays in the class method. but I am experiencing a block please help me I would appreciate some basic guidance, please

what I have done so far in the main controller capacity method
);   // created  an object called array of the customer class and called the afterNoon array liparameterassed the paramter


the capacity code

String [] lessonCust = new String [20];
array.afterNoon(lessonCust);  


 This line has an error for the "array " object stating package array does not exist, I had this error before within another method but that was due to me trying to set two constructors. now I do not know what is going on please help me.  The customer class is above
     
   
   
   
       

 
1 week ago
Thank You very much and the advise has been very helpful once again
2 weeks ago
I have attached an image of my code and yes I have lesson class and customer class and in those classes, I have set getters and setters and constructors. The booking class is where I am hard coding everything. I have thought this through i just need some sense of direction that is all
2 weeks ago
And this is the current code I am working on now since other changes in other posts I have made changes . and what I have posted is current code
2 weeks ago
Hi Campbell Ritchie,

Yes I know the code is not perfect and I am trying, unfortunately, I am running out of time and I am trying to do what I can do. I am not looking for a perfect code at the moment just something that meets all the requirements. If you run the code the code listing actually works and the functionality does what is supposed to do. I was told to do "x" and "y" variables in decision statements like that instead of long words
2 weeks ago
after the changes.

the output is still below



when I take out this code completely at the end of the lessons array




I get this output. so I am wondering to cut the lesson array short to exclude those parts of code above so that the next element would show

here is the output when I exclude those parts

run:
###############################################
Welcome to the Weekend Fitness Gym
###############################################
Please enter your name(Last, First)
Bill
Plase enter age
22
###############################################
PLEASE SELECT LESSON
###############################################
1. Zumba
2. Spin
3. Yoga
4. BodyScuplt
Please select the values between 1-3 to book lessons
1
You have selected lesson Zumba
Can you please re-enter selection.
###############################################
PLEASE SELECT BOOKING DATE
###############################################
Current Date Is 06/10/2019 12:10:47
Please select Date
You have booked lesson for the
2 weeks ago
sometimes it work and sometime it does not work *
2 weeks ago
Wonderful that works, but I notice sometimes it works but sometimes it does work is there any way I can make it work all the time
2 weeks ago
Are you talking about because I made the object instance of the booking controller called details on this line to call the methods?    The code works fine but my output only shows up like  below  and does not show the DateDetails method despite the fact that I thought I declared the method call properly   such as the param

and the argument call in the main



I have not received any errors the method just not showing up in the terminal and not to sure why


The output just displays as below


2 weeks ago
Hi, does anyone know why my date details method is not showing up into the terminal?   I have declared the parameter and called the argument in main. I am wondering if it has something to do with the lessonsList method code above. I am not too sure as I am not receiving any errors in net beans


2 weeks ago