mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 23:00:19 +08:00
7ec6a04ef8
* libjava.lang/Shazam.java: New file. libjava.lang/Shazam.out: New file. From-SVN: r27022
19 lines
289 B
Java
19 lines
289 B
Java
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 ());
|
|
}
|
|
}
|