Skip to main content

Posts

Showing posts with the label Java

How to Create a Java Program for Division (With explanations)| Learn Java in 5 minutes

How to Create a Java Program for Division. (With explanations) Java is a common Programming Language used nowadays. In this blog, I will show you how to create a simple Java Program for Division. Java is easy to understand. Java may look difficult but is very easy. If you are having problems in learning it, I have created a tutorial below on how to learn it. Believe me, it is very easy. 1.While writing a division program, you must start with import java.util.*;   Note: don't forget to write ";". It acts as a full stop.   2.Now you need to write "class" and the name of your program. 3.After that, you have to write a command. It is "public static void main()" 4. Next write the scanner class. Just write "Scanner x= new Scanner (System.in);" 5. Next, write "int" and any character such as a,b and c. Int means integer. 6. Now you have to write the output which will be visible to the visitor. So if my characters are a,b,c t