private void example()
{
int j=10
for (int i=0; i<10; i++)
{
j=j – i;
}
Can you tell me what the following code would do to the values of i and j?
private void example()
{
int j=10
for (int i=0; i<10; i++)
{
j=j – i;
}
Systm.out.println("i: "+i+" j: "+j);public void act()
{
exampleAgain(); // Add your action code here.
}
private void exampleAgain()
{
int j=10;
for (int i=0; i<10; i++)
{
j=j-i;
getWorld().addObject(new Bee(), 200, 200);
}
}