d2jsp
d2jsp Forums > Off-Topic > Programmer's Haven > Java, Visual Basic, VBScript > Question About Duration
Add Reply New Topic New Poll
05BB
Group: Member
Posts: 316
Joined: Oct 10 2018
Gold: Locked
Aug 10 2020 02:57am
Hi,

can some1 help me with the following task:


What does the following program do and what is the duration of the program? First enter the duration of each line and then the total duration.

Public int calc (int[] array) {
int i = 0;
int j= array[0];
while (i < array.length) {
if (array > j) {
j = array;
}
i ++;
}
return j;
}

Help plz, can offer 3 fg ^^
Go Back To Java, Visual Basic, VBScript Topic List
Add Reply New Topic New Poll