Remember not to create packages. Use the default package
1A
In this problem you will use the Rectangle
class in the Java library. To look at Rectangle's public interface type java api rectangle into Google or other search engine
Complete the class ProcessRectangle given to you. You will find it at the Codecheck URL below.
1B
In this problem you will use various String methods. Complete the class StringPrinter
given to you. You will find at the Codecheck URL below
Remember that replace
is an accessor method. It returns the changed version of the string. If you want to do something with the returned string - like use replace on it again - you need to save the return value in a variable.
You must use the String replace method to replace characters. No credit for simply printing the word with replacements or replacing the entire word.
Note: When you submit your code to Codecheck, it will first run with the given word(separate) but then it will run again with a different word. You do not need to worry about that. It will happen automatically. If your code is correct, the second word will also execute correctly.
1C
This semester your final is on Dec 13, 2017.
Write a program FinalPrinter which will calculate how many days from today (whatever day the program is run) until the final.
You are given a Day class to use from Chapter 2 Worked Example 1. You will find it at the Codecheck URL below.
System.out.println(today);
Submitting
After you are satisfied that your code is correct,