import java.util.*;
import java.lang.*;
import java.io.*;

class Main {

    public static void main(String[] args) {

        Scanner teclado = new Scanner(System.in);

        double g1, g2, g3, g4, g5;
        double total=0;
        double promedio;
        int[][] numeritos = new int[5][3];
        

        int f=0, c=0;
        
        total=0;
        System.out.print("\n\n-------------------\n\n");
        
        for(f=0;f<5;f++){
            for(c=0;c<3;c++){
                System.out.print("\nDigite el numero para almacenar en la matriz");
                numeritos[f][c] = teclado.nextInt();
            }
        }

        System.out.print("\n\n-------------------\n\n");
        for(f=0;f<5;f++){
            for(c=0;c<3;c++){
                System.out.print(" - " + numeritos[f][c] + " - ");
                //
            }
            System.out.print("\n\n");
        }

        
        
        
        
        teclado.close();
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: