since it appears you are not modifing the variable inside your methods you could also simply pass it to each of your methods
eg:
import java.util.*;
public class Question2 {
...
Type: Posts; User: TheNextBillGates
since it appears you are not modifing the variable inside your methods you could also simply pass it to each of your methods
eg:
import java.util.*;
public class Question2 {
...
you wrote:
if masterNumber is not equal to reverseIt then display "They Match"
else (if masterNumber is equal to reverseIt) display "No Match"
try:
if(masterNubmer.equals(reverseIt)...
Norm is right your main method is invalid. Try moving it to its own class and remove the argument 'String y' from it.
I'm not sure why you have 'String y' in the arguments for you main method in...