• Menu
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

JavaBeat

Java Tutorial Blog

  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us

Talha Malik

How to Use the Java Scanner nextDouble() Method

August 31, 2023 //  by Talha Malik

The Scanner “nextDouble()” method scans the next input token as a Double and throws InputMismatchException, NoSuchElementException, and IllegalStateException.

Category: Java

How to Handle Arithmetic Exceptions in Java

August 31, 2023 //  by Talha Malik

The Arithmetic Exceptions can be faced upon dividing a number by zero, or division of non-terminating big decimals and can be resolved via “try/catch” blocks.

Category: Java

How to Convert Integer to Hexadecimal in Java

August 31, 2023 //  by Talha Malik

To convert an integer to hexadecimal in Java, apply the “Integer.toString()” method, the “toHexString()” method, or use the custom logic.

Category: Java

How to Calculate MD 5 in Java

August 31, 2023 //  by Talha Malik

To compute the cryptographic hashing value in Java, the “MessageDigest” class is used that computes the digest value, and retrieves the results in a byte array.

Category: Java

How to Use the System.nanoTime() Function in Java

August 31, 2023 //  by Talha Malik

The System.nanoTime() Function in Java returns the present time of a running Java program in nanoseconds with greater precision.

Category: Java

How to Truncate a String in Java

August 31, 2023 //  by Talha Malik

A string is truncated by various methods like JDK methods that include substring(), split(), codePoints() functions, or libraries like Apache Commons and Guava.

Category: Java

How to Use typeof in Java

July 31, 2023 //  by Talha Malik

There is no “typeOf” operator in Java. However, use the “getClass()” method, “instanceof” operator, or the “isInstance()” method to retrieve the type of values.

Category: Java

What is the Difference Between print() and println() in Java

July 31, 2023 //  by Talha Malik

The “print()” method prints text and the cursor remains at the end of the text whereas the “println()” method moves the cursor to the next line on the console.

Category: Java

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Go to Next Page »

Primary Sidebar

Follow Us

  • Facebook
  • Pinterest

FEATURED TUTORIALS

How to Initialize an Array in Java

Introduction to Java Server Faces (JSF)

Introduction to Java 6.0 New Features, Part–1

Java 6.0 Features Part – 2 : Pluggable Annotation Processing API

Introduction to Java Server Faces(JSF) HTML Tags

JavaBeat

Copyright © by JavaBeat · All rights reserved
Privacy Policy | Contact