Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  HelloWorld
Language: JAVA
Code:
import java.applet.*; 
import java.awt.*; 
  
public class HelloWorld extends Applet 
{
     public void init() 
     {} 
    public void stop() 
     {} 

     public void paint(Graphics g) 
     { 
 // String first, then x and y coordinate. 
      g.drawString("Hey hey hey",20,20); 
      g.drawString("Hellooow World",20,40);

     }

 

// That's it. Next is drawing special shapes on screen and using fonts. 
// Go to DrawExample.java.
Comments: