Skip to content

Instantly share code, notes, and snippets.

@KinoAR
Created November 16, 2018 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KinoAR/a6943c2d2c257ea838133469ca362024 to your computer and use it in GitHub Desktop.
Save KinoAR/a6943c2d2c257ea838133469ca362024 to your computer and use it in GitHub Desktop.
An example of class and types in Java.
public class AddIntegers {
public static void main(String[] args) {
// Created two "integer type" variables
int numOne = 3;
int numTwo = 4;
//Print out the output of the addition
System.out.println(numOne + numTwo); //7
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment