Search:

Type: Posts; User: msinc210

Search: Search took 0.36 seconds.

  1. Replies
    8
    Views
    361

    [SOLVED] Re: Basic Code Problem

    You were right andreas90. The program thought the blanks were inputs. Changed everything to the next() method and it works fine now.
  2. Replies
    8
    Views
    361

    [SOLVED] Basic Code Problem

    project directions:

    1. Create a class called Student that has name, grade, house as instance variables

    2. Create a constructor that take these (3) items as parameters and sets them to your...
  3. [SOLVED] Quick Question: Did I understand these directions correctly?

    I'm new to java. I just need a little clarification.

    1. Create a class called Student that has name, grade, house as instance variables

    2. Create a constructor that take these (3) items as...
  4. Replies
    2
    Views
    368

    .indexOf selective replacements

    I have a StringBuffer named "sentence." I need to replace all occurrences of "A", except occurrences of "A" at the end of a word, with "E".

    Example: ABABA ---> EBEBA

    However, my code returns...
  5. Replies
    3
    Views
    464

    StringBuffer Problem

    I have user input in a StringBuffer. I need to search for the word "the" and replace every occurrence with another string, "zee." How do I do this?


    int theStart = sentence.indexOf("the");
    int...
  6. Replies
    4
    Views
    553

    creating constructor

    I have a Machine class but I don't know how to create a constructor which takes owner, price, and belly_star parameters.


    main class


    //create machines:

    Machine star_on = new...
Results 1 to 6 of 6