Challenge: Declaring Variables
In this lesson, we will do a short coding exercise to test the understanding of data types and creating variables in Java
We'll cover the following...
We'll cover the following...
Problem statement
-
Declare an
inttype variable, name it int_number and assign it a value of 1000. -
Declare a
floattype variable, name it float_number and assign it a value of 10.292. -
Declare a
doubletype variable, name it double_number and assign it a value of 0.00000000000512365123. -
Declare a
chartype variable, name it char_name and assign it a value of N. -
Declare a
booleantype variable, name it bool_accept and assign it a value of true.