[quote=@Host] Your problem is that you're trying to put your Main in a separate class. You don't declare Class functions in Main; you declare them in the class itself and then call that Class' object (or static methods) from Main. Nah, it uses System.in as a parameter to construct a Scanner object because it pulls from System input. Scanner.in would be pulling a parameter from its own static variable, in which case it could forgo using parameters altogether. It gives you that error because it thinks your function is a variable, since you can't declare functions in Main (though you can do this in Java[i]Script[/i]). [sub]Also please import System. It makes it way easier.[/sub] [sub][sub][sub]And camelcase your variables.[/sub][/sub][/sub] [/quote] That does definitely make sense. Just wanted to make sure. [quote=@Galaxy Raider] Nah. That isn't even an error actually. My only error is in Line 4, where I am trying to create a method. I get an error telling me that "void" is not a valid type for the variable "swapFunction". [/quote] Okay so in future maybe mention what line is the error and put your { as a seperate line unless CS doesn't let you do that. It looks better and is easier to parse mentally.