-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain3.java
50 lines (49 loc) · 1.01 KB
/
Main3.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package main;
import lab3.*;
import java.util.Scanner;
public class Main3
{
public static void property()
{
Bungalow b=new Bungalow();
System.out.println("Enter Details of Property Bungalow:");
b.read();
b.display();
Flat f=new Flat();
System.out.println("Enter Details of Property Flat:");
f.read();
f.display();
}
public static void multiply()
{
Multiplication obj=new MatrixMultiplication(3,3);
obj.multiplication();
obj.display();
obj=new IntegerNumberMultiplication(8,5);
obj.multiplication();
obj.display();
}
public static void main(String a[])
{
int ch;
Scanner o=new Scanner(System.in);
System.out.println("1.Compute Price of property\n2.Implement multiplication\n");
System.out.println("Enter your choice: ");
ch = o.nextInt();
switch(ch)
{
case 1:{
property();
break;
}
case 2:{
multiply();
break;
}
default:{
System.out.println("\nEnter valid choice");
break;
}
}
}
}