• 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 an Array to a Set in Java?

January 22, 2024 //  by Anees Asghar

You can convert an array to a set in Java using different methods, such as “Arrays.asList()”, “Collections.addAll()”, “Set.of()” and Java 8 Stream API.

Category: Java

How to Check if a String is Numeric in Java

January 22, 2024 //  by Anees Asghar

You can use built-in parse methods, Apache Commons Lang, and regular expressions, to check if a string is numeric in Java.

Category: Java

String lastIndexOf() Method in Java

December 31, 2023 //  by Anees Asghar

In Java, the lastIndexOf() of the String class retrieves the last occurrence (position) of the provided character or substring.

Category: Java

How to Split a String by Whitespaces in Java?

December 31, 2023 //  by Anees Asghar

To split a string by whitespaces in Java, use the split() method on the provided string and specify the whitespace as a delimiter.

Category: Java

How to Find the Largest Element in an Array in Java?

December 31, 2023 //  by Anees Asghar

To find and print the largest array element in Java, different methods like Arrays.sort(), Collections.max(), Java 8 Stream API, etc. are used.

Category: Java

Collections emptyList() Method in Java

December 31, 2023 //  by Anees Asghar

In Java, the emptyList() is a built-in static method of the Collections class that doesn’t accept any parameter. It creates an empty and immutable List.

Category: Java

How to Use Modulo or Remainder Operator in Java

December 30, 2023 //  by Anees Asghar

The modulo operator in Java performs division on given values and retrieves the remainder as output. It is denoted with a percent sign “%”.

Category: Java

How to Parse a String in Java?

December 30, 2023 //  by Anees Asghar

To parse a string in Java, use the “parse()”, “split()”, or “useDelimiter()” method. Moreover, “StringUtils”, and the “StringTokenizer” Class are also used.

Category: Java

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