Java Math.pow() method returns, first argument raised to the power of second argument. For example, Math.pow(3, 2) returns 9. In this tutorial, we will discuss… [Read More]
Java Math.cbrt() Method
Java Math.cbrt() method returns cube root of a given double value. In this guide, we will discuss cbrt() method with examples. public class JavaExample {… [Read More]
Java Math.sqrt() Method
Java Math.sqrt() method returns the square root of a given number. In this guide, we will discuss sqrt() method in detail with examples. public class… [Read More]
Java Math.round() Method
Java Math.round() method returns closest number to the passed argument. For example, Math.round(15.75) would return 16. In this tutorial, we will discuss the round() method… [Read More]
Java Math.min() Method
Java Math.min() method returns the smaller number between two numbers passed as arguments. In this tutorial, we will discuss Math.min() method with examples. public class… [Read More]
Java Math.max() Method
Java Math.max() returns the greater number between two passed numbers. In this tutorial, we will discuss this method in detail with the help of examples…. [Read More]
Java Math.abs() Method
Java Math.abs() method returns an absolute value of the given number. In this tutorial, we will discuss abs() method with examples. public class JavaExample {… [Read More]
Java Math Class
Java Math class provides several useful methods that can be useful for performing various mathematical calculations in Java. It includes basic arithmetic, logarithmic and trigonometric… [Read More]
Java StringBuffer setLength() Method
Java StringBuffer setLength() method is used to set a new length to the existing StringBuffer sequence. If the new length is greater than the current… [Read More]
Java StringBuffer deleteCharAt() Method
In this guide, we will discuss the Java StringBuffer deleteCharAt() method with examples. Syntax of deleteCharAt() Method: sb.deleteCharAt(4); //deletes char present at index 4 Here… [Read More]
Java StringBuffer appendCodePoint() Method
Java StringBuffer appendCodePoint(int codePoint) Method appends string representation of the specified code point to this sequence. In this guide, we will discuss appendCodePoint() method with… [Read More]
Java StringBuffer append() Method
The append() method of Java StringBuffer class is used to append a specified value at the end of this character sequence. Syntax of append() Method: //append string… [Read More]
Java StringBuffer class With Examples
Java StringBuffer class is used to create mutable strings. A mutable string is the one which can be modified. StringBuffer is an alternative to Java… [Read More]
Java StringBuilder offsetByCodePoints()
The offsetByCodePoints(int index, int codePointOffset) method returns the index of a character that is offset from the given index by the specified code points. Syntax… [Read More]
Java StringBuilder codePointBefore()
Java StringBuilder codePointBefore(int index) method returns the unicode code point for the character before the specified index. For example, sb.codePointBefore(5) would return the code point… [Read More]
- « Previous Page
- 1
- …
- 6
- 7
- 8
- 9
- 10
- …
- 41
- Next Page »