Search:

Type: Posts; User: clyxee

Search: Search took 0.12 seconds.

  1. Replies
    21
    Views
    1,312

    [SOLVED] Re: For loop to create string.

    Oh my god i got it :) Thank you so much Norm !!
  2. Replies
    21
    Views
    1,312

    [SOLVED] Re: For loop to create string.

    How should i do that ? give a string and then replace letters or how ?
  3. Replies
    21
    Views
    1,312

    [SOLVED] Re: For loop to create string.

    It was pretty confusing, that's why i asked if there's other ways to do it :) Thank you Norm
    Now i have another question: How can i compare the end result with the original word, to stop the game ?
  4. Replies
    21
    Views
    1,312

    [SOLVED] Re: For loop to create string.

    public class Test {

    public static ArrayList<String> allLetters = new ArrayList<String>();
    public static String letters[] = { "p", "e", "l", "a", "c", "d" };
    public static String userWord,...
  5. Replies
    21
    Views
    1,312

    [SOLVED] Re: For loop to create string.

    public class Test {

    public static ArrayList<String> allLetters = new ArrayList<String>();
    public static String letters[] = { "p", "e", "l", "a", "c", "d" };
    public static String userWord,...
  6. Replies
    21
    Views
    1,312

    [SOLVED] Re: For loop to create string.

    public class Test {

    public static ArrayList<String> allLetters = new ArrayList<String>();
    public static String userWord, userGuess;

    public static void...
  7. Replies
    21
    Views
    1,312

    [SOLVED] Re: For loop to create string.

    Here is the small program [Java] help - Pastebin.com , tho i'm using TextIO to make user input easier.
  8. Replies
    21
    Views
    1,312

    [SOLVED] Re: For loop to create string.

    When i try to guess word "apple" then everytime i guess a letter the "_" adds in that word..
    my current output is : A _ _ P _ P _ _ _ _ "
    but what i desire is : "A P P _ _ "
  9. Replies
    21
    Views
    1,312

    [SOLVED] Re: For loop to create string.

    Thank you Norm for clearing that for me, but the end result stays the same as before.
  10. Replies
    21
    Views
    1,312

    [SOLVED] Re: For loop to create string.

    I'm familiar with arrays and all the tried letters are saved to ArrayList. With a little help from my dear friend google, i came up with this:

    for (int i = 0; i < userWord.length(); i++) {...
  11. Replies
    21
    Views
    1,312

    [SOLVED] For loop to create string.

    Hi, i'm trying to do a hangman game for my home task, and i got a few problems :)
    the first problem is: How can i return a string from for loop?

    Here is what i got so far:

    for (int i = 0; i <...
Results 1 to 11 of 11