can we pass condition of if statement as an argument in any language?????????
class Matrix
{
static void loop(char a,char b,char c)
{
int a[][]=new int[3][3] ;
byte i,j ;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
if(a b c)
System.out.print(a[i][j]+"\t");
else
System.out.print(" "+"\t");
}
}
public static void main(String ar[])
{
loop('i','>','j');
}
}
it is just a example ..datatype and syntax is not correct..here i hav expressed what i am asking, is this possible and if yes what would be the datatype of argument??
REPLY WILL BE APRECIATED AND WOULD BE VERY HELPFUL FOR MY PROGRAMBLE BRAIN ;) BECAUSE THIS QUESTION IS BLOKING MY HEAD TO MOVE FURTHER....