My Account Log in

4 options

Java programming for beginners : learn the fundamentals of programming with Java / Mark Lassoff.

EBSCOhost Academic eBook Collection (North America) Available online

View online

EBSCOhost Ebook Public Library Collection - North America Available online

View online

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Lassoff, Mark, author.
Language:
English
Subjects (All):
Java (Computer program language).
Physical Description:
1 online resource (1 volume) : illustrations
Edition:
1st edition
Other Title:
Learn the fundamentals of programming with Java
Place of Publication:
Packt Publishing 2017
System Details:
text file
Biography/History:
Lassoff SkillSprints Inc. , Mark: SkillSprints Inc. , founded by the visionary Mark Lassoff, specializes in teaching digitally accessible technical skills to people just getting started in their technical careers, including web development, digital design, and other career paths enabled by technology. SkillSprints has bridged the gap between entertainment and education, creating a unique, immersive learning experience that resonates with students. Their instructors are more than just tech-savvy professionals; they are educators first and foremost, handpicked for their unique ability to translate complex technological concepts into digestible, engaging lessons. SkillSprints continues to evolve, constantly innovating to stay at the forefront of the online learning landscape.
Summary:
Java Programming for Beginners is an introduction to Java programming, taking you through the Java syntax and the fundamentals of object-oriented programming. About This Book Learn the basics of Java programming in a step-by-step manner Simple, yet thorough steps that beginners can follow Teaches you transferable skills, such as flow control and object-oriented programming Who This Book Is For This book is for anyone wanting to start learning the Java language, whether you’re a student, casual learner, or existing programmer looking to add a new language to your skillset. No previous experience of Java or programming in general is required. What You Will Learn Learn the core Java language for both Java 8 and Java 9 Set up your Java programming environment in the most efficient way Get to know the basic syntax of Java Understand object-oriented programming and the benefits that it can bring Familiarize yourself with the workings of some of Java’s core classes Design and develop a basic GUI Use industry-standard XML for passing data between applications In Detail Java is an object-oriented programming language, and is one of the most widely accepted languages because of its design and programming features, particularly in its promise that you can write a program once and run it anywhere. Java Programming for Beginners is an excellent introduction to the world of Java programming, taking you through the basics of Java syntax and the complexities of object-oriented programming. You'll gain a full understanding of Java SE programming and will be able to write Java programs with graphical user interfaces that run on PC, Mac, or Linux machines. This book is full of informative and entertaining content, challenging exercises, and dozens of code examples you can run and learn from. By reading this book, you’ll move from understanding the data types in Java, through loops and conditionals, and on to functions, classes, and file handling. The book finishes with a look at GUI development and training on how to work with XML. The book takes an efficient route through the Java landscape, covering all of the core topics that a Java developer needs. Whether you’re an absolute beginner to programming, or a seasoned programmer approaching an object-oriented language for the first time, Java Programming for Beginners delivers the focused training you need to become a Java developer. Style and approach This book takes a very hands-on approach, carefully building ...
Contents:
Cover
Title Page
Copyright
Credits
About the Author
www.PacktPub.com
Customer Feedback
Table of Contents
Preface
Chapter 1: 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
Chapter 2: 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
Chapter 3: 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
Chapter 4: 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
Chapter 5: 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
Chapter 6: Modeling with Object-Oriented Java
Creating classes and objects
Creating custom classes
Creating member variables
Creating member functions
Creating constructors
Types of constructors
Chapter 7: More Object-Oriented Java
Inheritance
Creating a superclass
The is-a relationship
Overriding
Data structure
The abstract method
The protected method
Abstract
Chapter 8: 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 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
Chapter 9: 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
Chapter 10: 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
Chapter 11: 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
Index.
Notes:
Includes index.
Description based on online resource; title from PDF title page (EBC, viewed December 7, 2017).
ISBN:
9781788299046
1788299043
OCLC:
1014021680

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account