Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

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 sid

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions