COMP 202 Lecture Notes - Lecture 6: Camel Case, Washing Machine

30 views5 pages
jc123 and 40170 others unlocked
COMP 202 Full Course Notes
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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents