PPT Slide
Pick a String, Any String
// A first program in Java
import java.applet.Applet;
import java.awt.Graphics;
public class Welcome extends Applet {
public void paint( Graphics g ) {
g.drawString( "Welcome to Java Programming!", 25, 25 );
If you want to draw a string, you’ve gotta specify:
A string (Given in quotes here because we want a literal string) and...