Search.setIndex({"docnames": ["Java4Python/Exercises", "Java4Python/backmatter", "Java4Python/commonmistakes", "Java4Python/conditionals", "Java4Python/definingclasses", "Java4Python/firstjavaprogram", "Java4Python/introduction", "Java4Python/javadatatypes", "Java4Python/loopsanditeration", "Java4Python/moredocumentation", "Java4Python/namingconventions", "Java4Python/preface", "Java4Python/toctree", "Java4Python/whylearnjava", "index"], "filenames": ["Java4Python/Exercises.rst", "Java4Python/backmatter.rst", "Java4Python/commonmistakes.rst", "Java4Python/conditionals.rst", "Java4Python/definingclasses.rst", "Java4Python/firstjavaprogram.rst", "Java4Python/introduction.rst", "Java4Python/javadatatypes.rst", "Java4Python/loopsanditeration.rst", "Java4Python/moredocumentation.rst", "Java4Python/namingconventions.rst", "Java4Python/preface.rst", "Java4Python/toctree.rst", "Java4Python/whylearnjava.rst", "index.rst"], "titles": ["1.13. Exercises", "1.12. Colophon", "1.10. Common Mistakes", "1.6. Conditionals", "1.8. Defining Classes in Java", "1.4. Lets look at a Java Program", "1.2. Introduction", "1.5. Java Data Types", "1.7. Loops and Iteration", "1.11. Java Documentation", "1.9. Naming Conventions", "1.1. Preface", "1. Java for Python Programmers", "1.3. Why Learn another programming Language?", "Welcome to Java for Python Programmers"], "terms": {"thi": [0, 1, 3, 4, 5, 6, 7, 8, 9, 11, 13], "page": [0, 9, 14], "left": [0, 3, 5, 7], "blank": [0, 7], "i": [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13], "start": [1, 4, 5, 6, 7, 8, 10, 11, 13], "write": [1, 3, 5, 7, 8, 12, 13, 14], "articl": [1, 11], "2006": 1, "us": [1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "python": [1, 3, 4, 5, 6, 7, 8, 11, 13], "": [1, 2, 4, 5, 7, 8, 11, 13], "restructur": 1, "text": [1, 7], "In": [1, 3, 4, 5, 7, 8, 9, 11, 13], "2007": 1, "switch": [1, 12, 14], "markdown": 1, "sinc": [1, 3, 4, 5, 7], "everyth": [1, 5, 7], "els": [1, 4, 5, 12, 14], "wa": [1, 3, 7], "particular": [1, 4], "variant": 1, "excel": 1, "pandoc": 1, "program": [1, 3, 4, 6, 7, 11, 12, 14], "doe": [1, 3, 4, 5, 7, 11], "an": [1, 3, 4, 5, 7, 8, 10, 11, 12, 13, 14], "job": [1, 5, 7, 9], "convert": [1, 4, 7], "html": 1, "latex": 1, "pdf": 1, "other": [1, 4, 5, 7, 13], "format": [1, 4, 9], "The": [1, 3, 5, 7, 8, 9, 14], "sourc": [1, 5, 7, 9], "avail": [1, 7, 9, 11], "here": [1, 2, 3, 4, 7, 9], "final": [1, 4, 5, 7], "document": [1, 4, 7, 12, 14], "becam": [1, 7], "so": [1, 4, 5, 7, 8, 13], "big": [1, 4, 5, 7], "prepar": [1, 13], "version": [1, 4, 5, 6, 7], "htlatex": 1, "gener": [1, 4, 6, 7, 9, 13], "onlin": [1, 9], "If": [1, 3, 4, 5, 7, 8, 9, 11, 13], "you": [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13], "got": 1, "far": 1, "would": [1, 3, 4, 5, 7, 8, 11], "also": [1, 3, 4, 5, 7, 8], "like": [1, 3, 4, 5, 6, 7, 13], "space": [1, 4], "two": [1, 2, 4, 5, 7, 9, 11], "book": [1, 4, 6, 7, 11], "At": 1, "luther": [1, 11], "colleg": 1, "we": [1, 3, 4, 5, 6, 7, 8, 11, 13], "cs1": 1, "cs2": 1, "when": [1, 2, 4, 5, 7, 13], "decid": [1, 4, 7, 13], "make": [1, 4, 5, 7, 11, 13], "introduc": [1, 7], "c": [1, 4, 7, 8, 12, 14], "want": [1, 4, 5, 7, 8], "provid": [1, 4, 7, 8, 9], "our": [1, 4, 5, 6, 7], "student": [1, 4, 11], "semest": [1, 11, 13], "reason": [1, 4, 7, 13], "after": 1, "one": [1, 4, 5, 7, 8, 11, 13], "ar": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13], "just": [1, 4, 5, 6, 7, 8, 13], "get": [1, 3, 4, 5, 6, 7, 8, 9, 13], "comfort": 1, "languag": [1, 4, 5, 6, 7, 11, 12, 14], "sens": [1, 13], "push": 1, "them": [1, 4, 5, 7, 13], "brand": 1, "new": [1, 4, 5, 6, 7, 8, 12, 13, 14], "thei": [1, 4, 7], "some": [1, 4, 5, 7, 8, 9, 10, 13], "second": [1, 3, 4, 5, 7, 13], "realli": [1, 2, 4, 7, 8], "great": [1, 7], "teach": [1, 11], "data": [1, 2, 4, 6, 12, 14], "structur": [1, 7], "algorithm": 1, "evid": 1, "clear": [1, 4, 5, 13], "awai": [1, 3, 5], "all": [1, 3, 4, 5, 7, 8, 9, 10, 13], "syntact": 1, "clutter": 1, "david": 1, "ranum": 1, "wrote": [1, 5], "call": [1, 2, 4, 5, 7, 8, 13], "problem": [1, 2, 4, 7], "solv": [1, 4], "finish": 1, "own": [1, 4, 5, 11, 13], "well": 1, "fall": [1, 9], "2008": [1, 11], "class": [1, 5, 6, 7, 9, 10, 11, 12, 13, 14], "from": [1, 3, 4, 5, 7, 9, 13], "jone": 1, "bartlett": 1, "publish": [1, 11], "tent": 1, "titl": 1, "context": 1, "pleas": [1, 6, 11], "feel": [1, 11], "free": [1, 11], "contact": 1, "me": 1, "more": [1, 4, 5, 7, 13], "inform": [1, 4, 9, 13], "histo": [2, 7], "java": [2, 3, 6, 8, 10, 11], "21": [2, 8], "cannot": [2, 4, 7], "find": [2, 4, 5, 7, 11], "symbol": [2, 7], "count": [2, 7, 8], "locat": [2, 5, 7], "arraylist": [2, 7, 8], "integ": [2, 3, 4, 5, 7, 8], "10": [2, 4, 7, 8], "9": [2, 3, 7], "scanner": [2, 10, 14], "null": 2, "exampl": [2, 3, 4, 5, 7, 8, 9, 10, 11, 13], "error": [2, 4, 5, 7, 13], "messag": [2, 7], "occur": [2, 7], "notic": [2, 4, 5, 7], "pretti": 2, "unhelp": 2, "think": [2, 4, 5, 7, 8, 11, 13], "try": [2, 4, 5, 7, 13], "method": [2, 5, 7, 9, 10, 12, 13, 14], "first": [2, 3, 4, 5, 7, 13], "constructor": [2, 7, 9, 12, 14], "14": [2, 7, 13], "io": 2, "file": [2, 5, 7], "test": [2, 3, 4, 7], "dat": [2, 7], "19": [2, 5], "expect": [2, 13], "system": [2, 5, 7, 8, 10], "exit": [2, 5, 7], "0": [2, 3, 4, 7, 8, 11], "note": [2, 6, 7], "uncheck": [2, 7], "unsaf": [2, 7], "oper": [2, 4, 7, 12, 13, 14], "recompil": [2, 7], "xlint": [2, 7], "detail": [2, 7, 9], "statement": [3, 4, 5, 7], "veri": [3, 4, 5, 6, 7, 8, 10, 13], "similar": [3, 5, 7, 8], "have": [3, 4, 5, 6, 7, 8, 11, 13], "three": [3, 7, 8], "pattern": [3, 7], "statement1": [3, 8], "statement2": [3, 8], "same": [3, 4, 5, 7, 8, 9, 13], "simpli": [3, 4, 5, 7], "written": [3, 5, 8, 11], "onc": [3, 4, 5, 6, 7], "again": [3, 7], "can": [3, 4, 5, 7, 8, 13], "see": [3, 4, 5, 6, 7, 9, 11, 13], "curli": [3, 5, 8], "brace": [3, 5, 8], "defin": [3, 5, 7, 12, 14], "block": [3, 5, 7], "rather": [3, 4, 7, 8], "than": [3, 4, 7, 8, 13], "indent": [3, 5], "parenthesi": [3, 7, 8], "around": [3, 5], "requir": [3, 4, 5, 7], "becaus": [3, 4, 5, 7, 8], "technic": [3, 7], "function": [3, 4, 5, 7, 8, 13], "evalu": [3, 5, 7, 8], "true": [3, 4, 7], "fals": [3, 4, 7], "nest": 3, "both": [3, 4, 5, 6, 7, 8], "coupl": [3, 4, 5, 8], "wai": [3, 4, 5, 7, 8, 9, 11], "even": [3, 4, 5, 7, 13], "closer": [3, 5], "take": [3, 4, 5], "advantag": [3, 13], "rule": [3, 5, 7], "singl": [3, 4, 5], "need": [3, 4, 5, 7, 13], "enclos": 3, "onli": [3, 4, 5, 7], "each": [3, 4, 7, 8, 13], "follow": [3, 4, 5, 7, 8], "support": [3, 4, 7, 8, 13], "act": 3, "someth": [3, 4, 5, 7], "under": [3, 11], "certain": [3, 4, 7, 13], "To": [3, 4, 5, 7, 8], "grade": 3, "often": 3, "recommend": [3, 5], "do": [3, 4, 5, 7, 8, 9, 11, 13], "power": [3, 4, 6, 13], "model": [3, 13], "variabl": [3, 5, 8, 9, 10, 12, 13, 14], "compar": [3, 4], "equal": [3, 4, 7], "enumer": 3, "constant": [3, 10], "easi": [3, 5, 7, 13], "forget": [3, 7, 12, 13, 14], "put": [3, 4, 7], "break": 3, "out": [3, 5, 7, 8], "next": [3, 4, 5, 6, 7], "altern": [3, 4], "automat": [3, 4, 13], "execut": [3, 5, 7, 8], "For": [3, 4, 5, 7, 8, 10, 13], "95": 3, "omit": [3, 5], "case": [3, 4, 5, 7, 10], "print": [3, 4, 5, 7, 8], "A": [3, 4, 5, 7, 9, 13], "b": [3, 4], "comparison": [3, 4], "compound": 3, "express": [3, 7], "truevalu": 3, "falsevalu": 3, "part": [3, 4, 5, 7, 11], "assign": [3, 4, 5, 7, 8], "2": [3, 4, 7, 8], "3": [3, 7, 8, 11], "x": [3, 4, 7, 13], "1": [3, 4, 5, 7, 8, 13], "previou": [3, 7], "check": [3, 4], "valu": [3, 4, 5, 7, 8], "Of": [3, 4], "cours": [3, 4, 7, 11, 13], "could": [3, 4, 5, 7, 13], "been": [3, 4], "accomplish": [3, 4], "regular": 3, "sometim": [3, 13], "conveni": 3, "too": [3, 5, 7, 8], "much": [3, 4, 5, 7], "resist": 3, "alreadi": [4, 6, 7, 8], "seen": [4, 7, 8], "how": [4, 5, 6, 7, 13], "It": [4, 7, 13], "unavoid": 4, "simplest": 4, "section": [4, 5, 7, 8], "look": [4, 6, 7, 9, 12, 14], "creat": [4, 5, 7, 12, 13, 14], "type": [4, 5, 6, 12, 14], "let": [4, 7, 12, 14], "extend": 4, "set": [4, 7, 13], "numer": [4, 12, 14], "given": 4, "denomin": 4, "should": [4, 5, 7], "simplifi": 4, "ad": 4, "subtract": 4, "multipli": 4, "divid": 4, "togeth": [4, 7], "list": [4, 5, 8, 9, 12, 14], "sortabl": 4, "default": 4, "sort": 4, "mostli": 4, "complet": [4, 5], "refer": [4, 7, 8, 11, 13], "throughout": 4, "instanc": [4, 5, 9, 10], "add": [4, 5, 8], "ani": [4, 5, 7, 8, 9, 11], "time": [4, 5, 7, 8, 13], "objectrefer": 4, "variablenam": 4, "wherea": [4, 13], "must": [4, 5, 7, 13], "declar": [4, 5, 12, 14], "up": [4, 7], "front": 4, "come": [4, 7], "begin": [4, 6, 7, 8, 13], "definit": [4, 5, 12, 14], "end": [4, 5, 7, 8], "cai": [4, 11], "horstman": [4, 11], "author": 4, "core": [4, 5, 7, 11], "befor": [4, 5, 7], "code": [4, 5, 7, 9, 13], "With": [4, 5], "mind": 4, "public": [4, 5], "privat": [4, 5], "mean": [4, 5, 7, 13], "compil": [4, 5, 7, 13], "anoth": [4, 7, 12, 14], "tri": [4, 7], "f": 4, "y": [4, 7], "direct": 4, "access": [4, 7], "allow": [4, 7], "therefor": 4, "legitim": 4, "abl": 4, "getter": 4, "common": [4, 5, 6, 7, 11, 12, 13, 14], "practic": [4, 5, 7, 13], "setter": 4, "getnumer": 4, "return": [4, 5, 7], "void": [4, 5], "setnumer": 4, "getdenomin": 4, "setdenomin": 4, "identifi": [4, 5, 7], "your": [4, 5, 7, 11, 12, 14], "thing": [4, 5, 7, 13], "consid": [4, 5, 13], "name": [4, 5, 7, 9, 12, 14], "without": [4, 7, 9, 13], "ha": [4, 5, 7, 10, 13], "paramet": [4, 5, 7], "top": 4, "bottom": 4, "num": 4, "den": 4, "There": [4, 5, 7, 13], "import": [4, 5, 12, 13, 14], "self": [4, 5], "prefix": 4, "work": [4, 6, 7, 11, 13], "dereferenc": 4, "current": [4, 7], "special": [4, 5], "typic": [4, 5, 7, 9, 13], "differenti": 4, "between": [4, 5, 7, 11], "local": 4, "now": [4, 5, 7], "major": 4, "differ": [4, 5, 7, 8, 11, 13], "addit": [4, 7, 8, 11], "effect": 4, "redefin": 4, "standard": [4, 5, 13], "behav": [4, 7], "__add__": 4, "__lt__": 4, "chang": [4, 7, 11, 13], "behavior": [4, 13], "respect": 4, "littl": [4, 5, 7], "point": [4, 5, 6, 7, 8], "terminologi": [4, 7], "def": [4, 5], "outsid": 4, "insid": [4, 5, 7, 8], "those": [4, 11, 13], "background": [4, 5], "might": [4, 7, 13], "otherfrac": 4, "newnum": 4, "newden": 4, "gcd": 4, "mai": [4, 5, 7, 11, 13], "its": [4, 7, 8, 9], "result": [4, 7], "necessari": [4, 7], "ambigu": 4, "about": [4, 5, 7, 9, 11, 13], "equival": [4, 5, 7, 13], "place": [4, 13], "opposit": 4, "procedur": 4, "ensur": [4, 8], "approach": 4, "comput": [4, 5, 11, 13], "greatest": 4, "divisor": 4, "line": [4, 5, 7], "6": [4, 7], "match": [4, 7], "specifi": 4, "8": [4, 7, 8], "specif": [4, 7], "project": [4, 11, 13], "said": [4, 7], "isinst": 4, "runtim": 4, "recal": [4, 8], "int": [4, 7, 8], "indic": [4, 5, 7], "inde": [4, 5], "tofract": 4, "fulfil": 4, "u": [4, 5, 6, 7], "pass": [4, 5, 7], "legal": [4, 5], "idea": 4, "rais": 4, "known": [4, 7], "includ": [4, 5, 7, 13], "enough": [4, 7], "which": [4, 5, 7, 13], "receiv": 4, "construct": [4, 6, 7, 9], "task": 4, "eleg": 4, "util": [4, 7], "ahead": 4, "decis": 4, "run": [4, 5, 6, 7], "what": [4, 5, 6, 7, 9, 11, 13], "happen": [4, 7], "ran": 4, "abov": [4, 7], "probabl": [4, 5, 7], "output": [4, 5, 14], "satisfi": 4, "chanc": [4, 5], "6ff3c5b5": 4, "yet": 4, "friendli": [4, 9], "string": [4, 5, 8, 12, 13, 14], "represent": 4, "whenev": [4, 7], "println": [4, 5, 7, 8], "control": [4, 8], "__str__": 4, "tostr": 4, "everi": [4, 5], "clone": 4, "getclass": 4, "hashcod": 4, "notifi": 4, "notifyal": 4, "wait": 4, "interest": [4, 13], "most": [4, 6, 7, 13], "mani": [4, 5, 7, 11, 13], "programm": [4, 7, 8, 9, 11], "live": 4, "happi": [4, 5], "product": 4, "know": [4, 5, 7, 9, 11, 13], "howev": [4, 5, 7, 13], "nicer": 4, "simpl": [4, 5, 6, 7, 12, 14], "below": [4, 7], "exactli": [4, 7, 9], "occupi": 4, "exact": [4, 7], "memori": [4, 7, 13], "rememb": [4, 5, 13], "directli": [4, 5, 7, 9], "object1": 4, "object2": 4, "NOT": 4, "boolean": [4, 7, 12, 14], "num1": 4, "num2": 4, "One": [4, 5, 7], "notion": 4, "less": 4, "greater": 4, "ll": [4, 7], "shortli": [4, 5], "doubl": [4, 7], "modif": [4, 11], "plug": [4, 12, 14], "hierarchi": [4, 9], "sibl": 4, "parent": [4, 7, 9], "number": [4, 5, 7], "sever": [4, 5, 7, 13], "children": 4, "placehold": 4, "trace": 4, "back": [4, 5, 7], "strong": 4, "natur": 4, "child": 4, "keyword": [4, 12, 14], "tell": [4, 5, 7], "alwai": [4, 7, 10, 13], "go": [4, 5, 7, 13], "longvalu": 4, "intvalu": 4, "floatvalu": 4, "doublevalu": 4, "isn": 4, "t": [4, 5, 7, 8, 9], "convers": 4, "divis": 4, "float": [4, 7], "long": [4, 7], "By": 4, "user": [4, 6, 7, 9], "accept": [4, 5], "subclass": 4, "relationship": 4, "kind": [4, 5, 7, 12, 13, 14], "sure": [4, 7], "suppos": [4, 7], "give": [4, 7, 8, 13], "still": [4, 7, 11], "turn": [4, 5], "attent": 4, "collect": [4, 6, 7, 13], "__cmp__": 4, "But": [4, 13], "thought": 4, "superclass": 4, "actual": [4, 7], "although": [4, 13], "possibl": [4, 7, 13], "layer": 4, "complic": [4, 5, 13], "dramat": 4, "gpa": 4, "person": 4, "answer": [4, 7], "mechan": [4, 7], "combin": [4, 7], "contract": 4, "roll": 4, "sai": [4, 5, 7], "claim": 4, "sound": 4, "bit": [4, 5, 7, 8], "never": 4, "compareto": 4, "excerpt": 4, "offici": 4, "o": 4, "order": [4, 5, 7, 11], "neg": 4, "zero": 4, "posit": [4, 7], "implementor": 4, "sgn": 4, "impli": 4, "throw": 4, "except": [4, 7, 8], "iff": 4, "modifi": [4, 11], "keep": [4, 5, 7], "track": 4, "had": [4, 7, 11], "global": 4, "counter": [4, 7], "ugli": [4, 7], "solut": 4, "right": [4, 5], "discuss": [4, 7], "main": [4, 5, 6, 7], "calcul": 4, "gdc": 4, "furthermor": 4, "purpos": [4, 7, 11], "m": 4, "n": 4, "while": [4, 7, 8, 9], "oldm": 4, "oldn": 4, "featur": [4, 6, 13], "honor": 5, "tradit": 5, "scienc": [5, 11, 13], "hello": [5, 7, 8, 10], "world": [5, 7, 8], "logic": [5, 7], "reli": 5, "understand": [5, 7, 13], "syntax": [5, 7, 8, 13], "command": [5, 7], "few": 5, "lot": [5, 13], "stuff": 5, "edg": 5, "harder": [5, 7], "worri": 5, "skill": 5, "scientist": 5, "learn": [5, 11, 12, 14], "ignor": 5, "carefulli": 5, "soon": 5, "element": [5, 7], "fade": 5, "becom": [5, 7], "help": [5, 11], "convent": [5, 12, 14], "question": [5, 7], "interpret": [5, 7], "were": [5, 7], "quit": [5, 7], "step": [5, 8], "process": [5, 7], "save": 5, "javac": [5, 7], "l": [5, 8], "rw": 5, "r": 5, "bmiller": [5, 11], "391": 5, "jul": 5, "17": 5, "47": 5, "117": 5, "46": 5, "byte": 5, "binari": [5, 7], "won": 5, "examin": [5, 11], "editor": 5, "hopefulli": 5, "didn": 5, "mistak": [5, 7, 12, 14], "did": 5, "consult": 5, "hint": [5, 7], "wonder": [5, 7], "good": [5, 9, 11, 13], "extra": 5, "benefit": [5, 7], "earli": 5, "detect": 5, "faster": 5, "virtual": 5, "machin": 5, "jvm": 5, "nativ": [5, 13], "translat": 5, "typo": 5, "ever": [5, 7], "illustr": [5, 7], "static": [5, 7, 12, 14], "arg": 5, "appli": 5, "On": [5, 7], "As": [5, 7, 13], "resid": 5, "unlik": [5, 7], "where": [5, 7, 8, 9, 13], "bunch": 5, "pair": [5, 7], "my": [5, 11], "done": [5, 7, 13], "enforc": 5, "signific": 5, "identif": 5, "fact": [5, 7, 8, 11], "treat": 5, "dig": 5, "deep": 5, "deepli": 5, "reveal": 5, "better": [5, 13], "understood": 5, "through": [5, 7], "patient": 5, "word": [5, 7], "anyon": 5, "level": [5, 7], "secur": 5, "protect": [5, 13], "object": [5, 7, 12, 13, 14], "parameter1": 5, "modul": [5, 7, 14], "don": [5, 7, 9], "math": [5, 7, 10], "contain": [5, 7, 9, 12, 14], "sin": 5, "co": 5, "etc": [5, 13], "90": 5, "60": 5, "roughli": 5, "analog": [5, 8], "proper": 5, "letter": [5, 10], "_": 5, "arrai": [5, 8, 12, 14], "moment": 5, "being": [5, 7, 13], "somewher": 5, "flag": [5, 7], "That": [5, 7], "materi": 5, "digest": 5, "press": 5, "familiar": [5, 6, 7], "dot": 5, "notat": [5, 7], "within": 5, "stream": [5, 7], "newlin": 5, "charact": [5, 7, 8], "anywher": 5, "signifi": 5, "spread": 5, "across": 5, "reach": 5, "encount": 5, "semicolon": [5, 12, 14], "whitespac": [5, 7], "meaning": 5, "contrast": 5, "encourag": [5, 9, 11], "last": [5, 7, 8], "close": [5, 7, 9], "outer": 5, "inner": 5, "staticmethod": 5, "decor": 5, "impact": [5, 13], "session": 5, "assum": [6, 7], "journei": 6, "loop": [6, 7, 12, 13, 14], "read": [6, 7, 9], "input": [6, 14], "condit": [6, 7, 8, 12, 13, 14], "basic": [6, 7], "behind": [6, 7], "move": 6, "uniqu": [6, 13], "interfac": [6, 9, 12, 14], "graphic": 6, "progress": 6, "continu": [6, 7], "updat": 6, "post": 6, "primit": [7, 8], "non": 7, "fast": 7, "difficult": [7, 13], "eventu": 7, "objectifi": 7, "char": [7, 8], "older": 7, "respons": 7, "forth": 7, "box": 7, "revers": 7, "unbox": 7, "5": [7, 8], "smart": 7, "autobox": 7, "fahrenheit": 7, "temperatur": 7, "celsiu": 7, "enter": 7, "prompt": 7, "javascript": 7, "pop": 7, "artifact": 7, "digit": 7, "textbook": 7, "concept": 7, "subject": 7, "exist": 7, "full": [7, 12, 14], "directori": 7, "ship": 7, "classpath": 7, "environ": 7, "jar": 7, "xxx": 7, "scene": 7, "hierarch": 7, "packag": 7, "talk": 7, "later": [7, 13], "loader": 7, "load": 7, "shorten": 7, "experi": 7, "yourself": [7, 11], "remov": 7, "rest": 7, "dynam": [7, 13], "figur": 7, "associ": 7, "determin": 7, "made": 7, "7": 7, "fahr": 7, "cel": 7, "xyz": 7, "forgot": 7, "instead": 7, "tempconv": 7, "13": [7, 8], "32": 7, "side": 7, "sign": 7, "usual": 7, "initi": 7, "over": [7, 8, 13], "network": 7, "rel": 7, "ask": 7, "why": [7, 12, 14], "alon": 7, "depth": 7, "adapt": 7, "low": 7, "easier": [7, 8, 13], "11": 7, "implic": 7, "strongli": 7, "nextdoubl": 7, "guarante": 7, "statment": 7, "wrong": 7, "tabl": 7, "show": 7, "commonli": 7, "chapter": 7, "descript": 7, "hasnext": 7, "present": 7, "hasnextint": 7, "hasnextfloat": 7, "hasnextdoubl": 7, "nextint": [7, 10], "nextfloat": 7, "immut": 7, "manipul": 7, "obviou": 7, "index": [7, 14], "slice": 7, "pull": 7, "substr": 7, "overload": [7, 13, 14], "map": 7, "counterpart": 7, "shown": 7, "str": 7, "charat": 7, "3rd": 7, "4": [7, 13], "2nd": 7, "4th": 7, "len": 7, "length": 7, "indexof": 7, "occurr": 7, "split": 7, "concat": 7, "concaten": 7, "strip": 7, "trim": 7, "produc": 7, "histogram": 7, "frequenc": 7, "review": 7, "open": 7, "third": [7, 13], "increment": 7, "iter": [7, 12, 14], "total": 7, "store": 7, "repeatedli": 7, "until": 7, "form": 7, "rang": [7, 8], "member": [7, 12, 14], "further": 7, "suggest": 7, "idx": 7, "twist": 7, "anyth": 7, "leav": 7, "off": 7, "warn": 7, "resort": 7, "cast": 7, "20": 7, "mainli": 7, "forc": [7, 13], "reckon": 7, "attempt": [7, 11], "catch": 7, "riski": 7, "gracefulli": 7, "recov": 7, "e": [7, 13], "thrown": 7, "16": 7, "ioexcept": 7, "multipl": 7, "lazi": 7, "old": 7, "terribl": 7, "inadvert": 7, "intend": 7, "bug": 7, "22": 7, "size": 7, "strictli": 7, "speak": 7, "grow": 7, "shrink": 7, "23": 7, "25": 7, "serv": [7, 8], "hold": 7, "strang": 7, "claus": [7, 8], "shorthand": 7, "decrement": 7, "rewrit": 7, "101": 7, "100": [7, 8], "zip": 7, "separ": 7, "27": 7, "30": 7, "ident": 7, "bodi": 7, "29": 7, "squar": 7, "bracket": 7, "retriev": 7, "sequenc": [7, 8], "33": 7, "bound": 7, "outset": 7, "internet": 7, "short": [7, 11], "Then": 7, "kei": 7, "implement": [7, 9, 11, 12, 14], "treemap": 7, "hashmap": 7, "guess": 7, "balanc": 7, "tree": 7, "hash": 7, "stai": 7, "improv": 7, "punctuat": 7, "easiest": 8, "conjunct": 8, "wide": 8, "varieti": 8, "option": 8, "stop": 8, "explicit": 8, "backward": 8, "tupl": 8, "variat": 8, "fib": 8, "stretch": 8, "imagin": 8, "area": 8, "tochararrai": 8, "seldom": 8, "least": 8, "prefer": 8, "situat": 8, "avoid": 8, "prior": 8, "librari": [9, 13], "resourc": [9, 11], "javadoc": 9, "javadoconlin": 9, "websit": 9, "nice": [9, 13], "searchabl": 9, "search": [9, 14], "classnam": 9, "javaapi": 9, "browsabl": 9, "decend": 9, "summari": 9, "handi": 10, "upper": 10, "lower": 10, "camelcas": 10, "repres": [10, 13], "multiword": 10, "maxint": 10, "welcom": 11, "ebook": 11, "ongo": 11, "who": 11, "audienc": 11, "build": 11, "philosophi": 11, "along": 11, "strength": [11, 13], "weak": 11, "replac": 11, "volum": 11, "fit": 11, "creativ": 11, "licens": 11, "appreci": 11, "love": 11, "brad": 11, "miller": 11, "edu": 11, "januari": 11, "attribut": 11, "unit": 11, "state": 11, "http": 11, "creativecommon": 11, "org": 11, "prefac": [12, 14], "introduct": [12, 14], "dictionari": [12, 14], "elif": [12, 14], "indefinit": [12, 14], "inherit": [12, 14], "fraction": [12, 14], "Not": [12, 14], "colophon": [12, 14], "shameless": [12, 14], "exercis": [12, 14], "spars": 13, "underli": 13, "consist": 13, "fairli": 13, "formal": 13, "These": 13, "speed": 13, "perform": 13, "maintain": 13, "turtl": 13, "invok": 13, "upfront": 13, "whole": 13, "script": 13, "categori": 13, "rubi": 13, "perl": 13, "industri": 13, "peopl": 13, "care": 13, "rust": 13, "ada": 13, "field": 13, "advanc": 13, "And": 13, "larger": 13, "sophist": 13, "extern": 13, "depend": 13, "000": 13, "edit": 13, "scratch": 13, "surfac": 13, "devot": 13, "cover": 13, "incorpor": 13, "garbag": 13, "degre": 13, "manual": 13, "manag": 13, "challeng": 13, "certainli": 13, "worth": 13, "ve": 13, "footnot": 13, "slower": 13, "achiev": 13, "cython": 13, "high": 13, "g": 13, "numpi": 13, "scikit": 13, "criteria": 13, "content": 14, "signatur": 14, "abstract": 14}, "objects": {}, "objtypes": {}, "objnames": {}, "titleterms": {"exercis": 0, "colophon": 1, "shameless": 1, "plug": 1, "common": 2, "mistak": 2, "forget": 2, "declar": [2, 7], "your": 2, "variabl": [2, 4, 7], "Not": 2, "import": [2, 7], "class": [2, 4], "us": 2, "new": 2, "keyword": 2, "creat": 2, "an": 2, "object": [2, 4], "semicolon": 2, "kind": 2, "contain": 2, "condit": 3, "simpl": 3, "els": 3, "elif": 3, "switch": 3, "boolean": 3, "oper": 3, "defin": 4, "java": [4, 5, 7, 9, 12, 13, 14], "write": 4, "constructor": 4, "method": 4, "signatur": 4, "overload": 4, "inherit": 4, "The": 4, "abstract": 4, "interfac": 4, "static": 4, "member": 4, "full": 4, "implement": 4, "fraction": 4, "let": 5, "look": 5, "program": [5, 13], "introduct": 6, "data": 7, "type": 7, "numer": 7, "input": 7, "output": 7, "scanner": 7, "string": 7, "list": 7, "arrai": 7, "dictionari": 7, "loop": 8, "iter": 8, "definit": 8, "indefinit": 8, "document": 9, "name": 10, "convent": 10, "prefac": 11, "python": [12, 14], "programm": [12, 14], "why": 13, "learn": 13, "anoth": 13, "languag": 13, "c": 13, "welcom": 14, "indic": 14, "tabl": 14}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 57}, "alltitles": {"Exercises": [[0, "exercises"]], "Colophon": [[1, "colophon"]], "Shameless Plug": [[1, "shameless-plug"]], "Common Mistakes": [[2, "common-mistakes"]], "Forgetting to declare your variables": [[2, "forgetting-to-declare-your-variables"]], "Not importing a class": [[2, "not-importing-a-class"]], "Forgetting to use the new keyword to create an object": [[2, "forgetting-to-use-the-new-keyword-to-create-an-object"]], "Forgetting a Semicolon": [[2, "forgetting-a-semicolon"]], "Forgetting to declare the kind of object in a container": [[2, "forgetting-to-declare-the-kind-of-object-in-a-container"]], "Conditionals": [[3, "conditionals"]], "Simple if": [[3, "simple-if"]], "if else": [[3, "if-else"]], "elif": [[3, "elif"]], "switch": [[3, "switch"]], "Boolean Operators": [[3, "boolean-operators"]], "Defining Classes in Java": [[4, "defining-classes-in-java"]], "Writing a constructor": [[4, "writing-a-constructor"]], "Methods": [[4, "methods"]], "Method Signatures and Overloading": [[4, "method-signatures-and-overloading"]], "Inheritance": [[4, "inheritance"]], "The Object Class": [[4, "the-object-class"]], "Abstract Classes and Methods": [[4, "abstract-classes-and-methods"]], "Interfaces": [[4, "interfaces"]], "Static member variables": [[4, "static-member-variables"]], "Static Methods": [[4, "static-methods"]], "Full Implementation of the Fraction Class": [[4, "full-implementation-of-the-fraction-class"]], "Lets look at a Java Program": [[5, "lets-look-at-a-java-program"]], "Introduction": [[6, "introduction"]], "Java Data Types": [[7, "java-data-types"]], "Numeric": [[7, "numeric"]], "Import": [[7, "import"]], "Declaring Variables": [[7, "declaring-variables"]], "Input / Output / Scanner": [[7, "input-output-scanner"]], "String": [[7, "string"]], "List": [[7, "list"]], "Arrays": [[7, "arrays"]], "Dictionary": [[7, "dictionary"]], "Loops and Iteration": [[8, "loops-and-iteration"]], "Definite Loop": [[8, "definite-loop"]], "Indefinite Loops": [[8, "indefinite-loops"]], "Java Documentation": [[9, "java-documentation"]], "Naming Conventions": [[10, "naming-conventions"]], "Preface": [[11, "preface"]], "Java for Python Programmers": [[12, "java-for-python-programmers"], [12, null]], "Why Learn another programming Language?": [[13, "why-learn-another-programming-language"]], "Why Learn Java? Why not C or C++?": [[13, "why-learn-java-why-not-c-or-c"]], "Welcome to Java for Python Programmers": [[14, "welcome-to-java-for-python-programmers"]], "Indices and tables": [[14, "indices-and-tables"]]}, "indexentries": {}})