Question: The Student class has a default constructor, a constructor with one parameter, and a constructor with three parameters. Declare the following objects: student 1 with
The Student class has a default constructor, a constructor with one parameter, and a constructor with three parameters. Declare the following objects:
student with no arguments
student with studentName as an argument
student with studentName, studentAge, and studentHeight as arguments
Ex: If the input is Mai then the output is:
Student: Unspecified,
Student: Mai,
Student: Mai,
Club.java
Student.java
import java.util.Scanner;
public class Club
public static void mainString args
Scanner scnr new ScannerSystemin;
String studentName;
int studentAge;
double studentHeight;
studentName scnrnext;
studentAge scnrnextInt;
studentHeight scnrnextDouble;
Your code goes here
studentprint;
studentprint;
studentprint;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
