mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-04 16:50:57 +00:00
23 lines
264 B
Java
23 lines
264 B
Java
|
public class pr184
|
||
|
{
|
||
|
public static void main(String[] args)
|
||
|
{
|
||
|
pr184 n = null;
|
||
|
try
|
||
|
{
|
||
|
n.foo();
|
||
|
}
|
||
|
catch (NullPointerException x)
|
||
|
{
|
||
|
System.out.println(x);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
int x = 2;
|
||
|
|
||
|
final int foo()
|
||
|
{
|
||
|
return x;
|
||
|
};
|
||
|
}
|