Its not an assignment, its revision for my exam later this month. I've got about 40 different methods to learn and I need to learn how to do one well so I can use that as a template for the rest to...
Type: Posts; User: akmi5
Its not an assignment, its revision for my exam later this month. I've got about 40 different methods to learn and I need to learn how to do one well so I can use that as a template for the rest to...
Well I want it to reverse the word "hello" to "olleh". But I don't know how to tell the java string above to do it.
I had a look into this and I think your right about the scanner class but it still confuses me in how to get the string to work?
This is a string reverse so it should just reverse a word you input into the string. My problem is I dont know how to input a word into the string...help please!!! :o:confused:
The code:
public...
Thank you so much!!!! :cool:
SOLVED
The error I get is: testings.java:28: ';' expected
System.out.print(occurs('a',"hello"))
The code:
public class testings {