
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10744 Articles

AmitDiwan
359 Views
The Ints class is a utility class for primitive type int. Let us see the class declaration −@GwtCompatible public final class Ints extends ObjectExampleLet us see an example of one of the methods to perform concatenation. The concat() function in Ints class is used to concatenate the arrays passed as ... Read More

AmitDiwan
173 Views
The java.lang.Math.cbrt(double a) returns the cube root of a double value. For positive finite x, cbrt(-x) == -cbrt(x); that is, the cube root of a negative value is the negative of the cube root of that value's magnitude. Special cases −If the argument is NaN, then the result is NaN.If the argument ... Read More

AmitDiwan
139 Views
The java.lang.Math.log1p(double x) returns the natural logarithm of the sum of the argument and 1. Note that for small values x, the result of log1p(x) is much closer to the true result of ln(1 + x) than the floating-point evaluation of log(1.0+x).Special cases −If the argument is NaN or less than -1, ... Read More

AmitDiwan
166 Views
The java.lang.Math.log10(double a) returns the base 10 logarithm of a double value. Special cases −If the argument is NaN or less than zero, then the result is NaN.If the argument is positive infinity, then the result is positive infinity.If the argument is positive zero or negative zero, then the result is negative ... Read More

AmitDiwan
164 Views
The java.lang.Long.toBinaryString() method returns a string representation of the long argument as an unsigned integer in base 2.ExampleFollowing is an example to implement the toBinaryString() method −import java.lang.*; public class Demo { public static void main(String[] args) { long l = 190; System.out.println("Number ... Read More

AmitDiwan
122 Views
The java.lang.Integer.toBinaryString() method returns a string representation of the integer argument as an unsigned integer in base 2.ExampleFollowing is an example to implement the toBinaryString() method in Java −import java.lang.*; public class IntegerDemo { public static void main(String[] args) { int i = 170; System.out.println("Number ... Read More

AmitDiwan
2K+ Views
The java.lang.Math class contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions. This class provides mathematical functions in Java.Let us see some of these functions −Sr.NoMethod & Description1static double abs(double a)This method returns the absolute value of a double value.2static float ... Read More

AmitDiwan
309 Views
The java.util.Random class instance is used to generate a stream of pseudorandom numbers. Following are the methods provided by the Random class to set the seed of the random number, generate the next random number.Let us learn about some of these methods −Sr.NoMethod & Description1protected int next(int bits)This method generates the next ... Read More

AmitDiwan
1K+ Views
The java.util.calendar class provides the calendar functions in Java. Is an abstract class that provides methods for converting between a specific instant in time and a set of calendar fields such as YEAR, MONTH, DAY_OF_MONTH, HOUR, and so on, and for manipulating the calendar fields, such as getting the date ... Read More

AmitDiwan
1K+ Views
Iterator in Java is used to traverse each and every element in the collection. Using it, traverse, obtain each element or you can even remove. ListIterator extends Iterator to allow bidirectional traversal of a list, and the modification of elements.Following are the Interator Functions in Java −Modifier and TypeMethod & ... Read More