How do you write a method defition for a method in java : This is my method signature and I'm writing this really long code that's supposed to update the student's mark and update the information in the grade book table given a student number and test number and yada yada yada. Anyway, before all of that, I'm going to have to write a method definition for a method, does anyone know a general format on how to do that? Heres my code so far by the way:



    import java.util.Scanner;
    public class GradeBook {
        private int numberofStudents;
        private int numberofTests;
        private int studId;
        
        private int [] [] table;
        
        private GradeBook()
        {
            Scanner keyboard = new Scanner (System.in);
            
            System.out.println("Enter the number of student in the class");
            
            int numberofStudents = keyboard.nextInt();
            
            System.out.println("Enter the number of tests taken for the term");
            int numberOfTests = keyboard.nextInt();
            
            table = new int [numberofStudents][numberofTests];
            System.out.println("Enter the students marks by ID number");
            
            System.out.println();
            for(int studId = 1; studId <= numberofStudents; studId++) {
                
                    System.out.println('\n' + "Student ID: " + studId);
                    for(int testNo =1; testNo <= numberOfTests; testNo++) {
                            System.out.println(" Test Number: " + testNo + '\t');
                            
                            table [studId -1] [testNo - 1] = keyboard.nextInt();
            }
        }
    }
        private void display()
        {
            int row, column;
            for(row =0; row<table.length; row++);
        
        {    System.out.print("Student ID: " + (row +1) + "Tests: ");
            
        
            for(column = 0; column < table[row]. length; column++)
                
                System.out.print(table[row] [column] + " ");
            
                System.out.println();
        }    
    }
    
        public static void main(String[] args) {
            GradeBook myBook = new GradeBook();
            myBook.display();
            // TODO Auto-generated method stub
    
        }
    
    }


