Search lessons

Suggested searches

Browse

Basics of Java

Goals

  • Learn how to create a simple program in Java
  • Learn basic input and output
  • Learn how to create and use comments
  • Learn what variables are

Tasks

  • Print "Hello World"
  • Make a program that contains two variables, and then prints their sum, difference, product, and quotient
  • Make a program that takes in someone's name, and then prints "Hello [NAME]"
  • Have fun! Programming is supposed to be fun--try random things, learn from your mistakes, and put in your best.

Reference