|
Hello World ! (pg. 2)
|
View this Thread in Original format
| Kytracid |
| quote: | Originally posted by Ortemy
is that gonna compile ?
EDIT: Actually i think it should, but what's the point of static loading? Aprils fools day? :conf:
;) |
Don't think it will...a bit rusty with java, but the { } for the hello world string doesn't look quite right...not that it matters.
Current_Post_Count++; |
|
|
| ahlamalek |
#include
main()
{
while (1)
{
printf("geeks! ");
}
} |
|
|
| Kytracid |
| quote: | Originally posted by ahlamalek
#include
main()
{
while (1)
{
printf("geeks! ");
}
} |
Stick to posting...crappiest piece of code...EVER ! :P |
|
|
| Ortemy |
| quote: | Originally posted by Slag
This is the way it should look...
public class HelloWorld
{
public static void main(String args[])
{
System.out.println("Hello World");
}
}
|
Durafei's way is also fine, he's just using a static block, it's one of his fav. techniques :D |
|
|
| Ortemy |
| quote: | Originally posted by Kytracid
Stick to posting...crappiest piece of code...EVER ! :P |
:haha: :haha: |
|
|
| ahlamalek |
| quote: | Originally posted by Kytracid
Stick to posting...crappiest piece of code...EVER ! :P |
hahahaha 75% of it ain't mine... its loconet's
:D:D:D
h |
|
|
| Durafei |
| quote: | Originally posted by Ortemy
Durafei's way is also fine, he's just using a static block, it's one of his fav. techniques :D |
Hehe.... looks like you did learn some Java after all :stongue:
My little proggie will indeed display "Hello World", even though main() method is empty. |
|
|
| loconet |
| quote: | Originally posted by ahlamalek
hahahaha 75% of it ain't mine... its loconet's
:D:D:D
h |
hey buddy, mine compiles :D |
|
|
| dallasstar |
hello Mr. Chatterbox...this is Mrs. Chatterbox, "pleased to see that you want to contact the World, it's about time"
......................................
/////'@}.............:o |
|
|
| ahlamalek |
| quote: | Originally posted by loconet
hey buddy, mine compiles :D |
mine too:o |
|
|
| Superstar |
import javax.swing.*;
public class HelloWorld {
public static void main (String args[]) {
JOptionPane.showMessageDialog(null, "Hello World!");
}
}
// OH NO!!! he did not just bust out the GUI!! |
|
|
| Tordan |
ASP Ownz you all...
<%@ Language=VBScript %>
<%
Response.Write "Hello World!"
%>
muhahahaha!!! |
|
|
|
|