




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





fri.setHumidity(70); maxTemp = 110; // Draw the memory diagram when code execution reaches this point } }
public class { private area; private boolean int ; poblic void f2( int x, y) { if (x = 3) { System.out.println("Step 1"); } else { System.out.println("Step 2"); } } /* A simple method public void setArea(theArea double) { area = theArea; } }
public class ProbThreeC { private int numBananas; private double gallonsCoffee; public void test( boolean likesMe) { numBananas = gallonsCoffee; gallonsCoffee = numBananas; gallonsCoffee = likesMe; if (numBananas == gallonsCoffee) { System.out.println("hello"); } int a = 0; if ((a = 2) == 3) { System.out.println("hello"); } if ((a == 2) = 3) {
System.out.println("hello"); } } }