Shazam.java: New file.
* libjava.lang/Shazam.java: New file. libjava.lang/Shazam.out: New file. From-SVN: r27022
This commit is contained in:
committed by
Anthony Green
parent
777004694d
commit
7ec6a04ef8
@@ -0,0 +1,18 @@
|
||||
import java.io.*;
|
||||
|
||||
public class Shazam {
|
||||
|
||||
private static String shazam ()
|
||||
{
|
||||
try {
|
||||
return "shazam";
|
||||
} finally {
|
||||
System.out.println ("The next line should say \"shazam\"");
|
||||
}
|
||||
}
|
||||
|
||||
public static void main (String[] args)
|
||||
{
|
||||
System.out.println (shazam ());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user