In this lesson, students will learn how to change the data type of a value through the process of casting. They will also use casting to help round double values to the closest integer value. Students will explore the range of variables allowed in Java and understand integer overflow when a value outside of this range is attempted. This lesson corresponds with AP Computer Science A topic 1.5.
Students will be able to:
int
value must be in the range from Integer.MIN_VALUE
to Integer.MAX_ VALUE
inclusiveThese are all the activities included in the lesson