Hello,

I'm new to Java, so if I sound stupid, I'm sorry.

Anyway, here's my code:

Java Code:
//class one

public class one{

public static void main(String[] args){

String var = "This is a variable.";
}

//class two

public class two{

public static void getVar(String[] args){

one oneObj = new one();

//Here's where I want to print the variable from class one. How would I do that?
}

}
Thanks