spring1

Spring Propertyplaceholderconfigurer Example

In this tutorial we see what is the use of Spring’s Propertyplaceholderconfigurer class in detail. In general , in software development we will maintain some details in properties files , like database credendetials , smt server deatils …etc., but those details we maintain in different properties files and will write a logic and will read those detail for […]

java-logo

How To Convert String To Char Array In Java

In this tutorial we can see how to convert String to Char Array in Java, see the below example code.  

 OUT PUT:

 

String Concat Example in java

In Java , we can concat strings in few ways. please have a look in to the below example how can achieve that. Mainly 3 Ways we can concat strings in java, those are . 1. By using “+” operator 2. By Using concat() method. 3. By using StringBuffer’s append() method.   Example:

 OUT PUT:

[…]

How to Convert Date to String in Java

In this tutorial we will learn how to convert date to String in Java. Let us have a look in to the below code snippet. By using the format() method from SimpleDateFormat class we can convert date to String. P.S Refer to – SimpleDateFormat Java Docs

 OUT PUT:

     

java-logo

How to convert char Array To String in Java

In this tutorial we will see how to convert char Array To String in Java. Let us have a look in to the below example code. By passing the Char array to String constructor we can achieve this.

OUT PUT: 

  Happy learning String tutorials….    

java-logo

what is the difference between equals() and == in java

  In this tutorial we will lean what is the difference between equals() meathod and “==” operator  in java. Let us have a look in to the below example.                                            

    Scenario 1 […]

How to reverse a string in java

In this tutorial we will lean how to reverse a String in Java. There are few ways we can achieve this i.e by using  StringBuffer and StringBuilder class with reverse() method which is useful method to reverse String in Java . Another way is by using for loop we can reverse a String in java. Have […]

Substring in Java

In this tutorial we will lean how substring functionality works from String class in Java.. Let us have a example on substring in Java.  

  OUT PUT:

  Happy to learn String tutorials ….    

How to remove spaces in between the String in Java

In this tutorial we will learn how to remove spaces in between the String in Java. We can achieve this by using the method “replaceAll”  from String class. Let us have a look in to the below Example…. We have a text String like as below                     […]