Search:

Type: Posts; User: ninjaBob

Search: Search took 0.20 seconds.

  1. Replies
    1
    Views
    384

    Beginner question about for loops...

    Hi,
    I need to print out a set of numbers that starts at 2, prints out the next 2 numbers, skips the next 2, prints the next 2 and skips the next, etc....... so it should follow the pattern :
    2 3 6...
  2. Replies
    6
    Views
    327

    Re: beginner question--boolean expressions

    I figured it out... thanks for all the advise though... had nothing to do with my boolean expressions.... had more to do with placement of {'s.... stupid mistake haha :/
  3. Replies
    6
    Views
    327

    Re: beginner question--boolean expressions

    I tried both of these already and returned
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1931)
    at...
  4. Replies
    6
    Views
    327

    beginner question--boolean expressions

    Okay, say that I am using an if-else statement and i want to basically say that
    if (string.contains("#")
    then do this...
    else if (string.contains ("#") = false)
    then do this...
    else ...
  5. Re: Isolating a single word from user input...

    THANK YOU GUYS! i hadn't thought of trying it that way! Needless to say, it works now!
  6. Isolating a single word from user input...

    I need to isolate a word that starts with a hashtag (#) from a string of user input. For example if the user enters "Hi how #are you today" i need the program to print out "#are".

    My thought...
  7. Thread: HEELLLLOooo

    by ninjaBob
    Replies
    1
    Views
    200

    HEELLLLOooo

    Hi! I am brand new at this... already been able to write some successful codes, but I am in much need of some help...
Results 1 to 7 of 7