BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

Java Program to check leap year using ternary operator

Last Updated: June 1, 2024 by Chaitanya Singh | Filed Under: Java Examples

In this tutorial, we will write a java program to check leap year using ternary operator. This program prompts user to enter a year. It… [Read More]

Check Duck Number in Java and Print these numbers in a range

Last Updated: November 14, 2022 by Chaitanya Singh | Filed Under: Java Examples

A positive number that contains a zero digit is called Duck Number. The important point to note is that numbers with only leading zeroes are… [Read More]

Check Buzz Number in Java and print all numbers in a range

Last Updated: January 1, 2024 by Chaitanya Singh | Filed Under: Java Examples

A number which either ends with 7 or divisible by 7 is called Buzz number. For example, 35 is a Buzz number as it is… [Read More]

Sphenic Number in Java – Check and Print all numbers in a range

Last Updated: November 13, 2022 by Chaitanya Singh | Filed Under: Java Examples

A Sphenic number is a product of three distinct prime numbers. For example, 66 is a sphenic number as it is a product of 2,… [Read More]

Split String into array of Characters in Java

Last Updated: September 30, 2022 by Chaitanya Singh | Filed Under: Java Examples

In this guide, we will see how to split a string into array of characters in Java. This can be archived by using this regex… [Read More]

Tags: Java-Array, Java-Strings

Split String by Multiple Delimiters in Java

Last Updated: September 30, 2022 by Chaitanya Singh | Filed Under: Java Examples

We learned various ways to split string in Java. In this guide, we will see how to split string by multiple delimiters in Java. Program… [Read More]

Tags: Java-Strings

Split String by Dot (.) in Java

Last Updated: September 28, 2022 by Chaitanya Singh | Filed Under: Java Examples

You can split a string by dot using the following regex inside the String.split() method. Here, we need to use double backslash before dot(.) to… [Read More]

Tags: Java-Strings

Split String by space in Java

Last Updated: September 28, 2022 by Chaitanya Singh | Filed Under: Java Examples

In this guide, we will write a program to split a string by space in Java. Java Program to split string by space You can… [Read More]

Tags: Java-Strings

Program to Implement Merge Sort in Java

Last Updated: September 23, 2022 by Chaitanya Singh | Filed Under: Java Examples

In this guide, you will learn how to implement merge sort algorithm in Java. What is a Merge Sort in Java? Merge sort algorithm is… [Read More]

Java Program to remove all the white spaces from a string

Last Updated: July 14, 2022 by Chaitanya Singh | Filed Under: Java Examples

In this tutorial, you will learn how to write a java program to remove all the whitespaces from a string. To do that we are… [Read More]

Java Program to find the longest repeating sequence in a string

Last Updated: July 10, 2022 by Chaitanya Singh | Filed Under: Java Examples

In this tutorial, you will learn how to write a java program to find the longest repeating sequence in a string. For example, if the… [Read More]

Java Program to find longest substring without repeating characters

Last Updated: July 9, 2022 by Chaitanya Singh | Filed Under: Java Examples

In this tutorial, you will learn how to write a java program to find longest substring without repeating characters. For example, if a string is… [Read More]

Java Program to find all subsets of a string

Last Updated: July 9, 2022 by Chaitanya Singh | Filed Under: Java Examples

In this article, you will learn how to write a java program to find all subsets of a String. If the number of characters in… [Read More]

Java Program to divide a String in ‘n’ equal parts

Last Updated: July 8, 2022 by Chaitanya Singh | Filed Under: Java Examples

In this article, we will write a java program to divide a string in ‘n’ equal parts. There are few things which we need to… [Read More]

Java Program to Check two Strings are anagram or not

Last Updated: December 1, 2024 by Chaitanya Singh | Filed Under: Java Examples

Anagram of a string is another string with the same characters but order of the characters can be different. For example, Two strings “Listen” and… [Read More]

  • 1
  • 2
  • 3
  • …
  • 9
  • Next Page »

Java Examples

  • Check Odd-even
  • Linear Search
  • Binary Search
  • Floyd's Triangle
  • Reverse number
  • Random Number
  • first n prime numbers
  • Disp prime Numbers
  • Check Prime number
  • Palindrome String
  • Find factorial
  • Sum of elements of Array
  • Area of rectangle
  • Area of Square
  • Area of Triangle
  • Circle

Tutorials

  • Java Tutorial
  • OOPs Concepts
  • Java String
  • Exception handling
  • Java Multithreading
  • Java I/O
  • Java Serialization
  • Java Regex
  • Java AWT
  • Java Swing
  • Java Enum
  • Java Annotations

Copyright © 2012 – 2025 BeginnersBook . Privacy Policy . Sitemap