TLE error is comming please tell me the method how to resolve the TLE errors

my code is not saving at coding blocks IDE please resolve that issue also and here is the code
import java.util.*;
public class Main
{
public static void main(String args[])
{
int i,temp,size,j,l,r,t;
Scanner sc=new Scanner(System.in);
size=sc.nextInt();
if(size>0&&size<=1000)
{
int a[]=new int[size];
for(i=0;i<size;i++)
{
a[i]=sc.nextInt();
}
t=sc.nextInt();
for(i=0;i<size;i++)
{
for(j=i+1;j<size;j++)
{
if(a[i]>a[j])
{
temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
}
for(i=0;i<size;i++)
{
l=i+1;
r=size-1;
while(l<r)
{
if(a[i]+a[l]+a[r]==t)
{
System.out.println(a[i]+", “+a[l]+” and "+a[r]);
l++;
r–;
}
else if(a[i]+a[l]+a[r]>t)
{
r–;
}

		}
	}



}

}
}

@mohdkaifalam041,
https://ide.codingblocks.com/s/240586 corrected code.

Do l++ as well if a[i] + a[l] + a[r] < t . I have also highlighted the line in your code.