Create a program that will create a private jagged array with the following specifications: contains 10 rows the length of the first row is 10, next row is 9…and the last row is 1 each index contains...


Create a program that will create a
private jagged array
with the following specifications:



  1. contains 10 rows

  2. the length of the first row is 10, next row is 9…and the last row is 1

  3. each index contains the sum of its indexes

  4. filenames are java (Class1 and SurnameLab2Demo.java (Class2)


(Surname will be the student’s surname)



  1. Class1 only contains the standard setter and getter method

  2. Class2 contains a method for setting the columns of each row

  3. Class2 contains a method for getting the sum of indexes

  4. Class2 contains a method for printing the output


Sample output:<br>output<br>1<br>2<br>6<br>9<br>1<br>2<br>4<br>6<br>2<br>3<br>4<br>5<br>9<br>4 5<br>4<br>6<br>9<br>8<br>

Extracted text: Sample output: output 1 2 6 9 1 2 4 6 2 3 4 5 9 4 5 4 6 9 8

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here