### 테스트 5만 안돌아갑니다.

class Solution {
public int solution(int[] numbers) {
int onevalue = -1;
int twovalue = -1;

``````    for(int i = 0; i<numbers.length; i++){

if(i ==0){
onevalue = numbers[i];
}
else if(onevalue < numbers[i]){
onevalue = numbers[i];
}

}
int chk = 0;

for(int j = 0;  j <numbers.length; j++){
if(j== 0) {
twovalue = numbers[j];
}
else if(twovalue < numbers[j]){
if(onevalue != numbers[j] || chk > 0){
twovalue = numbers[j];
}else{
chk +=1;
}
}

}

}
``````

}

###### 작성중인 코드―Solution.java
``````1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
class Solution {
public int solution(int[] numbers) {
int onevalue = -1;
int twovalue = -1;

for(int i = 0; i<numbers.length; i++){

if(i ==0){
onevalue = numbers[i];
}
else if(onevalue < numbers[i]){
onevalue = numbers[i];
}

}
int chk = 0;

for(int j = 0;  j <numbers.length; j++){
if(j== 0) {
twovalue = numbers[j];
}
else if(twovalue < numbers[j]){
if(onevalue != numbers[j] || chk > 0){
twovalue = numbers[j];
}else{
chk +=1;
}
}

}

}
}
``````