1
Fork 0
mini-java/miniJava/tests/pa3_tests/pass350.java

23 lines
297 B
Java
Raw Normal View History

2014-04-08 00:06:13 +00:00
/**
* COMP 520
* Method invocation
*/
class MainClass {
public static void main (String [] args) {
FirstClass f = new FirstClass ();
f.testme ();
}
}
class FirstClass
{
int n;
public void testme ()
{
int tstvar = 10;
System.out.println(tstvar);
}
}