Lab 1: Name, Rank, and Serial Number
Due by the end of class
Your mission, should you choose to accept it, is to implement a simple program that prints out some basic information about yourself.
Don't be afraid to ask for help. The main purpose of this lab is to make sure that you know how to use IntelliJ and can write a basic working program in Java.
Specification
Create a project called Lab1
, saved into your OneDrive folder. You will probably need to connect to OneDrive before you can do so. Add a Java class to the project called Name
. Then, write a Java program, using the Hello World example covered in class as a model, printing out your name, your major, and your favorite food.
Here is sample output for me, but of course, your own information should be specific to you. Adas polo is Persian dish made with rice, lentils, and raisins. IntelliJ will print out this information in the Run pane toward the bottom of your window. Try to get the spacing to match my sample exactly, making it so that your name, major, and favorite food are all aligned on the left.
Name: Barry Wittman Major: Computer Science Food: Adas polo
Turn In
Find the file Name.java
in the Lab1\src
folder wherever you created your project, ideally in your Otterbein University OneDrive folder. Upload Name.java
to Blackboard. Especially this first time, check with me to make sure you saved it properly. Do not upload the entire project. I only want the Name.java
file.
All work must be done individually. Never look at someone else's code. Please refer to the course policies if you have any questions about academic integrity. If you have trouble with the assignment, I am always available for assistance.