Skip to content

Commit 0ebe287

Browse files
authored
Remove main method from ComplexNumberMultiplication
Removed the main method that handles user input and output.
1 parent a3d7a97 commit 0ebe287

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/main/java/com/thealgorithms/strings/ComplexNumberMultiplication.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,4 @@ public static String complexNumberMultiply(String num1, String num2) {
4646
return real + "+" + imag + "i";
4747
}
4848

49-
public static void main(String[] args) {
50-
Scanner sc = new Scanner(System.in);
51-
52-
System.out.print("Enter first complex number (a+bi): ");
53-
String num1 = sc.nextLine();
54-
55-
System.out.print("Enter second complex number (c+di): ");
56-
String num2 = sc.nextLine();
57-
58-
String result = complexNumberMultiply(num1, num2);
59-
System.out.println("Result: " + result);
60-
61-
sc.close();
62-
}
6349
}

0 commit comments

Comments
 (0)