import java.applet.Applet; import java.awt.*; public class HelloWorld1 extends Applet { public void paint(Graphics g) { Font font = new Font ("SansSerif", Font.BOLD, 26); g.setFont(font); g.drawString("Hello world!", 50, 25); System.out.println("Where does the output go?"); } // add this in order to run it as an application public static void main(String[] args) { Frame f = new Frame(); HelloWorld1 applet = new HelloWorld1(); f.add(applet); f.setSize(300,100); f.show(); } }