// Write "Hello World!" in Java and C
- // Java
- public class Jhello
- // define a public class Jhello
- {
- public static void main( String args[] )
- // 'main' method is public, static, void - yet to figure it out.
- {
- System.out.println( "Hello, World!" );
- }
- }
// in C
- #include <stdio.h>
- int main(void)
- {
- printf("Hello, World!/n");
- }
/** Maybe achieve the same goal with two different lang will help me to study them at the same time. Time is runnin' out, so keep it up.
/** (Quiz) What are 'public' 'static' 'void' used for? That's the point, will figure'm out l8r.
Bed, M comin'! ZZZZZzzzzzz,,.....