Posts from Java

Create a Calculator using Switch case

By Mayank Garg

In this program, we will design a calculator using a switch case in Java. In this program, we have also use the scanner class. Scanner class is used for the user input without the .... Read More

How to create checkbox in Java Swing

By Mayank Garg

In this program, we will learn how to create checkbox in java swing and how to implement it in java. first, we import the Java Swing package in this program. All subscribers want t.... Read More

How to Create Radio Button in java

By Mayank Garg

In this post, we will learn the use of the radio button and how to implement it in java. First, we need to import the Swing package in the program. One question is always coming in.... Read More

Scanner Class in Java

By Shiwang Mishra

Scanner Class is easy to understand and implement. That is why it is best suited for beginners. It is not very efficient because it fails the time constraint and hence not at all a.... Read More

Get the Host name, Port no, File name, Protocol of any URL in Advance java.

By Mayank Garg

This Java tutorial will focus on the following topics: How to find the hostname from URL Get the port no from URL Get File Name from URL Find Protocol from URL Get hostname, port n.... Read More

Panel in java using applet

By Mayank Garg

In this program, we have created a panel using the applet with the AWT package in java. So first we will discuss what is a panel then we will learn how to create panel in Java. Pan.... Read More

Quiz game using java

By Mayank Garg

In this program, we will learn how to create a quiz game using java swing GUI. In this program, we will use the Action listener method and Swing class. first, we create a frame acc.... Read More

Square pattern display using java

By Mayank Garg

In this program, we will learn how to display the pattern of the square using Java. We will use some while loops and for loops for the iteration. Import the util class Use the Scan.... Read More