• 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

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

What is the Difference Between toString() and valueOf() in Java

July 31, 2023 //  by Talha Malik

The “toString()” method throws “NullPointerException” if passed value is null whereas the “valueOf()” method returns “null” string if the passed value is null.

Category: Java

How to Initialize a List in Java

July 31, 2023 //  by Talha Malik

To initialize a list in Java, apply the “Arrays.asList()” method, the “List.add()” method, the “Collections” class methods, Stream, or the “List.of()” method.

Category: Java

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 14
  • Page 15
  • Page 16
  • Page 17
  • Page 18
  • Interim pages omitted …
  • Page 34
  • 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