Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can someone help with this and I am using jGRASP editer 1) public class CallPerson { public static void main(String [] args) { String userName
Can someone help with this and I am using jGRASP editer
1)
public class CallPerson { public static void main(String [] args) { String userName = "Sam"; Person person1 = new Person(); person1.setFirstName(userName); System.out.print("You are " + person1.getFirstName()); return; } }
2)
PARTICIPATION ACTIVITY 7.2.6: Class example: Right triangle. Complete the program involving a class for a right triangle Current file: Load default template... RightTrianglejava 2 import java.lang.Math 4 public class RightTriangle { private double side1; 6 // FIXME: Declare side2 7 8 public void setSide1(double side1Val) { side! = side!Val; 10 return; 12 13 14 I/ FIXME: Define setSide20 15 16 17 18 19 20 public double getHypotenuseO I return -1.0; // FIXME: temporary until side2 defin // return Math.sqrt((side1 side1) + (side2 sidStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started