Java2Blog
  • Home
  • Core Java
  • Tutorials
    • Spring
    • Spring Boot
    • Spring MVC
    • Java 8
    • Hibernate
  • Categories
    • Interview Questions
    • Spring Frameworks
    • Core java
    • Python
    • C++
  • NM
close
import_contacts

Java Tutorials

  • Core Java
  • Java Interview questions
  • Java 8 Stream
  • Java interview programs
import_contacts

Data structure and algorithm

  • Data structure in java
  • Data structure interview questions
import_contacts

Spring tutorials

  • Spring tutorial
  • Spring boot tutorial
  • Spring MVC tutorial
  • Spring interview questions

Core java

  • Basic java programs
    22 January

    Convert celsius to fahrenheit in java

    In this tutorial, we will see simple java program to convert celsius to fahrenheit in java. You can convert celsius to fahrenheit using this formula. fh = (1.8*cen) + 32; [crayon-6870e207e0423667532186/] Output: Enter Temperature in Centigrade : 30 Equivalent Temperature in Fahrenheit = 86.0

    Read More
  • Basic java programs
    22 January

    Convert fahrenheit to celsius in java

    In this tutorial, we will see simple java program to convert fahrenheit to celsius in java. You can convert fahrenheit to celsius using this formula. cel = (fh-32) / 1.8; [crayon-6870e207e07ae208829944/] Output: Enter Temperature in Fahrenheit : 79 Equivalent Temperature in Celsius : 26.11111111111111

    Read More
  • Basic java programs
    20 January

    Java program to delete words from sentence

    In this post, we will see how to delete words from the sentence. You can just use String’s replaceAll method to replace the word with empty String(""). Here is simple java program to delete words from the sentence. [crayon-6870e207e0849945647225/] Output: Enter a String : Java2Blog is a technical blog. Enter a Word you want to […]

    Read More
  • Basic java programs
    20 January

    Java program to remove vowels from String

    In this tutorial we will see how to remove vowels from String in java. Using replaceAll() method We will use String’s replaceAll() method to remove vowels from String. [crayon-6870e207e08e5030377105/] Output: Enter a String : Java2Blog All Vowels Removed Successfully..!! New String is : Jv2Blg Explaination Take input String from Scanner str1 Call replaceAll() method on […]

    Read More
  • Basic java programs
    20 January

    Java program to calculate arithmetic mean

    In this tutorial, we will see simple java program to calculate arithmetic mean. Here is simple algorithm to calculate arithmetic mean. Calculate sum of elements in the array Divide it by total number of element in the array. [crayon-6870e207e0a8c655044659/] Output: Please enter count of numbers you want to Enter ? 5 Enter 5 Numbers : […]

    Read More
  • Basic java programs
    20 January

    Java program to count positive, zero and negative numbers

    In this post, we will see Java program to count positive, zero and negative numbers [crayon-6870e207e0b21086670171/] Output: Enter 10 Numbers : 10 0 45 -10 67 0 76 -33 64 -92 5 Positive Numbers 3 Negative Numbers 2 Zero That’s all about Java program to count positive, zero and negative numbers

    Read More
  • Character java programs
    20 January

    Program to find frequency of characters in a string in java

    In this tutorial, we will see simple program to find frequency of characters in a string in java. There are multiple ways to solve this proble. Let’s see one by one. Using counter array Here is the algorithm for the same. Initialize counter array of 256 length Iterate over String and increase count by 1 […]

    Read More
  • Basic java programs Core Java interview String
    20 January

    Java program to count number of words in sentence

    In this tutorial, we will see a simple java program to count number of words in sentence. [crayon-6870e207e0d11830499892/] Output: Enter a Sentence : Java2Blog is a technical blog. Total number of words are 5 That’s all about Java program to count number of words in sentence.

    Read More
  • Basic java programs Core Java interview
    20 January

    Java program to print Diamond pattern

    In this tutorial, we will see java program to print diamond pattern. [crayon-6870e207e0d98521739228/] That’s all about printing diamond pattern in java.

    Read More
  • keyboard_arrow_left Previous
  • 1
  • …
  • 36
  • 37
  • 38
  • 39
  • 40
  • …
  • 70
  • Nextkeyboard_arrow_right

Newsletter


Let’s be Friends

  • Facebook
  • Twitter
  • LinkedIn

© 2020-22 Java2Blog Privacy Policy