-
String
String trim method
This is an example of how to use the trim method of String class. The String class represents character strings.…
Read More » -
String
Java Convert String toUpperCase
With this example, we are going to demonstrate how to convert a String toUpperCase in Java. The String class represents…
Read More » -
String
String startsWith method
In this example we shall show you how to use the startsWith method of String class. The String class represents…
Read More » -
String
Search String with indexOf method
This is an example of how to search a String using the indexOf method of String class. The String class…
Read More » -
String
Convert String to byte array ASCII encoding
This is an example of how to convert a String to byte array with ASCII encoding. The String class represents…
Read More » -
lang
Code injection with Java Proxy example
I was using JDBC PreparedStatement’s batch updates to modify a lot of data in a database and the processing was…
Read More » -
math
Generate random Integer within given range
In this example we shall show you how to generate a random Integer within a given range, using random() method…
Read More » -
math
Find natural logarithm value of a number
This is an example of how to find the natural logarithm value of a number, using the log(double a) method…
Read More » -
math
Round float and double numbers
With this example we are going to demonstrate how to round float and double numbers using round() method of Math.…
Read More » -
math
Using Math Constants
In this example we shall show you how to get constant numbers using the Math Class. Apart from the methods for…
Read More »