Create two classes. The first class will be called PracticeExecutionApplication. This class will have one method, public void static main(String [ ] args).
The second class is a table class. It will have three properties: a String object called tableClothColor, a integer variable numberOfSeats, and boolean variable isTableInUse. The table class will have 6 methods all methods are getter and setter methods. (Hint 1: use the IDE to create the getter and setter methods.)
The "main" (reread pages 8, 9, and 10 pdf pgs: 42, 43, 44) method will create two table objects: classRoomTable and diningRoom table. Set the seat number of the classroom table to 4. Set the seat number of the diningRoom table to 8. Print the number of seats to the screen.
During this training session you will need a few things.
First and foremost you will need the JDK (Java Development Kit). This is different from a JRE (Java Runtime Enviornment). The JDK has more power: it enables you to actually perform development tasks. The JRE only lets you run Java applications.
Second you will need an IDE (Integrated Development Environment). The IDE we will be using in IntelliJ, made by JetBrains. JetBrains is my favorite. They produce IDE's for a lot of languages. All of them that I've used have been...TIGHT! Yeah. I've found them to be like that sexy prom date smiling at the pickup location for all of the memorable pics!
Anyway, there are other IDE's: Spring uses an Eclipse based IDE, Spring Tool Suite. It's pretty nice, too. I mean if your first prom choice has already been selected. Eh, have a great time with the second! (Don't tell Dave Syr I said this. He's like the prom king of the Spring world and I don't want to end up in the parking lot.)
The point is you can't run an IDE without at least the JRE. And you can't develop without the JDK. So, first, download the JDK.
I've provided 3 versions of a JDK. Two are for Winows. One is for MAC. If you need a linux version, type this into www.google.com: "download java jdk for linux OS"
a) If you don't know which Windows version you have do the following
1) hit: "open windows + R"
2) type in "msinfo32", hit "ENTER"
3) take a look at the "System Info" it will tell you wheter you are x64bit or something else
i) Go to the oracle website (and accept the license agreement) here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
ii) download "jdk-8u181-windows-x64.exe" if you have x64bit
iii) download "jdk-8u181-windows-i586.exe" if you have something else
b) If you have a MAC it's easy
1) Got to the oracle website (and accept the license agreement) here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2) download "jdk-8u181-macosx-x64.dmg"
So this one is simple.
a) Go to the IntelliJ website here: https://www.jetbrains.com/idea/download/index.html. Make sure you download the Community Edition.
a) If you have a MAC
1) select "macOS" and click "Download"
b) If you have Windows
1) select "Windows" and click "Download"