see requirement 7

Write a method named search(int value) that searches for a value, and returns the row the value is in, multiplied by the sum of the row.

If search is passed 2, it would return [6,12,18]

Requirements are as followed –

** use the following libraries if needed**

import java.beans.XMLDecoder;

import java.io.FileInputStream;

import java.io.IOException;

import java.util.ArrayList;

import java.util.Comparator;

import java.io.DataOutputStream;

import java.io.Serializable;

use readObject() and writeObject Methods from library if needed

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *