Java String to String Array Example

Java String to String Array Example This Java String to String Array example shows how to convert String object to String array in Java using split method. public class JavaStringToStringArrayExample { public static void main(String args[]){ //String which we want to convert to String array String str = “Java String to String Array Example”; /* * … Read more

Java String Array Contains Example

[ad_1] /* Java String Array Contains Example This Java String Array Contains example shows how to find a String in String array in Java. */   import java.util.Arrays;   public class StringArrayContainsExample { public static void main(String args[]){ //String array String[] strMonths = new String[]{“January”, “February”, “March”, “April”, “May”}; //Strings to find String strFind1 = … Read more

Java Character Array To String Example

In this post we will write a program in Java to convert character array to string. Let’s first understand the difference between them. The only difference between them is the “\O”, a string ends with this special character while a character array does not. Below is the program to convert character array t0 string: /* … Read more

Java Date to String Example

[ad_1] /* Java Date to String Example This Java Date to String example shows how to convert java.util.Date to String in Java. */   import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date;   public class ConvertDateToStringExample {   public static void main(String args[]){ //create new java.util.Date object Date date = new Date(); /* * To convert java.util.Date … Read more

WebDriver – Using Actions Class

Lights, camera, action! Yes, today its all about Actions. Oh, I am not talking about those fight sequences you watch in movies but about the keyboard and mouse actions. 😛 Selenium WebDriver provides a user-facing API for performing complex user gestures. We want automation everywhere! So, instead of using keyboard and mouse directly, we can … Read more