(String args[])
| 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 | } |
nothing calls this directly
no test coverage detected