java operator precedence example
class EvolutionOrder
{
public static void main(String arg[])
{
System.out.println(m1(1) +m1(2)*m1(3)/m1(4)-m1(5)* m1(6));
}
public static int m1(int i)
{
System.out.println(i);
return i;
}
}
output:
1
2
3
4
5
6
-28
0 comments:
Post a Comment