[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-423012-105":59,"doc-detail-423012-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","think-java-how-to-think-like-a-computer-scientist-version-660","Think Java - How to Think Like a Computer Scientist - Version 6.6.0","","Think Java: How to Think Like a Computer Scientist (Version 6.6.0) presents core concepts for learning computer programming and Java. It begins with what computers and programming are, then covers variables, operators, memory diagrams, input/output, methods, testing, and conditional logic. The book continues through loops, strings, arrays, recursion, and immutable objects, with vocabulary sections and practice exercises throughout to reinforce understanding.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/think-java-how-to-think-like-a-computer-scientist-version-660/423012/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/think-java-how-to-think-like-a-computer-scientist-version-660/423012.png","ImageObject",300,407,{"name":92,"@type":93},"Well Done","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-22","2026-09-28",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What programming fundamentals does Think Java cover first?","Question",{"text":112,"@type":113},"It starts with what a computer is and what programming means, then introduces the hello world program, compiling Java programs, and basic source code formatting and debugging.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the book teach core Java programming concepts?",{"text":117,"@type":113},"It uses structured topics such as variables and operators, memory diagrams, input/output with classes like System and Scanner, and progressively builds to methods, parameters, and testing.",{"name":119,"@type":110,"acceptedAnswer":120},"What advanced topics are included after conditionals and loops?",{"text":121,"@type":113},"After covering conditionals and logic and then loops and strings, it moves on to arrays and references, recursive methods, and immutable objects such as strings.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},423012,1790828419,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145},5909892210082,"https://ap-avatar.wpscdn.com/avatar/56001069da27c9f41e8?x-image-process=image/resize,m_fixed,w_180,h_180&k=1789614185077863061","Think Java  \nHow to Think Like a Computer Scientist  \nVersion 6.6.0  \nThink Java  \nHow to Think Like a Computer Scientist  \nVersion 6.6.0  \nAllen B. Downey and Chris May􀀌eld  \nGreen Tea Press  \nNeedham, Massachusetts  \nCopyright ➞ 2017 Allen B. Downey and Chris May􀀌eld.  \nGreen Tea Press  \n9 Washburn Ave Needham, MA 02492  \nPermission is granted to copy, distribute, and/or modify this work under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, which is available at [https://creativecommons. org/](https://creativecommons. org/)[ ](https://creativecommons. org/)[licenses/by-nc-sa/4.0/](licenses/by-nc-sa/4.0/.)[.](licenses/by-nc-sa/4.0/.)  \nThe original form of this book is LATEX source code. Compiling this code has the e􀀋ect of generating a device-independent representation of the book, which can be converted to other formats and printed.  \nThe LATEX source for this book is available from [http://thinkjava. org/](http://thinkjava. org/ and)[ and](http://thinkjava. org/ and)  \n[https://github. com/ChrisMayfield/ThinkJava2](https://github. com/ChrisMayfield/ThinkJava2) .  \nContents  \nPreface xv  \n1 Computer programming 1  \n1.1 What is a computer? ...................... 1  \n1.2 What is programming? ..................... 2  \n1.3 The hello world program .................... 3  \n1.4 Compiling Java programs .................... 5  \n1.5 Displaying two messages .................... 6  \n1.6 Formatting source code ..................... 7  \n1.7 Escape sequences ........................ 9  \n1.8 What is computer science? ................... 10  \n1.9 Debugging programs ...................... 11  \n1.10 Vocabulary ............................ 12  \n1.11 Exercises ............................. 14  \n2 Variables and operators 17  \n2.1 Declaring variables ....................... 17  \n2.2 Assigning variables ....................... 18  \n2.3 Memory diagrams ........................ 19  \n2.4 Printing variables ........................ 20  \n2.5 Arithmetic operators ...................... 21  \n2.6 Floating-point numbers ..................... 23  \n2.7 Rounding errors ......................... 24  \n2.8 Operators for strings ...................... 25  \n2.9 Compiler error messages .................... 27  \n2.10 Other types of errors ...................... 28  \n2.11 Vocabulary ............................ 29  \n2.12 Exercises ............................. 31  \n3 Input and output 33  \n3.1 The System class ........................ 33  \n3.2 The Scanner class ........................ 34  \n3.3 Language elements ....................... 36  \n3.4 Literals and constants ...................... 37  \n3.5 Formatting output ....................... 39  \n3.6 Type cast operators ....................... 41  \n3.7 Remainder operator ....................... 42  \n3.8 Putting it all together ...................... 43  \n3.9 The Scanner bug ........................ 44  \n3.10 Vocabulary ............................ 46  \n3.11 Exercises ............................. 47  \n4 Methods and testing 49  \n4.1 Math methods .......................... 49  \n4.2 Composition ........................... 50  \n4.3 De􀀌ning new methods ..................... 51  \n4.4 Flow of execution ........................ 53  \n4.5 Parameters and arguments ................... 54  \n4.6 Stack diagrams ......................... 57  \n4.7 Return values .......................... 58  \n4.8 Incremental development .................... 60  \n4.9 Vocabulary ............................ 63  \n4.10 Exercises ............................. 64  \n5 Conditionals and logic 69  \n5.1 Relational operators ....................... 69  \n5.2 The if-else statement ...................... 70  \n5.3 Chaining and nesting ...................... 72  \n5.4 Logical operators ........................ 73  \n5.5 De Morgan's laws ........................ 75  \n5.6 Boolean variables ........................ 76  \n5.7 Boolean methods ........................ 76  \n5.8 Validating input ......................... 78  \n5.9 E","cbCainoR2MAfDJCG","https://ap.wps.com/l/cbCainoR2MAfDJCG","pdf",1850767,326,"English","# Preface\n# 1 Computer programming\n## What is a computer?\n## What is programming?\n## The hello world program\n## Compiling Java programs\n# 2 Variables and operators\n## Declaring variables\n## Assigning variables\n## Memory diagrams\n## Printing variables\n## Arithmetic operators\n# 3 Input and output\n## The System class\n## The Scanner class\n## Formatting output\n## Type cast operators\n# 4 Methods and testing\n## Math methods\n## Composition\n## De􀀌ning new methods\n## Flow of execution\n# 5 Conditionals and logic\n## Relational operators\n## The if-else statement\n## Chaining and nesting\n## Logical operators\n# 6 Loops and strings\n## The while statement\n## Increment and decrement\n## The for statement\n## String iteration\n# 7 Arrays and references\n## Creating arrays\n## Accessing elements\n## Copying arrays\n## Array traversal\n# 8 Recursive methods\n## Recursive void methods\n## Recursive stack diagrams\n## Value returning methods\n## The leap of faith\n# 9 Immutable objects\n## Primitives vs objects\n## Strings are immutabl","[{\"question\":\"What programming fundamentals does Think Java cover first?\",\"answer\":\"It starts with what a computer is and what programming means, then introduces the hello world program, compiling Java programs, and basic source code formatting and debugging.\"},{\"question\":\"How does the book teach core Java programming concepts?\",\"answer\":\"It uses structured topics such as variables and operators, memory diagrams, input/output with classes like System and Scanner, and progressively builds to methods, parameters, and testing.\"},{\"question\":\"What advanced topics are included after conditionals and loops?\",\"answer\":\"After covering conditionals and logic and then loops and strings, it moves on to arrays and references, recursive methods, and immutable objects such as strings.\"}]","Think Java - How to Think Like a Computer Scientist - Version 6.6.0 | PDF",1790629747,822]