Why test case failed

plese check my code

import java.util.*;

public class Main {

public static void main(String args[]) {

Scanner sc=new Scanner(System.in);

int t=sc.nextInt();

while(t–>0){

int n=sc.nextInt();

int dp[][]=new int[2][n+1];

dp[0][1]=1;

dp[1][1]=1;

for(int i=2;i<=n;i++){

	dp[0][i]=dp[0][i-1]+dp[1][i-1];

	dp[0][i]=dp[0][i]%1000000007;

	dp[1][i]=dp[0][i-1]%1000000007;

}

//System.out.println(Integer.MAX_VALUE);

System.out.println(dp[1][n]+dp[0][n]);

}
}

}

in this i have taken dp with mode=1000000007 so that ans would be in range of integer