COMP 202 Lecture Notes - Lecture 6: Camel Case, Washing Machine
jc123 and 40170 others unlocked
100
COMP 202 Full Course Notes
Verified Note
100 documents
Document Summary
What are the kinds of things that might be true. A is less than or equal to b -> A is greater than or equal to b -> This is a non-comprehensive list of things that might be true. a==b a!=b ab a>=b. In java, it is legal to compare two values, as long as the question you"re asking makes sense. You can ask if 6 (an integer ) is larger than 8. 345 (a double ). You can"t ask if 6 is larger than potato. You can also ask questions comparing chars and integers . You can convert between binary and decimal (we went over this in a lecture). Every character on your keyboard (ie. variable of type char ) is stored with a number . compare character and integers. If you have a series of numbers, you can"t compare that to one number. have an integer value.