Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

/** * Contains a method <code>void display()</code> that all the <code>main</cod

ID: 3791317 • Letter: #

Question

 /**  * Contains a method <code>void display()</code> that all the <code>main</code> methods  * call to display the information. Fill the box with your personal  * information.  *   * @author Marcel Turcotte (turcotte@eecs.uottawa.ca)  */  public class StudentInfo {      /**      * Displays the information: name, id, section, etc for each      * member of the team.      */      public static void display() {          System.out.println("************************************************************");         System.out.println("*                                                          *");         System.out.println("*                                                          *");         System.out.println("*                                                          *");         System.out.println("*                                                          *");         System.out.println("************************************************************");         System.out.println();      }  } 

Explanation / Answer


// StudentInfo.java
public class StudentInfo {

/**
* Displays the information: name, id, section, etc for each
* member of the team.
*/

public static void display()
{
// display information
System.out.println("************************************************************");
System.out.println("*Name: " + " *");
System.out.println("*ID: " + id + " *");
System.out.println("*Section: " + section + " *");
System.out.println("*Marks: " + marks + " *");

System.out.println("************************************************************");
System.out.println();

}

}