以下是我用Java编写的代码的一部分。我在一行中遇到错误 “ c = Integer.parseInt(br.readLine());” 请帮助
public class decipher
{
public static void main (String[] args) throws IOException
{
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
int [][] plainText= new int [16][16];
int [][] key= new int [16][16];
int [][] num= new int [16][16];
int [][] finalKey= new int [16][16];
int [][] cipherText= new int [16][16];
int c=0,a=0,i,j,m,n;
System.out.println("Enter cipher text character by character:");
for (i=0;i<16;i++)
{
for (j=0;j<16;j++)
{
c= Integer.parseInt(br.readLine());
if (c<257)
我遇到以下错误:
线程“ main”中的异常java.lang.NumberFormatException:在处为null java.lang.Integer.parseInt(Integer.java:542)在 java.lang.Integer.parseInt(Integer.java:615)在 decipher.main(decipher.java:23)