SDES sdes = new SDES(108); // 00011011002 = 10810 int ciphertext = sdes.encrypt(225); // 111000012 = 22510
No additional input should be required, so the test program should be runnable by redirecting an input file containing only the values above on consecutive lines, e.g.
e 1001110101 00011011
Note that you are reading in the key and plaintext values from the user as binary strings, so you will need to convert them to integers for encryption.