[quote=@Galaxy Raider] Dahv, could you help me out with something real quick? [hider=CS Stuff] import java.util.Scanner; public class SwapValues { public static void main(String[] args) { public void swapFunction(int a, int b) { // First, I declare the new Scanner to take the user's input for integers. Scanner in = new Scanner(System.in); System.out.println("Enter a value for Value 1: "); int V1 = in.nextInt(); System.out.println("Enter a value for Value 2: "); int V2 = in.nextInt(); // Next, I reiterate what the user entered for their values, allowing them one more chance to see if the values they entered are the values they intended to enter. System.out.println("Value 1 = " + V1); System.out.println("Value 2 = " + V2); // Now, I simply assign new variables for V1 and V2, appropriately named NewV1 and NewV2, and set their values equal to the opposing variable's old value. int NewV1 = V2; int NewV2 = V1; // Lastly, I display to the user what the swapped values are. System.out.println("The new value for Value 1 is: " + NewV1); System.out.println("The new value for Value 2 is: " + NewV2); } } } [/hider] What on Earth am I doing wrong with my method creation? Am I just missing something because I don't know of some other step(s) I need to do or what? [/quote] 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. [quote=@DarkwolfX37] It's not as simple as a typo with "Scanner in" needing to be "Scanner.in" is it? [/quote] 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. [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] 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]