package ss;
public class a15 {
public static boolean isSorted(int table[])
{
int i;
for(i=0;i<table.length-1;i++)
{
if(table[i]>table[i+1])
return false;
break;
}
return true;
}
public static void main(String[] args)
{
int table[]={1,2,5,4,5};
System.out.println(isSorted(table));
}
}
public class a15 {
public static boolean isSorted(int table[])
{
int i;
for(i=0;i<table.length-1;i++)
{
if(table[i]>table[i+1])
return false;
break;
}
return true;
}
public static void main(String[] args)
{
int table[]={1,2,5,4,5};
System.out.println(isSorted(table));
}
}