Here is the code:
class Solution {
public int findLengthOfLCIS(int[] nums) {
if(nums.length==0)
{
return 0;
}
int max = 0;
int count=0;
for(int i =0;i<nums.length-1;i++)
{
if(nums[i]<nums[i+1])
{
count++;
}
else
{
count=0;
}
max = max>count?max:count;
}
return max+1;
}
}