Create a Web project in Eclipse
In Eclipse web projects can be created easily. We will see how to create a simple web project having a JSP file and an HTML file. We will also see how to setup Tomcat server to run our web project. Let …
Technology for All
In Eclipse web projects can be created easily. We will see how to create a simple web project having a JSP file and an HTML file. We will also see how to setup Tomcat server to run our web project. Let …
What are Getter and setter methods ? Getter method is to retrieve the value of instance variable while a setter method is used to set or update the value of instance variable. It is a good practice to access instance variables …
“John, Can you deploy Branch 675 on UAT environment”. If John was a fresher then he would understand nothing in the above instruction given to him by senior. When we join any industry as a fresher then the most common problem …
repeat() method is present in String class of Java 11. It is used to repeat the string by the number of times mentioned in the argument of method and concatenate it at end of string. repeat() takes an argument which is …
stripTrailing() method has been introduced in String class of Java 11. It is used to remove all the trailing white space characters from the string and return the remaining string. It means it removes white spaces that come at the end of string. If the …
stripLeading() method has been introduced in String class of Java 11. It is used to remove all the leading white space characters from the string and return the remaining string. It means it removes white spaces that comes at beginning of …
In Java 11 a new method strip() has been introduced in String class. It is used to remove all the trailing and leading white space characters from the string. strip() method returns the string after removing these white spaces. If the …
isBlank() is a new method introduced in String class in Java. By naming isBlank() and isEmpty() methods look similar to each other, but there is a slight difference between them – isBlank() returns true for the string having only white space …
Few new methods have been introduced in Java 11, String class. One of them is isBlank() method. isBlank() method returns true if the string is empty or contains white space characters only. If the string contains multiple white space characters and …
Binary search is an optimized algorithm to perform searching operation. It follows Divide and Conquer approach for searching. Pre-condition of Binary search : To perform Binary search the array should be sorted in ascending or descending order. Logic of Binary Search …