Java

JAVA – string methods – 2

This the second post for Java string methods. In this post I will detail more functions and its functionalities.  matches() This method tests string against given regular expression. This method returns true only if this string matches the given regular expression. Syntax:

regex  the regular expression.

Java

JAVA – string methods – 1

Java is rich with methods to handle strings and strings manipulation. In this post I will detail the most used string methods and usage of each one. As string functions are much and important I will make this post divided to several posts in a series to be easy to follow and to give time […]

Java

JAVA BEGINNERS TUTORIAL – Working with Strings | Strings

Strings are a sequence of characters. In the Java, strings are objects. The Java platform provides the String class to create and manipulate strings. Creating Strings: The most direct way to create a string is to write:

Whenever it encounters a string literal in your code, the compiler creates a String object with its […]

Java

JAVA BEGINNERS TUTORIAL – Working with Characters

when we need to use one character and dealwith it we use primitive data types char.

in development, we come across some situations where we need to use objects instead of primitive data types. In order to achieve this, Java provides wrapper class Character for primitive data type char. The Character class offers a number of useful […]

Java

JAVA BEGINNERS TUTORIAL – Dealing With Numbers 3

this how I review basics of a language to write what I reviewed in blog posts also it will be good interance for Android development. the good news now it become dialy as I need to review also other languages before release some open source case studies this blog post is the last one of […]

Java

JAVA BEGINNERS TUTORIAL – Dealing With Numbers 2

Back to number methods and more function to discuss toString() The method is used to get a String object representing the value of the Number Object. If the method takes a primitive data type as an argument, then the String object representing the primitive data type value is return. If the method takes two arguments, then a […]

Java

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:

In development, […]

Java

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:

Example:

The continue Statement: The continue Statement can be used in any of the […]

Java

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

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 […]

1 2