目錄(189章)
倒序
- coverpage
- Title Page
- Copyright
- Java Programming for Beginners
- Credits
- About the Author
- www.PacktPub.com
- Why subscribe?
- Customer Feedback
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Downloading the color images of this book
- Errata
- Piracy
- Questions
- Getting Started with Java
- What is Java?
- Features of Java
- Java applications
- Setting up your development environment
- Installing JDK
- Installing the NetBeans IDE
- Writing our first Java program
- Creating a new project
- Creating a Java class
- Writing the code
- Java comments
- The main() function
- Printing a string
- Java syntax
- Executing our program
- How to interpret errors detected by NetBeans?
- The code completion feature
- Summary
- Understanding Typed Variables
- Integer variables
- The solution of variables
- Memory allocation for integer variables
- Floating point variables
- Behavior difference between integer and float data types
- Type casting
- The double data type
- The Math class library
- Using the pow() function
- Importing class libraries
- Char variables
- Strings
- The concatenation operator
- The toUpperCase() function
- The replace() function
- Escape sequences
- Summary
- Branching
- Understanding if statements
- Conditional statements
- Using if statements
- Using else statements
- Complex conditionals
- The contains function
- Complex conditional statements
- The boolean variable
- Switch case and break
- Program using switch case and break
- While and do...while loops
- While loops
- The do...while loops
- For loops
- Summary
- Data Structures
- Working with arrays
- Declaring and initializing an array
- Assigning values to an array
- Array example in NetBeans
- Creating an array
- Creating a for loop
- Printing the alphabet
- Default initialization of arrays in Java
- Multidimensional arrays
- A multidimensional array example in NetBeans
- Creating a multidimensional array
- Using nested loops for multidimensional arrays
- Assigning different colors to our chessboard
- Printing the chessboard
- ArrayLists
- An ArrayList example in NetBeans
- Creating an ArrayList
- Getting user input
- Printing the ArrayList of user input
- Giving control to the user
- Analyzing ArrayIndexOutOfBoundsException
- Maps
- Creating a Map
- Assigning values to our Map
- Fetching information from our Map
- Summary
- Functions
- The basics of Java functions
- Methods
- Temperature conversion program
- Setting up the control flow
- Exploring separate cases - C K and F
- Celsius type
- Kelvin type
- Fahrenheit type
- Executing the first part of the program
- Executing the second part of the program
- Final touch to the program
- Advanced Java functions
- Operating java variables
- Using variables in the program
- Understanding passing parameters
- Summary
- Modeling with Object-Oriented Java
- Creating classes and objects
- Creating custom classes
- Creating member variables
- Creating member functions
- Creating constructors
- Types of constructors
- Summary
- More Object-Oriented Java
- Inheritance
- Creating a superclass
- The is-a relationship
- Overriding
- Data structure
- The abstract method
- The protected method
- Abstract
- Summary
- Useful Java Classes
- The Calendar class
- Subclasses of Calendar
- Fetching the current day month and year
- How Calendar works
- String functionality
- String literals versus String objects
- String functions
- The replace() function
- The format() function
- Exceptions
- Analyzing the console exception messages
- Handling exceptions
- The try and catch blocks
- The finally block
- The Object class
- Overriding the equals() method
- Other Object methods
- Primitive classes
- Summary
- File Input and Output
- Writing data to files
- The FileWriter class
- Relieving resources using the close() method
- The BufferedWriter class
- Reading data from files
- The FileReader and BufferedReader class
- The Serializable class
- Serializing an object
- Deserializing an object
- Summary
- Basic GUI Development
- Swing GUIs
- The JFrame class
- Setting the size of our window
- Adding a label
- Closing our application
- The SwingUtilities class
- A visual GUI editor tool – palette
- How palette works
- Event handling
- Adding a button
- Adding functionality to our button
- Summary
- XML
- Reading XML data
- Parsing XML data
- Accessing Jane's XML element
- Printing Jane's car details
- Writing XML data
- Java code to write XML data
- Modifying XML data
- Summary 更新時間:2021-07-02 15:23:14
推薦閱讀
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- Functional Python Programming
- Visual C++程序設計學習筆記
- 國際大學生程序設計競賽中山大學內部選拔真題解(二)
- Redis Applied Design Patterns
- 機器學習系統:設計和實現
- Responsive Web Design with HTML5 and CSS3
- Python 3破冰人工智能:從入門到實戰
- Big Data Analytics
- OpenCV 4計算機視覺項目實戰(原書第2版)
- Oracle Data Guard 11gR2 Administration Beginner's Guide
- Python機器學習開發實戰
- Google Adsense優化實戰
- Android 5從入門到精通
- Mastering Magento Theme Design
- Node.js進階之路
- ServiceDesk Plus 8.x Essentials
- Django 3 Web應用開發從零開始學(視頻教學版)
- Node.js Web Development
- TypeScript實戰
- Helm學習指南:Kubernetes上的應用程序管理
- 視界·無界2.0:寫給UI設計師的設計書(全彩)
- 代碼精進之路:從碼農到工匠
- C#代碼整潔之道:代碼重構與性能提升
- Spring Cloud Alibaba 微服務原理與實戰
- 超級軟件:下一代互聯網云平臺
- Learning Tableau 10(Second Edition)
- HBase入門與實踐(第2版)
- 從零開始:PHP網頁開發基礎
- C++程序設計:思想與方法 慕課版(第3版)