/*
* This is a demo program about varibale types
* that we did via MS Teams on March 9, 2020
*
* by: C. Rilett
*/
class Main {
public static void main(String[] args) {
//when declaring a variable, give the type then the identifier.
int ageInt = 16; //whole number
double ageDouble = 16; //decimal
String ageString = "16"; //strings must be inside quotes
String strVar = "This is a string variable"
/* -----------------------------
* *
* *
* this is a multiline *
* comment *
* *
-----------------------------*/
System.out.println(ageInt+2+2);
System.out.println(ageDouble+4+4);
System.out.println(ageString+(6+4));
System.out.println("This is a string literal"); //string literal
System.out.println(strVar); //string variable
}
/*
* This method will calculate the area of a
* square using two sides.
*/
public static calculateArea(){
}
}