public class Test{
static String symbol;
public static void main (String[] args){
String symbol = args[0];
letter();
}
static void letter(){
System.out.println(symbol);
}
}
Why every time i try to run this the method letter successfully runs but prints Null? I just want to have one variable for all methods so that they can use its value.