anonymous
2010-11-14 04:34:59 UTC
then i have another class called secondclass, in which i define 'int theNumber = 5'
how can i use theNumber from secondclass inside mainclass?
i tried to create a method which returns theNumber, i tried something like this:
secondclass scObject = new secondclass();
System.out.println(scObject.theNumber);
i need help, please.