Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Java Basic Programs | Java Programming Examples with Output

Learning Java or any other programming language requires practice. More you practice more you will become comfortable with the syntax of the programming language and get better at coding.
In this post, I will be sharing Java programs on numbers, star patterns, alphabet patterns, and string. This is a good starting point for absolute beginners and beginners.

Read Also: Java Projects for Beginners

After understanding the problem, I recommend trying to solve the program by yourself first. If you face any difficulty then you can take reference from these examples. I suggest writing some examples of the problem statement before coding the java program. By writing examples, it will make sure that you have understood the program correctly.

Java Programs For Beginners

1. Number Programs

  • Java Program to check Happy Number
  • Java Program to check Harshad Number
  • Java Program to check Pronic Number
  • Java Program to check Disarium Number
  • Java Program to check Special Number
  • Java Program to check Bouncy Number
  • Java Program to check Magic Number
  • Java Program to check Neon Number
  • Java Program to check Duck Number
  • Java Program to check Perfect Number
  • Java Program to check Evil Number
  • Java Program to check Ugly Number
  • Java Program to check Spy Number

2. Pattern Programs in Java

  • 19 Different Number Pattern Programs in Java
  • 19 Different Star Pattern Programs in Java
  • 25 Different Alphabet Pattern Programs in Java

3. String Programs in Java

  • Java Program to reverse a String
  • Java Program to calculate the total number of vowels in String
  • Java Program to change Uppercase to Lowercase and vice-versa in String
  • Java Program to remove all the whitespaces from the String
  • Java Program to right trim a String
  • Java Program to left trim a String
  • Java Program to calculate the number of characters in the String
  • Java Program to calculate the number of whitespaces in the String
  • Java Program to calculate the number of words in the String
  • Java Program to find the first non-repeated character in String


Please bookmark this page I will keep adding the Java programs for beginners in this post.


This post first appeared on Java Hungry, please read the originial post: here

Share the post

Java Basic Programs | Java Programming Examples with Output

×

Subscribe to Java Hungry

Get updates delivered right to your inbox!

Thank you for your subscription

×