MCPcopy Create free account
hub / github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice / main

Method main

Gfg/Main.java:252–274  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

250 }
251
252 public static void main(String args[]) throws IOException {
253 Main obj = new Main();
254 BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
255 System.out.println("Menu:\n1: Encryption\n2: Decryption");
256 choice = Integer.parseInt(in.readLine());
257 System.out.println("Enter the line: ");
258 String line = in.readLine();
259 System.out.println("Enter the key: ");
260 String key = in.readLine();
261 double sq = Math.sqrt(key.length());
262 if (sq != (long) sq)
263 System.out.println("Cannot Form a square matrix");
264 else {
265 int size = (int) sq;
266 if (obj.check(key, size)) {
267
268 System.out.println("Result:");
269 obj.cofact(obj.km, size);
270 obj.performDivision(line, size);
271
272 }
273 }
274 }
275}

Callers

nothing calls this directly

Calls 4

checkMethod · 0.95
cofactMethod · 0.95
performDivisionMethod · 0.95
lengthMethod · 0.80

Tested by

no test coverage detected