|
Last change
on this file since 3103 was 2, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
289 bytes
|
| Line | |
|---|
| 1 | import java.io.*;
|
|---|
| 2 |
|
|---|
| 3 | public class Shazam {
|
|---|
| 4 |
|
|---|
| 5 | private static String shazam ()
|
|---|
| 6 | {
|
|---|
| 7 | try {
|
|---|
| 8 | return "shazam";
|
|---|
| 9 | } finally {
|
|---|
| 10 | System.out.println ("The next line should say \"shazam\"");
|
|---|
| 11 | }
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | public static void main (String[] args)
|
|---|
| 15 | {
|
|---|
| 16 | System.out.println (shazam ());
|
|---|
| 17 | }
|
|---|
| 18 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.