import java.util.*;import java.lang.*;import java.io.*; class test{ public void show(){ System.out.println("a:"+a); //Compile time error: cannot find symbol a.} public static void main(String [] args){ int a=10; System.out.println("a:"+a); }}
Standard input is empty
Main.java:9: error: cannot find symbol System.out.println("a:"+a); //Compile time error: cannot find symbol a. ^ symbol: variable a location: class test 1 error
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!