/Hello-World

Java labs

Primary LanguageJava

Hello-World

Java labs (src folder)

Lab 01 - Grader

NULL

Lab 02 - Hello World

Install Java JDK and IDE (JetBrains Intellij IDEA) & do a few brief tasks:

  • Java Background
  • Install Java
  • Install IDEA
  • Check out IDEA
  • Start your first IDEA program
  • Create a package and a class
  • Getting a program to work
  • Add a main method
  • Run the program
  • Numbers
  • Strings

Lab 03 - Elementary Control Structures

  • Keyboard shortcuts
  • Start small. Do one thing at a time.
  • Control structures
  • Expressions
  • The for loop
  • The if-else structure
  • Loop with selection
  • Application of loops

Lab 04 - Scanner and Output

Java Console I/O using Scanner and println

  • Google Java 16 Scanner
  • Google Java 17 String

Lab 05 - Prime Numbers

Twin primes?

Lab 06 - Two Ints

A simple class

Lab 07 - Interval Class

Interval arithmetic