Sami Elkady

Coding, Software and Tech Reviews

JAVA BEGINNERS TUTORIAL – Dealing With Numbers 1

From time to time I need to have a peek on the basics of any language I know for that reason I am wrting these toturial blogs. any programming language must have to Work with numbers. in java is easy as we use primitive data types such as byte, int, long, double, etc.  Example: int i = […]

JAVA BEGINNERS TUTORIAL – Branching Statements

The break Statement: The break Statement is used to stop the entire loop (for loop, while loop or do-while) or a switch statement. The break keyword will stop the execution of the innermost loop and start executing the next line of code after the block. Syntax: break; Example: public class Test { public static void main(String args[]) { int [] […]

JAVA BEGINNERS TUTORIAL – Loops

sometimes we need to execute a block of code in several recurrent times. this action called a loop and for this action Java have some Loop statments as the following: while Loop: A while loop is a control structure that allows you to repeat a task a certain number of times. and it means while […]

JAVA BEGINNERS TUTORIAL – Conditions

Programming is conditions and it is the main core of start writing a code as when you think in any problem you will find that you need to take decision for that we have decision making statments as the following: The if-then Statement: An if statement consists of an expression followed by one or more statements. this expression evaluates […]

JAVA BEGINNERS TUTORIAL – Operators

Operators are special symbols that perform specific operations on one, two, or three operands, and then return a result. As we explore Java operators, it will be helpful for any body to know ahead of time which operators have the highest precedence. The operators in the following table are listed according to precedence order. The closer […]

JAVA BEGINNERS TUTORIAL – Variables

Variables must be declared before being used. basically the type is one of Java’s datatypes. The identifier is the name of the variable. To declare more than one variable of the specified type, use a comma-separated list. datatype identifier [ = value][, identifier [= value] …] ; Here are several examples of variable declarations of […]

JAVA BEGINNERS TUTORIAL – DataTypes

Usualy when you create a variable you reserve some space in memory Based on its data type, the operating system allocates memory and decides what can be stored in the reserved memory. There are two data types available in Java: Primitive Reference/Object Primitive Data Types: There are eight primitive data types supported by Java. Primitive data types […]

JAVA BEGINNERS TUTORIAL – Syntax

A normal deffinaton of Java  program is a collection of objects that communicate by using each other’s methods. And: Object: In language a material thing that can be seen and touched. a person or thing to which a specified action or feeling is directed. in Programming : A lines of codes that have have states/properties and behaviors/methods. also […]

JAVA BEGINNERS TUTORIAL – Intro

Java growth and got a widespread popularity, multiple configurations were built to suite various types of platforms. Ex: J2EE for Enterprise Applications, J2ME for Mobile Applications.  So Java is: Object Oriented: In Java, everything is an Object. Java can be easily extended since it is based on the Object model. Platform independent: Unlike many other programming languages including C […]