#javasimpleprograms
Explore tagged Tumblr posts
brioteq · 5 years ago
Text
Simple Java Program to get User Inputs:
Simple Java Program to get User Inputs:
Tumblr media
Calculate area of rectangle by getting user input values length and width. create object and call method using object.
Formula for Area of rectangle = length x width
import java.util.Scanner; //Calculate area of rectangle by getting user input values length and width //create object and call method using object //formula : Area of rectangle = length * width public class CalArea { public…
View On WordPress
0 notes