if you are doing your code at eclipse then ctrl+shift+f makes the code beautiful.
Type: Posts; User: clyxee
if you are doing your code at eclipse then ctrl+shift+f makes the code beautiful.
Do you have more questions? Perhaps i can help too :)
Oh my god i got it :) Thank you so much Norm !!
How should i do that ? give a string and then replace letters or how ?
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 ?
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,...
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,...
public class Test {
public static ArrayList<String> allLetters = new ArrayList<String>();
public static String userWord, userGuess;
public static void...
Here is the small program [Java] help - Pastebin.com , tho i'm using TextIO to make user input easier.
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 _ _ "
Thank you Norm for clearing that for me, but the end result stays the same as before.
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++) {...
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 <...
Yes, it's pretty cold here indeed in winter, but it's beautiful haha :)
Why dont you guys come to Estonia sometime :P
Hey.
That's a very nice idea, maybe i can add something to it too, like user input kind of stuff that they can change the sizes and colors maybe ?
Anybody got more ideas ? :)
I have to write a program in java that includes arrays,loops,object orientation + all the basic stuff. So i'm in trouble finding a program to write :(
Maybe you guys got any ideas what to write in...
Hi everyone !!
So i looked for an awesome java forum and found this, been busy looking the threads and found this forum interesting so i registered :)
Something about me: i'm from Estonia and i'm a...