Question: 1. Complete the addition () method and add a method call in the main method (15 points): import javax.swing.JOptionPane; public class Chp5Demo1 { public static

1. Complete the addition () method and add a method call in the main method (15 points): import javax.swing.JOptionPane; public class Chp5Demo1 { public static void main(String[] args) { int x; int y; String input; input = JOptionPane.showInputDialog("Please enter number1"); x = Integer.parseInt(input); input = JOptionPane.showInputDialog("Please enter number2"); y = Integer.parseInt(input); //Add the method call here. } //Get the sum of x and y, and print out the sum. public static void addition(int x, int y) { } }

2. Write a program to print out your first and last name, you must use method call (15 points). uusing java encription

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!