Search:

Type: Posts; User: javapenguin

Search: Search took 0.07 seconds.

  1. Replies
    12
    Views
    2,080

    [SOLVED] Re: Alphabetical order

    Funny, when I used Scanner, it compiled. No exceptions.

    However, it is printing blanks for all the values in array. I think that might be due to index being null when characters happen to be the...
  2. Replies
    12
    Views
    2,080

    [SOLVED] Re: Alphabetical order

    May I ask what the h variable is for. It's not doing anything. Or at least you never use it.

    Also, in the h loop you're going from 0 to slots and in the other one, the inner one, you're going...
  3. Replies
    12
    Views
    2,080

    [SOLVED] Re: Alphabetical order

    Not sure, but your code is assuming that word2 has at least as many characters as word1.

    If it encounters say

    word1 = "mongoose" word2="snake" then you've got a problem.
Results 1 to 3 of 4