-
I'm New to Methods
Ok, I'm new to Java. About 3 weeks new. I'm trying to practice methods by making a mock up of an older style of RPG. I'm trying to have a user input a string; depending on what the user types, it will call a different method I'm not sure how to execute it correctly. I'm not getting any errors, so I'm sure it's all in the way it was written. I put part of my code in there. Can someone please help me. Thank you.
-
Please post your code and use code tags
[code]
YOUR CODE HERE
[/code]
It will probably just be a series of if else clauses
Code:
if(string.equals("a")){
call method one
}
else{
call method two
}
-
Oh my gosh, Thank you so much man. That fixed my problem completely. You're a life saver!
-
You're welcome, please mark your thread solved with the thread tools at the top.