Skip to content

The Java Programmer

  • Home
  • Contact
  • About
The Java Programmer
  • About
  • Contact

How to Square a Number in Java

Leave a Comment / Basic / By Neeraj Mishra

We can square a number in Java in no less than two different ways. Let have a look on each method one by one. Method1: Multiplying the Number by Itself To square a number x, we can multiply the number by itself. Y = x * x. Java Program for the above method. import java.util.Scanner; …

How to Square a Number in Java Read More »

Solve Missing Return Statement Error in Java

Leave a Comment / Error / By Neeraj Mishra

There are many types of errors that can be encountered while writing a Java Program. The errors can be with the Syntax or the Semantics of the Java program. The Java Community tries hard to avoid these errors at compile time itself, so that a programmer does not have to run the program to encounter …

Solve Missing Return Statement Error in Java Read More »

RSA Algorithm in Java (Encryption and Decryption)

Leave a Comment / Algorithm / By Neeraj Mishra

The term RSA is an acronym for Rivest-Shamir-Adleman who brought out the algorithm in 1977. RSA is an asymmetric cryptographic algorithm which is used for encryption purposes so that only the required sources should know the text and no third party should be allowed to decrypt the text as it is encrypted. RSA works on …

RSA Algorithm in Java (Encryption and Decryption) Read More »

Java FizzBuzz Program

Leave a Comment / Interview Questions / By Neeraj Mishra

In this article, we’ll talk about what is FizzBuzz and how to implement FizzBuzz in Java. What is FizzBuzz? FizzBuzz is a group game for children to understand the concept of division and multiplication. In which, each child counts the numbers (starting from 1) following these rules: if that number is divisible by ‘3’ then …

Java FizzBuzz Program Read More »

Infinite Loop in Java

Leave a Comment / Basic / By Neeraj Mishra

Infinite loop in java refers to a situation where a condition is setup so that your loop continues infinitely without a stop. A loop statement is used to iterate statements or expressions for a definite number of times but sometimes we may need to iterate not for a fixed number but infinitely. For such situations, …

Infinite Loop in Java Read More »

Convert String to Byte Array or Byte Array to String in Java

Leave a Comment / Array, String / By Neeraj Mishra

Sometimes we need to convert Strings into Bytes because of several reasons like, to save content to the file, sending data over a network or it can be any other reason. So in this tutorial we’ll see how we can convert string to byte array or byte array to string in Java. Convert String to …

Convert String to Byte Array or Byte Array to String in Java Read More »

6 Best Lightweight Java IDEs

6 Comments / Tools / By Neeraj Mishra

When it comes to write code in any language, all of us choose an IDE to write the code because of the syntax highlighting, auto-complete, editing and running in the same environment (without using any extra command prompt to run the code), in-built debugger, reduced setup time etc. If we want to write code in …

6 Best Lightweight Java IDEs Read More »

Java Delay – 4 Ways to Add Delay in Java

Leave a Comment / Multithreading / By Neeraj Mishra

Let’s discuss about scenario when we want to introduce a delay in execution of a subsequent program. Before we move on further to understand the working of delay in Java, let’s understand some practical scenario in which we would need a delay in execution. As soon as the application is loaded and the user logged …

Java Delay – 4 Ways to Add Delay in Java Read More »

Posts pagination
← Previous Page 1 … 15 16 17 … 29 Next Page →

Categories

  • Algorithm
  • Array
  • Articles
  • Basic
  • Books
  • Collection
  • Data Structure
  • Design Pattern
  • Eclipse
  • Email
  • Error
  • Excel
  • Exception
  • Garbage Collection
  • Interview Questions
  • IO
  • JDBC
  • JSON
  • JSP
  • Multithreading
  • MySQL
  • Networking
  • OOP
  • Review
  • Servlet
  • Spring
  • String
  • Tools
  • Uncategorized
  • Web Services
  • XML

Copyright © 2025 The Java Programmer