
Patrick B. answered 03/14/21
Math and computer tutor/teacher
class LyncyM
{
public static void main(String args[])
{
int iIntvar = 12;
long longIntNum = 54321;
float flAmt = 333.33f;
double flDblAmt = 3.1415925;
String str="HELLO";
// this is a one line commnet
/*****************
this is a multi-line comment
*************************************/
/*******************
operators: add +, subtract -, multiply *, divide /,
mod %, increment by 1 ++, decrement by 1 --
comparison operators: equal ==, not equal !=,
greater >, less <,
greater or equal >=,
less or equal <=
**************************/
// expression contains numbers, variables, operators
System.out.println(iIntvar);
System.out.println(longIntNum);
System.out.println(flAmt);
System.out.println(flDblAmt);
System.out.println(str);
}
}