Cheers it looks much neater and im using Netbeans IDE 6.0.1 it didnt like the StartSymbolic[i] so I changed to StartSymbolic[index] but by doing that the output the beginning and ending symbol should match each other but they're not!?!
package newpackage2;
public class RSA {
public static final char[] StartSymbolic = {'A','B','C','D','E','F','G','H','I','J',
'K','L','M','N','O','P','Q','R','S','T',
'U','V','W','X','Y','Z'};
public static final int[] numeric = {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};
private static final String separator = "*******************************************";
public static void main(String[] args) {
long P3 = 0;
long P3mod33 = 0;
long C7 = 0;
long C7mod33 = 0;
int temp = 0;
int tp=0;
int index=0;
for(int counter = 0; counter < numeric.length; counter++){
for(int i = 0; i < StartSymbolic.length; i++) {
temp = numeric[counter];
P3 = (long) (temp * temp * temp);
P3mod33 = P3 % 33;
C7 = (long) (P3mod33*P3mod33*P3mod33*P3mod33*P3mod33*P3mod33*P3mod33);
tp = numeric[counter];
C7mod33 = C7 % 33;
}
System.out.println(separator);
System.out.println("Beginning Symbol: " +StartSymbolic[index]++);
System.out.println("Numeric: " + numeric[counter]);
System.out.println("P3: " +P3);
System.out.println("P3mod33: " + P3mod33);
System.out.println("C7: " +C7);
System.out.println("C7mod33: " + C7mod33);
System.out.println("Ending Symbol: " +StartSymbolic[index++]);
// THESE are the commented lines, remove the double slash before System.out.println and it should work
System.out.println(separator);
}
}
}