Código em java para criação de uma calculadora de matrizes.

import javax.swing.*;
public class Calc_Matriz
{
	public static void main(String args[])
	{
		
		int i, j, L_AB, C_AB, L_AB2, C_AB2;
		String resp="", resp2="", resp3="";
		String opc;
		opc = JOptionPane.showInputDialog("CALCULADORA DE MATRIZES: (Escolha a opção) nn"+
											"1 - Soma de Matrizesn"+
											"2 - Subtração de Matrizesn"+
											"3 - Multiplicação de Matrizesn"+
											"4 - SAIRn");
		switch(Integer.parseInt(opc))
		{
		
		case 1:
		
		L_AB = Integer.parseInt(JOptionPane.showInputDialog(null, "Digite o nº de LINHAS para a Matriz A e B"));
		C_AB = Integer.parseInt(JOptionPane.showInputDialog(null, "Digite o nº de COLUNAS para a Matriz A e B"));
		
		
		int[][] matriz_A = new int[L_AB][C_AB];
		int[][] matriz_B = new int[L_AB][C_AB];
		int[][] soma = new int[L_AB][C_AB];
		
		
		
		for(i=0; i