aboutsummaryrefslogtreecommitdiffstats
path: root/bcel-builder/testdata/HelloWorld.java
diff options
context:
space:
mode:
authoraclement <aclement>2004-11-19 16:52:30 +0000
committeraclement <aclement>2004-11-19 16:52:30 +0000
commit4345b4b36f5b29b0b6783cb1985a52157c1ce3f5 (patch)
tree93d002a93f076e26c85fcdd4bd623247a9d47087 /bcel-builder/testdata/HelloWorld.java
parent1ad46c857bb676ff7237b9b6519b2db3563efb66 (diff)
downloadaspectj-4345b4b36f5b29b0b6783cb1985a52157c1ce3f5.tar.gz
aspectj-4345b4b36f5b29b0b6783cb1985a52157c1ce3f5.zip
BCEL Java5 Support
Diffstat (limited to 'bcel-builder/testdata/HelloWorld.java')
-rw-r--r--bcel-builder/testdata/HelloWorld.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/bcel-builder/testdata/HelloWorld.java b/bcel-builder/testdata/HelloWorld.java
new file mode 100644
index 000000000..9146fed8c
--- /dev/null
+++ b/bcel-builder/testdata/HelloWorld.java
@@ -0,0 +1,14 @@
+import java.io.*;
+
+public class HelloWorld {
+ public static void main(String[] argv) {
+ BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
+ String name = null;
+
+ try {
+ System.out.print("Please enter your name> ");
+ name = in.readLine();
+ } catch(IOException e) { return; }
+ System.out.println("Hello, " + name);
+ }
+ }