• 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 Import Math in Java?

December 30, 2023 //  by Anees Asghar

To import the Math class in Java, use the “import static java.lang.Math.*;” statement at the start of your Java program.

Category: Java

How to Compare Strings in Java [14 Different Methods]

December 30, 2023 //  by Anees Asghar

Users can compare strings in Java using two ways, i.e., “string reference” comparison and “string content” comparison. When comparing by reference, Java checks if the two strings are stored in the exact same memory location. On the other hand, content comparison checks if the characters in the strings are exactly the same. Most of the …

Category: Java

How to Use the Math.max() Function in Java?

December 30, 2023 //  by Shameen Shahid

The Math.max() is a built-in static method in Java that calculates and returns the maximum value from the two given numeric values.

Category: Java

How to Use Java String toLowerCase() Method?

December 30, 2023 //  by Shameen Shahid

The toLowerCase() method of the String class returns a string in which all the uppercase characters are converted into lowercase letters of a given string.

Category: Java

How to Use Java String StartsWith() Method?

December 30, 2023 //  by Shameen Shahid

The Java String class startsWith() method tests if a string starts with specific characters and returns a boolean output as shown in the mentioned examples.

Category: Java

How to Square a Number in Java?

December 30, 2023 //  by Shameen Shahid

Squaring of a number in Java is calculated by multiplying the value by itself, by using the built-in methods, or via the BigInteger as shown in this article.

Category: Java

How to Use Math.min() Method in Java?

November 30, 2023 //  by Talha Malik

To use the “Math.min()” method in Java. Pass two values from which the minimum value needs to be found as an argument for the Math.min() method.

Category: Java

How to Sort a String in Java?

November 30, 2023 //  by Talha Malik

To sort a String in Java, use the “sort()” method with default and custom parameters, “Java 8 Streams API”, “reverseOrder()”, or define a custom method.

Category: Java

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 9
  • Page 10
  • Page 11
  • Page 12
  • Page 13
  • 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