can't we declare a method inside a method in java??
public class One
public static void main(String args)
One obj=new One();
private static void add()
not getting compiled y???
Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.
Have Programming Question? Ask it here!