first commit
This commit is contained in:
24
Semester 1/Programming 1/Java/examples/hello/Hello.java
Normal file
24
Semester 1/Programming 1/Java/examples/hello/Hello.java
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* Class Hello:
|
||||
*
|
||||
* Hello-world program to demonstrate BlueJ.
|
||||
*/
|
||||
class Hello
|
||||
{
|
||||
/**
|
||||
* Method that does the work
|
||||
*/
|
||||
public void go()
|
||||
{
|
||||
System.out.println("Hello, world");
|
||||
}
|
||||
|
||||
/**
|
||||
* main method for testing outside BlueJ
|
||||
*/
|
||||
public static void main(String[] args)
|
||||
{
|
||||
Hello hi = new Hello();
|
||||
hi.go();
|
||||
}
|
||||
}
|
||||
20
Semester 1/Programming 1/Java/examples/hello/README.TXT
Normal file
20
Semester 1/Programming 1/Java/examples/hello/README.TXT
Normal file
@@ -0,0 +1,20 @@
|
||||
BlueJ example project "hello"
|
||||
|
||||
Copyright (c) Michael K<>lling, Monash University, 1999-2000
|
||||
|
||||
This is "Hello world".
|
||||
|
||||
This project is distributed with the BlueJ system to make all those people
|
||||
happy who want to look at "Hello World" before anything else.
|
||||
|
||||
Please note that I think that this project is totally unsuitable to learn
|
||||
or teach anything about object-orientation. There is no sensible use of
|
||||
objects in this problem, and I do not recommend using it for teaching OO.
|
||||
|
||||
You can start this project in two ways:
|
||||
|
||||
- create a "Hello" object and run its "go" method, or
|
||||
- execute the static "main" method of the "Hello" class
|
||||
|
||||
|
||||
Michael K<>lling, August 2000
|
||||
14
Semester 1/Programming 1/Java/examples/hello/bluej.pkg
Normal file
14
Semester 1/Programming 1/Java/examples/hello/bluej.pkg
Normal file
@@ -0,0 +1,14 @@
|
||||
#BlueJ package file
|
||||
package.editor.height=239
|
||||
package.editor.width=352
|
||||
package.editor.x=60
|
||||
package.editor.y=82
|
||||
package.numDependencies=0
|
||||
package.numTargets=1
|
||||
target1.height=50
|
||||
target1.modifiers=1
|
||||
target1.name=Hello
|
||||
target1.type=ClassTarget
|
||||
target1.width=80
|
||||
target1.x=90
|
||||
target1.y=60
|
||||
Reference in New Issue
Block a user