Search:

Type: Posts; User: humdinger

Page 1 of 2 1 2

Search: Search took 0.29 seconds.

  1. Replies
    8
    Views
    1,218

    Re: how to find an element in an array

    it works!!! thankyou Brian, I cant believe I didnt think of that before! silly me :o
  2. Replies
    8
    Views
    1,218

    Re: how to find an element in an array

    ok great il give it a try when i get home
    thanks again
  3. Replies
    8
    Views
    1,218

    Re: how to find an element in an array

    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...
  4. Replies
    8
    Views
    1,218

    Re: how to find an element in an array

    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?
  5. Replies
    8
    Views
    1,218

    how to find an element in an arrayList

    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...
  6. Replies
    1
    Views
    9,329

    how to compare two set values

    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...
  7. way too hard to explain this in short. please help guys!!

    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" {...
  8. Replies
    5
    Views
    8,408

    Re: Char cannot be dereferenced!! Please help

    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.
  9. Replies
    5
    Views
    8,408

    Re: Char cannot be dereferenced!! Please help

    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:
    ...
  10. Replies
    5
    Views
    8,408

    Char cannot be dereferenced!! Please help

    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()"....
  11. Replies
    1
    Views
    843

    How to return sub string from String

    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" &...
  12. Re: Having trouble with an if statement. please help!!

    Hi, I have checked the code and i have it down exactcly as you said but it still returns the same error. any ideas???
  13. Re: Having trouble with an if statement. please help!!

    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...
  14. Re: Having trouble with an if statement. please help!!

    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...
  15. Re: Having trouble with an if statement. please help!!

    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:


    ...
  16. Re: Having trouble with an if statement. please help!!

    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...
  17. Having trouble with an if statement. please help!!

    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...
  18. Replies
    7
    Views
    7,700

    Can a for loop work with random number?

    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...
  19. Re: how to write an if statement which evaluates 3 dialogue boxes

    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
  20. how to write an if statement which evaluates 3 dialogue boxes

    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...
  21. Re: how to send a message to receiver with if else statement

    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...
  22. Re: how to send a message to receiver with if else statement

    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...
  23. how to send a message to receiver with if else statement

    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...
  24. Replies
    11
    Views
    2,489

    Re: Data hiding and maintainability

    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...
  25. Replies
    11
    Views
    2,489

    Re: Data hiding and maintainability

    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...
Results 1 to 25 of 30
Page 1 of 2 1 2