• 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

Anees Asghar

How to Create and Call a Method in Java

January 31, 2024 //  by Anees Asghar

To create a method, specify the access modifier, return type, and a valid name. To call a method in Java, specify method name followed by parenthesis and a semicolon.

Category: Java

How to Use the isNumeric() Method in Java?

January 23, 2024 //  by Anees Asghar

In Java, the StringUtils.isNumeric() accepts a string as a parameter and checks if the input string contains all Unicode digits. If yes, it retrieves true.

Category: Java

How to Get Intersection of Two Sets in Java

January 22, 2024 //  by Anees Asghar

In Java, different methods like “brute force”, “retainAll()”, and “Sets.intersection()” are used to calculate the intersection of two sets.

Category: Java

How to Create a Rock Paper Scissors Game in Java?

January 22, 2024 //  by Anees Asghar

To create a Rock Paper Scissors Game in Java, use the Scanner class to get the user’s move and the Random class to generate the computer’s move.

Category: 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

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • 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