it works!!! thankyou Brian, I cant believe I didnt think of that before! silly me :o
Type: Posts; User: humdinger
it works!!! thankyou Brian, I cant believe I didnt think of that before! silly me :o
ok great il give it a try when i get home
thanks again
Hi, i thought about tthat but as I only have an arrayList with all the People objects stored in it Im not sure it would work as I have nothing to use as keys. I will definately look into it in more...
ok thankyou for the advice, i know the string is in there so I will do some testing on this later. Does anyone have any ideas?
Hi guys,
Im trying to write a very small and simple method that will find an element from a arrayList and return it. the list contains instances of a class called People. I tried using the indexOf...
Hi guys,
I need to itterate through 2 sorted sets and compare the values in the set. These sets are of type String and are called listOfNames1 and listOfNames2. If they are not the same i need...
I'm playing around with maps and sets and I've come across something which I cannot do. I'm trying to get the map interestsFans so it looks like:-
"Programming" { "Peter", "Luke" }
"Cycling" {...
Hi thankyou for the advice, I have changed the code so its a you say but I get the same char cannot be dereferenced error when i try to compile.
I had already tried that before I posted but when I tried to compile it just kept telling me I needed a bracket on the line shown below and if I added a bracket it just continued giving that error:
...
Hi all im working on a program and have got the error "char cannot be dereferenced". The for loop iterates through the array "people" and sends a message to each one using the method "getPerson()"....
Hi all im trying to return a sub String from a String. I have a small String saved as "myText" that contains lots of characters but just two numbers. The numbers are inbetween two markers, "start" &...
Hi, I have checked the code and i have it down exactcly as you said but it still returns the same error. any ideas???
Hi just to let you know i work nights so im at work now. il be back working on this tomorrow so il look into it then. thankyou very much for all your help so, I will be sure to click the thankyou...
Hi JavaDaveUK,
Thankyou for your help.
I had already tried that earlier and it still said "missing return statement". I just tried re-writing it again as to your post and it still returns the...
Hi helloworld922, thankyou very much for your help so far.
I am unable to use arrays at this point. ive been working on this code some more but am still having problems! My new code is:
...
hi sorry for the confusion but ive just looked at the specifications again & what I actually need to do is return "off" if the argument is 1, "low" if its 2, "medium" if its 3 and "high" if its 4. it...
Hi
Im working on an if statement with the following specifications:
If the methods argument is between 1 and 4 it should set the value of its
"setting" instance variable to the value of the...
Hi all,
I need to write code to make a kangaroo object jump a random number of times between 1 & 6 times. I have an instance variable declared of type random, called ranNumber. I also have a...
hi copeg, thankyou for the reply, i worked this out in the end last night. I did it the same as your second example & ive tested it & it all works. thankyou again for the assistance
Hi all
Im trying to write a code that has a for loop which iterates through 3 instance variables, the 3 instance variables are each set using a confirm dialogue box so if the user clicks yes they...
Hi that looks like something that would work, however when i tried this the compiler came up with the error "cannot find symbol - method chickens(java.lang.string"
what I think this error is...
No I dont need it to pass it on I just need it to send a message to the receiver with the value of the argument in the message. so if the value of the argument is 1 I need it to send a message to...
Hi all
I am currently working on a if else statement within a method and I need it to send a message to the receiver with value of the argument from the method in the message. to clarify if the...
Hi all,
I think I have got the data hiding part done but I really cant see any way I could change the code aid maintainability! The only thing I know about maintainability is re-use of code and I...
Hi I have been working hard on this and im startingto get somewhere now.
Just to make you aware, i missed some of the code previously so the full code im working with is:
public class...