Contents [0/3] |
Homework (MyBasicJava) [1/3] |
Uploading homework [2/3] |
How to talk about code via email or on Discord [3/3] |
(Click here for one slide per page)
Homework (MyBasicJava) [1/3] |
Install the tools for class. Instructions.
Optional: After you've installed IntelliJ IDEA Community Edition, you can go to the Help menu and choose "Learn IDE Features" for some built-in tutorials on how to use IDEA.
See Features Trainer for more information.
Don't bother doing the "Git" tutorial, as we won't be using git in this class.
Look over IntelliJ IDEA: Getting Started. You can skim most of the content, but you might want to read through the following sections carefully.
Look on D2L for quiz to complete.
Programming Homework:
Download the following two files to your local machine. Copy them to src/main/java/ds1.student
in IntelliJ IDEA. They should compile and run (Press the Play button in IntelliJ IDEA to be sure. If you have problems, ask in Discord!).
Most of the work will be in MyBasicJava.java
. The other file contains a main
program
that will guide you in manual testing.
Look for comments with the word TODO
in both files. Follow all directions! Implement each method.
Submit ONLY the MyBasicJava.java
file to the appropriate folder in D2L.
NEW on Friday, 1/10/2025: Java Demo
Here is a Java demonstration program that has functions that I implemented that are similar to your homework.
Download it and save it to the ds1.student
package under src/main/java
in IntelliJ IDEA.
Take a look at the included main
function. Feel free to change things around and experiment!
NB: You do not need to submit this file!
Read chapter 1 of Core Java for the Impatient.
Read Algorithms (the primary text) through the end of Section 1.1.
There's a free online version in case you don't have the text yet. Check out the links for the textbook on the course homepage.
Uploading homework [2/3] |
After you have completed the assignment, save your work in IntelliJ IDEA
and use drag-and-drop to upload the file to D2L. Note that in the images that follow, the file name is different. Your homework file for Week 1 is in the package ds1.student
and it is called MyBasicJava.java
.
The following diagrams illustrate how you will upload your homework files. Note: These diagrams are old, so ignore the filename here, but they illustrate how to submit a homework file. You need to submit MyBasicJava.java
.
If drag-and-drop does not work, you can use an alternative method and click Upload.
Be very careful to upload a .java
file from the src
directory.
Do not upload a .class
file from the bin
directory.
Make sure you see the file you uploaded under the Upload button, and then click Add.
Make sure you click Submit. D2L should send you an email confirming your submission.
How to talk about code via email or on Discord [3/3] |
If you want advice about an error, send me email, doing one of the following.
Include a screenshot showing the error.
Copy and paste the EXACT TEXT of the error into your email message.
If you have a problem getting a program to work and you want me to look at some of your code in more detail, send me email with the following three things.
Your java file as an attachment.
A description of how the output of the program is different from what you expected.
The output of your program, if it runs.