1.) Willingness to learn
2.) Know the basics of a computer
Instructions:
Before we begin your going to need a program to start programming with
go to http://www.eclipse.org/ you will be presented with a bunch of
downloads, but should download you one that is presented in this picture

and you will know which is the right one to download. Assuming you have
done the installation process we can now begin !
Part 1.) Let's begin:
Before we begin, you should have Eclipse open and start a New project

Then we're going to need classes which i will explain later

When creating classes, we allways need 1 main class so the project
knows where to begin

Once were done we should automatically have what looks like this

Part 2.) Lesson:
Here are some things you should know before you continue onto our exercise!
Definitions:
Variable - is a facility for storing data.
Class - Java is class-based programming, which refers to the style of object-oriented programming in which inheritance is achieved by defining classes of objects.
Primitive data types:
int - aka Integer, you've probably heard if you have ever
been in a Math class but in programming it's a little bit
different. It can be a negative, neutral or positive number.
been in a Math class but in programming it's a little bit
different. It can be a negative, neutral or positive number.
String - Is basically a string of words or letters
example: "Hello world!"
example: "Hello world!"
Boolean - Your probably thinking "Wow boolean thats a weird word".
It really just has one of two values; true or false.
It really just has one of two values; true or false.
Note* - There are more data types but they will not be discuss as this is
a begineer lesson.
Statement structure:
A class is made up of a bunch of different statement, the structure for creating a statement goes like this...
(data type) (variable name) = (data value);
Your probably woundering what the ";" semicolon is doing there, in Java we allways end our statements with
semicolon.
An example of assignment statements are:
int tax = 10; String str = "Hello world!";
Strings should allways have quotations marks around them.
To print something to the console to the user can see it we type "System.out.println();"
and inside the parenthesis we have what we want to display.
Part3.) Exercise:
Let's begin making our very first console program !
This is a prime example of a very simple console program named "Hello world!"
Input:
public class NameOfClasshere {
public static void main(String[] args) {
int anumber = 10;
String hi = "Hello World! "; // Creating a variable named "hi" that hold the text "Hello world!"
System.out.println(hi + anumber); // Calling "hi" and "anumber" variable to display to the user
}
}
Output:






MultiQuote








|