Text in window

This is the first applet that most students write. It sends text to a browser window.

import java.awt.*;
import java.applet.Applet;

public class void Hello extends Applet {

public void paint (Graphics g) {

g.drawString ("Hello World", 50, 50);



This is what it looks like:

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License