Question: Develop a method called print _ FirstName that it must have no argument. It should ask user his / her full name ( Name Surname
Develop a method called printFirstName that it must have no argument. It should ask user hisher full name Name Surname and display only the First Name.Hint: Use JOptionPane.showMessageDialog for input Develop a method called printLastName that it must have a String argument called fullName. It should display only the Last Name.Hint: Use JOptionPane.showMessageDialog for input Develop a method called printFirstLastChars that it must have a String argument called str It should display first two characters and the last two character of the String strHint: Use JOptionPane.showMessageDialog for input Develop a method called cubeVolume that it must have an argument height as it is double. It should calculate and display the volume of the cube. Develop a method called areaCircle that it must have no arguments. It should ark user the radius of the circle, then it must calculate and display the area of the circleHint: Use Scanner object for reading the radius
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
