The clipboard in Windows (and other GUI environments) is a utility that allows you to copy from one program (like a web browswer) and paste into another (like Notepad.)
Copy the program from the Web browser into the clipboard.
You very likely have done this before by copying between Word documents or copying from the web into Word or other programs. This is the same. Copy the program (below) into the clipboard, then paste into Notepad.
Here is the example program, again:
public class HelloPlanets { public static void main ( String[] args ) { String[] planets = {"Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune", "Pluto"}; for ( int j=0; j< planets.length; j++ ) { System.out.println("Hello " + planets[j] +"!" ); } } }
Highlight the program by clicking the mouse on the first character, and dragging to the last character:
Be careful not to click the mouse again in the window or you will cancel your selection. (But you can always start over.) After you have done this, you should see something like the following:
Could you paste what you just copied into Notepad?
Could you paste what you just copied into Notepad++?
Could you paste what you just copied into BlueJ?