Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
class Main{
  public static void main(String args[]) throws IOException{
   int n,m;
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   String line = br.readLine(); 
   String[] token = line.split(" ");
   n = Integer.parseInt(token[0]);
   m = Integer.parseInt(token[1]);
   l = Integer.parseInt(token[2]); 
   int[][] matrixA = new int[n][m];
   int[] matrixB = new int[m][l];
   int[] matrixanswer = new int[n][l]; 
 
   for(int i = 0; i < n ;i++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int j = 0; j < m ;j++){
        matrixA[i][j] = Integer.parseInt(token2[j]);
         
     }//for  
   }//for
 
   for(int k = 0; k < m ;k++){
     String line2 = br.readLine(); 
     String[] token2 = line2.split(" ");
     for(int l = 0; l < l ;l++){
        matrixB[k][l] = Integer.parseInt(token2[l]);
         
     }//for  
   }//for
 
   for(int o = 0; o < m ;o++){
      for(int p = 0; p < l ;p++){
        matrixanswer[o][p] = 0;
         
     }//for 
   }   
 
  for(int q = 0; q < m ;q++){
      for(int r = 0; r < l ;r++){
        matrixanswer[q][r] += matrixA[q][r]*matrixB[q][r];
      }
   
  }
 
    for(int s = 0; s < m ;s++){
      for(int t = 0; t < l ;t++){
       if(t<l-1){ 
        System.out.print(matrixanswer[s][t]+" ");
       }else{
        System.out.print(matrixanswer[s][t]);
       }
      }
       System.out.print("\n"); 
    }
 
  }
}

Compiler output:
Main.java:13: error: cannot find symbol
   l = Integer.parseInt(token[2]); 
   ^
  symbol:   variable l
  location: class Main
Main.java:15: error: cannot find symbol
   int[] matrixB = new int[m][l];
                              ^
  symbol:   variable l
  location: class Main
Main.java:15: error: incompatible types: int[][] cannot be converted to int[]
   int[] matrixB = new int[m][l];
                   ^
Main.java:16: error: cannot find symbol
   int[] matrixanswer = new int[n][l]; 
                                   ^
  symbol:   variable l
  location: class Main
Main.java:16: error: incompatible types: int[][] cannot be converted to int[]
   int[] matrixanswer = new int[n][l]; 
                        ^
Main.java:31: error: array required, but int found
        matrixB[k][l] = Integer.parseInt(token2[l]);
                  ^
Main.java:37: error: cannot find symbol
      for(int p = 0; p < l ;p++){
                         ^
  symbol:   variable l
  location: class Main
Main.java:38: error: array required, but int found
        matrixanswer[o][p] = 0;
                       ^
Main.java:44: error: cannot find symbol
      for(int r = 0; r < l ;r++){
                         ^
  symbol:   variable l
  location: class Main
Main.java:45: error: array required, but int found
        matrixanswer[q][r] += matrixA[q][r]*matrixB[q][r];
                       ^
Main.java:45: error: array required, but int found
        matrixanswer[q][r] += matrixA[q][r]*matrixB[q][r];
                                                      ^
Main.java:51: error: cannot find symbol
      for(int t = 0; t < l ;t++){
                         ^
  symbol:   variable l
  location: class Main
Main.java:52: error: cannot find symbol
       if(t<l-1){ 
            ^
  symbol:   variable l
  location: class Main
Main.java:53: error: array required, but int found
        System.out.print(matrixanswer[s][t]+" ");
                                        ^
Main.java:55: error: array required, but int found
        System.out.print(matrixanswer[s][t]);
                                        ^
15 errors