Presentation is loading. Please wait.

Presentation is loading. Please wait.

Code Animation Examples

Similar presentations


Presentation on theme: "Code Animation Examples"— Presentation transcript:

1 Code Animation Examples
Steve Bruemmer

2 public static void main(String [] args)
{ int i; i = 3; int m = 4; i = i + m; i memory 3 main 4 m 3 + 7 System.out.println(i); } 4

3 public static void main(String [] args) { double radius = 4
public static void main(String [] args) { double radius = 4.0; double area = circleArea(radius); System.out.println(area); } public static double circleArea(double r) { return Math.PI * r * r; radius 4.0 area r 4.0 4.0 * * 50.24 main 4.0 50.24

4 { private final String MANU; private final int SIZE;
TV wall; wall = new TV(“Sony”, 52); wall.setChannel(5); public class TV { private final String MANU; private final int SIZE; private int channel; public TV(String m, int s) { MANU = m; SIZE = s; channel = 2; } wall Sony null 52 memory main MANU SIZE channel TV object, address 104B2 104B2 2


Download ppt "Code Animation Examples"

Similar presentations


Ads by Google