• 28 December

    Single Responsibility Principle in Java

    In this tutorial, we will learn about single responsibility principle in java.It is one of SOLID principles and simplest design principle as well. Single responsibility principle dictates that there should be only one reason to change the class.If you have more than one reason to change the class then refactor the class into multiple classes according […]

  • 25 December

    Vodnik po bonih in mobilnem dostopu bet365 – izračuni in nasveti

    Ta praktični vodnik po Bet365 mobile app se osredotoča na tisto, kar je resnično pomembno: bonuse, mobilni dostop in pravočasno izplačilo. Ne glede na to, ali ste novinec ali izkušen igralec, boste tukaj našli natančne informacije o delovanju, matematične izračune in praktične rešitve za pogoste težave. Quick Checklist Preverite starostno in identifikacijsko zahtevo (KYC) – […]

  • 24 December

    Reverse number in java

    In this post, we will see how to reverse a number in java. Here is simple program to reverse a number. package org.arpit.java2blog; import java.util.Scanner; public class ReverseNumberMain { public static void main(String[] args) { int number, reversedNumber=0, remainder; Scanner scan = new Scanner(System.in); System.out.print("Enter a Number : "); number = scan.nextInt(); while(number != 0) […]

  • Difference between Runnable and Callable in java
    16 December

    Difference between Runnable and Callable in java

    Runnable and Callable interface both are used in the multithreading environment.Callable is available in java.util.concurrent.Callable package and Runnable in java.lang.Thread. Difference between Runnable and Callable interface in java Runnable was introduced in java 1.0 version While Callable is an extended version of Runnable and introduced in java 1.5 to address the limitation of Runnable. Runnable […]

  • 14 December

    Java BigInteger to String

    In this tutorial, we will see how to convert BigInteger to String in java. There are many ways to convert BigInteger to String in java.Some of them are: Using toString() Using String.valueOf() toString method We can simply use BigInteger’s toString method to convert BigInteger to String. package org.arpit.java2blog; import java.math.BigInteger; public class BigIntegerToStringMain { public […]

  • 14 December

    Java String to BigInteger

    In this tutorial, we will see how to convert String to BigInteger in java. It is simple to convert String to BigInteger in java.We can simply use BigInteger’s constructor to convert String to BigInteger. BigInteger(String val) Above constructor convert String representation of BigInteger to BigInteger Let’s see this with the help of example: package org.arpit.java2blog; […]

  • 14 December

    BigDecimal divide

    In this tutorial we will see about BigDecimal‘s divide method. BigDecimal’s divide method is used to divide one BigDecimal by another. You can specify scale and rounding mode to get the output according to your need. There are 6 overloaded versions of divide method. Syntax BigDecimal divide ( BigDecimal divisor) BigDecimal divide ( BigDecimal divisor, […]

  • 14 December

    BigDecimal round

    In this tutorial, we will see about BigDecimal‘s round method. BigDecimal’s round method is used to round the BigDecimal based on MathContext setting. Syntax public BigDecimal round ( MathContext mc) Return type returns BigDecimal rounded with MathContext setting BigDecimal round example Let’s understand BigDecimal method with the help of example import java.math.*; package org.arpit.java2blog; import […]

  • 13 December

    Java Random nextDouble

    In this tutorial, we will see Java Random nextDouble method.It is used to generate random double. It returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator’s sequence. Syntax random.nextDouble() Here random is object of the java.util.Random class. Return returns random double. Example Let’s understand with the help […]

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.