Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+13 votes
asked in CSC305 Fall 2023 by (1 point)

2 Answers

+3 votes

You can create a new file and copy the whole code into that file

answered by (1 point)
+1

In Eclipse, you can right click and choose "new class", and make sure you name the class SimplePaint so it matches.

+3 votes

Quyen's answer may be the easiest.

Alternatively, in Chrome, once you've opened up SimplePaint.java from Moodle, you can right click anywhere on the web page and choose "Save as...", but then you'll need to change the file type from from ".txt" to "all files", and you'll need to rename it as "SimplePaint.java".

Then you can drag-and-drop the file into Eclipse. (I presume you can drag-and-drop it into IntelliJ too!)

answered by (3.5k points)
...