CISS-110 Project 1
The goal of the first project is to become acquainted with your integrated development environment (IDE). This is intended to purposefully introduce errors that you will then correct – preferably one at a time. The reason is that you should experience how some errors may change or completely disappear as a result of fixing just one.
Learning outcomes
- Interaction with IDE.
- Interaction with Java Compiler.
- Reviewing reported errors and deducing needed repairs.
- Successful compilation of project.
- Confirmation program produces desired results.
The code below should be copied and pasted into a new IDE session. Save the program and begin the compile/edit/run process.
public class Project1_lastname {
public static viod main (string[] args) {
int x, y;
char ch;
String s;
boolean b = true;
c = 'K';
x = 15;
Y = 20;
System.out.println("Value of x is " + x + ".");
System.out.println("Value of y is " + Y + ".");
System.out.println("Value of ch is " + c + ".");
S = "This is a string value assigned to s";
system.out.println("Value of s is\n*" + s +"*");
System.out.println("Value of b is " + b);
} // end of main method
} // end of class.
This is a relationship-building exercise. You are developing a relationship with the compiler. You will not always understand what the compiler is trying to tell you – much like relationships in real life!
You must work hard to begin understanding what your IDE and the Java compiler are trying to tell you. The errors will become easier to understand over time, but it is essential to begin the process now as this is a never-ending endeavor.
Try to resist the urge to apply the suggestions made by the IDE. While they are likely the correct solution for a given error, take the time to understand it. Afterward, see if the suggestion is correct. Sometimes, the suggestions are a best guess to solving the immediate error and often do not consider the surrounding errors.
Submit the project to the Learning Management System as Project1_lastname.java.