/*
 Lesson 3

	- primitive types:int,double,char,boolean
	- reference types: Moe,Scanner,System,String

	- initialization & assignment
	- numeric operations: / * - + %
*/

import java.util.Scanner;

class Aug31 {

	public static void main(String[] args) {

		int x = 10;
		// 1 0 1 0
		
		// long, int, short
		// a bit is a unit of memory that can store a 0 or a 1
		// a byte is a collection of 8 bits
		// memory is organized in bytes
		// an int uses 4 bytes
		// int can hold pos and neg whole numbers

		int y = -10;

		/*  floating point types  */
		// these hold approximations to decimal numbers
		// double and float hold decimal values
		// they can store pos and neg values
		// double uses 8 bytes, float uses 4 bytes
		// use f in float literal value

		double radius = 3.2;
		float diameter = -3.5f;

		// the char type is used to store a single byte value
		// use single quotes around character symbols
		
		char middleInitial = 'E';

		// boolean type can hold true of false

		boolean flag = true;

		/* primitive types: int, double, char, boolean
		 * variable values are stored in memory


		/* reference types: 
		 variables of reference types hold a memory address
		 */

		Object o = new Object();
		System.out.println(o);

	}
}
