Sami Elkady

Coding, Software and Tech Reviews

JAVA – string methods – 3

This the third post for Java string methods. In this post I will detail more functions and its functionalities. split() This method has two variants and splits this string around matches of the given regular expression. Syntax: public String[] split(String regex, int limit) or public String[] split(String regex) regex — the delimiting regular expression. limit — […]

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: public boolean matches(String regex) regex  the regular expression.

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

JAVA BEGINNERS TUTORIAL – Working with 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: String greeting = “Hello Java!”; Whenever it encounters a string literal in your code, the compiler creates a […]

JAVA BEGINNERS TUTORIAL – Working with Characters

when we need to use one character and dealwith it we use primitive data types char. char ch = ‘a’; // Unicode for the arrow ↘ as character char uniChar = ‘\u2198’; // an array of chars char[] charArray ={ ‘a’, ‘b’, ‘c’, ‘d’, ‘e’ }; in development, we come across some situations where we need […]

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

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