Created
November 16, 2018 19:06
-
-
Save KinoAR/a6943c2d2c257ea838133469ca362024 to your computer and use it in GitHub Desktop.
An example of class and types in Java.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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