Write the definition of a method named copy receives a reference to a scanner object associated with a stream of remaining to be read from the stream and displays them, one on a line with no other spacing, onto standard output the method must not use a loop of any kind (for, while, do-while) to accomplish its job.