MathBits.com
Return to Unit Menu | Java Main Page | MathBits.com | Terms of Use  

Banners

We will be creating computer screen banners, such as those seen in the opening minutes of the movie Matrix...

Neo awakens in front of his computer, and reads the words as they pop up in banner fashion:  "Wake up, Neo.  The Matrix has you.  Follow the white rabbit."


This banner will start on the left side of the screen and slowly pop out letters to the right.

import java.io.*;

public class banners1
{
     public static void main(String[ ] args) throws InterruptedException
     {
          String message = "Java";
          for (int k=0; k < message.length( ); k++)
          {
                System.out.print(message.charAt(k)+ " ");

                Thread.sleep (1000 /* millisec */);
          }
     }
}
 


Return to Unit Menu | Java Main Page | MathBits.com | Terms of Use