100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

Learning Computer Programming using JAVA with 101 Examples

Rating
-
Sold
-
Pages
381
Uploaded on
10-07-2023
Written in
2022/2023

Learning Computer Programming using JAVA with 101 Examples, Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible.

Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
July 10, 2023
Number of pages
381
Written in
2022/2023
Type
Other
Person
Unknown

Subjects

Content preview

, Learning Computer
Programming using


JAVA with

101
Examples




Mr Oddo

Atiwong Suchato

, Table of Contents
Chapter 1: Introduction to Computer Systems .............................. 1
Hello Computer, my dear friend!................................................................1
Computers in Our Lives ...............................................................................2
What Computers do ......................................................................................4
Hardware........................................................................................................6
Central Processing Unit................................................................................6
Memory ........................................................................................................7
I/O Devices...................................................................................................8
Software ..........................................................................................................9
Application Software Vs. System Software ...............................................10
Operating System (OS)...............................................................................11
Binary Representation of Data...................................................................11
The Power of Two .......................................................................................12
Units of Measure..........................................................................................13
Problem Solving Using Computer Program............................................14
Exercise ......................................................................................................18
Chapter 2: Programming Concepts .............................................21
Programming Languages ...........................................................................21
Running a Java Program.............................................................................22
Typical Programming Cycle ......................................................................23
Preparing Java Computing Environment ................................................24
Getting the required software .....................................................................24
Letting Your OS Know Where to Find Java...............................................25
Compiling and Running Java Programs ..................................................27
Integrated Development Environment (IDE) ..........................................28
Basic Program Structure in Java ................................................................29
Syntax, Keywords, and Identifiers ............................................................31
Comments.....................................................................................................32
Be Neat and Organized...............................................................................33
A First Look at Methods .............................................................................33
Escape Sequences.........................................................................................36
Variable at a Glance.....................................................................................37
Naming Rules and Styles............................................................................38
Statements and Expressions.......................................................................40


III

, Simple Calculation.......................................................................................41
Representing Algorithms Using Flowcharts............................................42
Manual Input................................................................................................44
Decisions and Iterations..............................................................................45
Subroutines...................................................................................................49
More Shapes .................................................................................................51
Exercise ......................................................................................................52
Chapter 3: Working with Data ..................................................... 55
Strong Data Typing .....................................................................................55
Data Types in Java .......................................................................................56
Primitive Data Type for Integers ...............................................................56
Primitive Types for Floating-Point Values...............................................57
Primitive Type for Characters....................................................................58
Primitive Type for Logical Values.............................................................59
String .............................................................................................................59
Pointers..........................................................................................................59
Assigning Data to Variables .......................................................................60
Final Variables..............................................................................................63
Un-initialized Variables ..............................................................................64
Operators ......................................................................................................65
String and the addition operator (+) .........................................................67
Math methods ..............................................................................................68
Precedence and Associativity.....................................................................70
Exercise ......................................................................................................76
Chapter 4: More Issues on Data Manipulation ............................. 79
Numeric Data Type Specification..............................................................79
Data Type Conversion ................................................................................80
Automatic Type Conversion and Explicit Type Casting........................82
Expressions with Multiple Data Types.....................................................83
Limitation on Floating Point Computation..............................................85
An Issue on Floating Point Value Comparison .......................................87
Overflow and Underflow ...........................................................................87
Numbers Divided by Zero .........................................................................90
Compound Assignment..............................................................................94
Increment and Decrement ..........................................................................94
Exercise ......................................................................................................96


IV
$9.78
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
mroddomax

Get to know the seller

Seller avatar
mroddomax Computer science academy
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
20
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions