Examlex

Solved

The File Numbers

question 94

Essay

The file numbers.txt contains only positive integers. We want to calculate the maximum value among them. Complete the code below.
int max = 0;
try
{
Scanner scan = new Scanner( new File( "numbers.txt" ) );
// Your code goes here
scan.close( );
}
catch( Exception e )
{ }
System.out.println( "max = " + max );


Definitions:

Genetic Map

A graphical representation of the arrangement of genes or sequences on a chromosome.

Posterior

Toward the rear or back or toward the caudal end.

Pathophysiology

The study of mechanisms by which disease occurs, the responses of the body to the disease process, and the effects of both on normal function.

Endocytosis

A cellular process to bring large molecules of material into the cytoplasm of the cell.

Related Questions