public class AirPlane { public void fly(int speed) { final int e = 1; class FlyingEquation { { System.out.println(e);// line 1 System.out.println(speed);// line 2 } } } }
public void fly(int speed) {
final int e = 1;
class FlyingEquation {
{
System.out.println(e);// line 1
System.out.println(speed);// line 2
}
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.