Basic Java Language: Difference between revisions
wikademia>Devourer09 |
|||
| Line 339: | Line 339: | ||
=Exercises= | =Exercises= | ||
{{Activity | |||
| Printing variables | |||
| Create a program that stores a String with the value "ABC". Then print the value using System.out.println(StringIdentifierHere). Don't use System.out.prinln("ABC"), as we are focusing on creating variables. | |||
}} | |||
{{Activity | |||
| Printing number variables | |||
| Do the above with a long set to 10000. Note that you have to say System.out.println(LongIdentifier + ""). | |||
}} | |||
<br><br><hr> | <br><br><hr> | ||
<!--[[Topic:Java|Back to Java Main Page]] | [[Introduction_to_Java|Previous Lesson]] | [[Java_Decision_Structures|Next Lesson]]--> | <!--[[Topic:Java|Back to Java Main Page]] | [[Introduction_to_Java|Previous Lesson]] | [[Java_Decision_Structures|Next Lesson]]--> | ||