11. "you take your answer" and "assign that value" how to do that?


#1

How did you do it?
"you take your answer" and "assign that value"
how to do that?


Need 11. Generalizations help!
#2

I would like to explain how to assign a value with putting the complete answer.

Here are examples of assigning values to variable names. These are all examples from the previous exercises.

int myLuckyNumber = 7;
int myNumber = 42;
boolean isFun = true; 
char movieRating = 'A';
boolean isFormatted = false;
char myChar = 'A';
int myInt = -2;

Are you finding any of those mysterious? Maybe you are able to understand what "assign a value" means in Java?

Maybe you are having doubts about something else?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.