Java Tutorial for Beginners [Part-6] – Strings

Hello, this is Saidur Rahman. Welcome to the Java Tutorial for Beginners from saidur.me. Today we will learn Strings basics.

Strings, which are widely used in Java programming, are a sequence of characters. In Java programming language, strings are treated as objects.The Java platform provides the String class to create and manipulate strings.

For example:

is same as:

Java String class provides a lot of methods to perform operations on string such as compare(), concat(), equals(), split(), length(), replace(), compareTo(), intern(), substring() etc.

Read More
 

Java Tutorial for Beginners [Part-5] – Data Types

Hello, this is Saidur Rahman. Welcome to the Java Tutorial for Beginners from saidur.me.

Today we will learn Basic Data Types.

Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in the memory. Based on the data type of a variable, the operating system allocates memory and decides what can be stored in the reserved memory.

Data types represent the different values to be stored in the variable. In java, there are two types of data types:

  • Primitive data types
  • Non-primitive data types
Read More
 

Java Tutorial for Beginners [Part-4] – Variable

Hello, this is Saidur Rahman. Welcome to the Java Tutorial for Beginners from saidur.me.

Today we will learn variable. First question is what is a variable? Variable is a combination of “vary + able” that means its value can be changed.

1) Local Variable
A variable which is declared inside the method is called local variable.

Read More
 

Java Tutorial for Beginners [Part-3] – Hello World Program

Hello, this is Saidur Rahman. Welcome to the Java Tutorial for Beginners from saidur.me.

We will learn how to write the simple program of java. We can write a simple hello java program easily after installing the JDK.  This is free Eclipse IDE for Java. I think you already installed JDK and Eclipse.

Click File -> New -> Java Project -> Tutorial -> Right Click -> Src -> Create one file named “Simple”->

Sysout (clt+space) ,  this is the shortcut for eclipse.

Read More
 

Java Tutorial for Beginners [Part-2] – Environment set up

Hello, this is Saidur Rahman. Welcome to the Java Tutorial for Beginners from saidur.me. Today I will talk about Environment set up. The last released version of Java SE is 8.

Java SE is freely available from the mentioned download link and install JDK. As I have already downloaded, I am not going to download it again.

Read More
 

Java Tutorial for Beginners [Part-1] – Introduction

Hello, My name is Saidur Rahman. Welcome to the Java Tutorial for Beginners from saidur.me. This course focuses on java basics and also practical coding. This course does not require previous knowledge of programming. If you know how to use computer I think you will be able to learn basic Java programming. For learning Java you need some tools e.g. JDK (Java Development Kit), IDE (NetBeans, eclipse, notepad++ etc.), I will use eclipse for this series of tutorial.

Let’s first discuss what is Java?

Java is a programming language and a platform. Java is a high level, robust, secured and object-oriented programming language.

Read More