//Also see "Notes" at the bottom of the program.

import java.util.Scanner; //Imports the Scanner class so you can have the user enter info
						  //Declare in first line always. Its just the way things are.

public class TheBasics	  //Declares class name (TheBasics). Never use spaces in the name.
{						  //Curly brackets that shows what is in the class.

	static Scanner scan = new Scanner(System.in); //Delcaration of the Scanner class. The allows you to
												  //have the user enter info. Declare it before the method
												  //so if you have more than 1 class, you dont have to
												  //delcare it more than once.

	public static void main(String []args)		  //Delcares a new method. This is the basic way to write
												  //a method.

	{											  //Curly brackets that shows what is in the method

		int x;									  //Declaration of the integer (int) "x".
		double y;								  //Declaration of the double (double) "y".

		System.out.println("Enter a int");		  //Prints out the line shown in quotes
		x = scan.nextInt();						  //Asks user to give a int value for x
		System.out.println("\nYou entered: " + x);	//This prints a line showing what is in quotes,
													//and using the "+" to concatenate the value of y.
													//It will show up as "You entered: (What the user inputs)
													//The \n is an escape character that creates a new line
													//The other escape characters are "\t" -tab,
													//"\n" - new line, "\"" - quote, and "\\" - backslash

		System.out.println("\nEnter another int");	//The next three lines are the same as above, but just
		y = scan.nextDouble();						//setting a variable for the double value "y".
		System.out.println("\nYou entered: " + y);

			System.out.println("\n//////////\\\\\\\\\\\\\\ ");	//This creates a new line with a nice border.
															//Notice how backslashes must be created using
															//escape characters, so there are double as
															//many backslashes in the code than shown in
															//the console

			System.out.println("Results as double:");			//Shows the results in double form, as one
																//of the values inputed was a double.

			System.out.println("\\\\\\\\\\\\\\\\/////////");		//The bottom of the border.

			System.out.println("\nAdded: " + (x+y));			//These lines show how the two values inputed
			System.out.println("Subtracted: " + (x-y));			//are added, etc. The string shows what math
			System.out.println("Multiplied: " + (x*y));			//is happening, the "+" concatenates the words
			System.out.println("Divided: " + (x/y));			//to the math, and the parentheses are used to
			System.out.println("Remainder: " + (x%y));			//operate the math.

	}															//Marks the end of the method
}																//Marks the end of the class.

//Notes:
//When "//" is typed, it means that the programmer is making a comment. The complier ingores this code
//and continues to the rest of the program.

//The space between the lines of code is called "white space". It means nothing to the complier,
//but it is a nice way of keeping your code organized.

//Created by TheMk 10.31.09