i get a name returned for name but i don't get anything for staff[i].getName().. so this is my problem? not sure why staff[i].getName() is not returning a name
Type: Posts; User: darego
i get a name returned for name but i don't get anything for staff[i].getName().. so this is my problem? not sure why staff[i].getName() is not returning a name
the value of name would be whatever i passed in as parameters for name and staff[i].getName() gets the name from whatever number staff object in the staff array. i can't see how these would be null?...
i really can't see how there can be a null value on line 33:
if(name.equals(staff[i].getName()))
i have been trying to get this problem solved for the last 2 hours so i am getting very frustrated...
hey there, trying to do some college work although i keep getting a console error. i am tying to add three employees (an admin and 2 engineers) to the manager and then call printStaffDetails()
...
thanks mate
hey guys. i have just went back to college recently and started studying some java again. i tried to run some of my code from last year in college but something i never seen before came up; "select...
i don't know how i didn't realise that. thanks a lot mate! i'm used to having the console asking me for input first :D
hey guys. after running my code nothing comes out in the console for some reason (i have no errors)
here is my code (it's a method example by my lecturer that i'm looking over)
import...
hey guys, i'll try to keep this short and simple. i'm not sure if this is the right section of the forum to post this on, if it's not please move it! or it might not even be the right forum, if so...
thanks a lot mate. great help and very nicely explained :D
thanks again for the reply. to answer about ArrayLists, no we have not done anymore data structures yet unfortunately (pretty sure we will start in semester 2).
about option 1, it took me a while...
thanks for the reply!
i was trying to do something like option 1 but i couldn't manage to make it work, if you had a minute to do an example i'd be grateful! option 2 looks a bit advanced for me...
hey guys! i'm having trouble adding some stuff from a loop to an array. hopefully someone can help me. i put a comment in my code to show where I'm having trouble
here's the assignment:
The...
you're a legend mate thanks a lot :)
woops i forgot to add my program should has to look like this:
Your program should match this output as closely as possible:
Cards will be sent to:
Termonfeckin Ferrys...
thanks a lot man, appreciate it!
hey guys i'm pulling my hair out trying to solve this! i have been here for like 2 hours and it's probably something really easy. it's an array question:
Every year at Christmas, the Institute...