Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 21 pages
Summary

Summary Java Basic Coding Grade 10

Document preview thumbnail
Preview 4 out of 21 pages

Detailed examples, explanations, and tips. Includes input and output, variable conversions, for loops, generating random numbers, if statements, switch-case, pseudocode, trace tables, Math class, etc.

Content preview

IT
NOTES
CREDS: CAILIN SMITH 2021

, TABLE OF CONTENTS


-
01 -
03
Variables Compare Strings
- Asking for Input - Generate a random number
- Conversions - For loops
- Showing Output



02 04
- Calculations - If/else statements
- Math Class - Switch case statements
- Rounding off to a - Pseudocode
specifi c decimal place - Trace Tables

,01
- Variables
- Asking for Input
- Conversions
- Showing Output

, - .length() tells you how long the String is
Variables Eg. name.length()

- .charAt(0) gives us the first letter.
Eg. if the name = “Bob” (String)
name.charAt(0) would give u ‘B’
Object data types have certain
name.charAt(1) would give you ‘o’
methods that we can use eg. .length()
- these are char variables now so its ‘ ‘
and .charAt(0)

Primitive data types can’t use these
methods, but we can use Math. Primitive Data Types: Object Data Types:
- They are more limited int String

Note: String starts with a capital double
letter.
char

Document information

Schooljaar
200
Uploaded on
November 26, 2022
Number of pages
21
Written in
2021/2022
Type
Summary
$6.29

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
5
Followers
2
Items
12
Last sold
9 months ago


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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions