Published on STEMRobotics (https://stemrobotics.cs.pdx.edu)

Home > Data Conversion (Casting)

Data Conversion (Casting)

Submitted by Richard Corn on 19 September, 2016 - 13:23

Java provides the ability to convert from one data type to another within a set of rules. Some conversions are made automatically and some you have to explicitly request.

Here [1] is a discussion of converting between primitive data types.

Here [2] is a discussion of converting between reference (object) data types.

Here [3] is a video about casting.

 

Material Type: 
Lecture/Presentation
Education Level: 
Middle School [4]
High School [5]
Focus Subject: 
Computing / Computer Science [6]
Robotics Software [7]
HW Platform: 
EV3 [8]
RoboRIO [9]
Tetrix [10]
SW Platform: 
Java [11]
Interactivity Style: 
Mixed [12]
Audience: 
Learner [13]



National Science Foundation

Source URL:https://stemrobotics.cs.pdx.edu/node/5082?root=7670

Links
[1] http://way2java.com/casting-operations/data-type-casting-type-conversion/ [2] http://way2java.com/casting-operations/object-casting/ [3] https://www.youtube.com/embed/AzO5pYE3y5o?version=3&rel=0 [4] https://stemrobotics.cs.pdx.edu/taxonomy/term/40 [5] https://stemrobotics.cs.pdx.edu/taxonomy/term/41 [6] https://stemrobotics.cs.pdx.edu/focus-area/computing-science [7] https://stemrobotics.cs.pdx.edu/focus-area/robotics-software [8] https://stemrobotics.cs.pdx.edu/taxonomy/term/156 [9] https://stemrobotics.cs.pdx.edu/taxonomy/term/162 [10] https://stemrobotics.cs.pdx.edu/target-hardwareplatform/tetrix [11] https://stemrobotics.cs.pdx.edu/target-software-platform/java [12] https://stemrobotics.cs.pdx.edu/taxonomy/term/26 [13] https://stemrobotics.cs.pdx.edu/taxonomy/term/29