How to interact with Java. Data types, variables, constants, & statements. The Math & String library

preview_player
Показать описание
Discussion on how to interact with Java, particularly in Dr. Java. Definition of variables and constants using primitive types and Strings.

Recognition of variable's definition/declaration. How to use arithmetic operations in variables.

The usage of libraries such as Math and String.
- Explanation of multiple Math methods such as .sqrt(), and .pow()
- Explanation of multiple String's methods such as .length(), .charAt(),
.toUpperCase(), .toLowerCase(), and .substring()

Discussion of StringIndexOutOfBounds, whenever it is accessed an index out of the boundaries of the String.
Рекомендации по теме
Комментарии
Автор

Can you run the same commands using other IDEs? Or is this just Dr. Java specific (such as writing 2+2 results in 4 in the terminal)

maomiao