0% found this document useful (0 votes)
35 views6 pages

Intermediate Programming Coding and Debugging As of 01.19.2022 (Teneros, Leigh Jandell S)

The document provides instructions for an intermediate Java programming class, listing the student's name and details and linking to a tutorial website that outlines Java topics like variables, data types, operators, input/output, and flow control structures covered in the class. The linked tutorials cover Java fundamentals like hello world, JVM/JRE/JDK, arithmetic operators, and control structures like if/else statements and loops.

Uploaded by

Leigh Teneros
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views6 pages

Intermediate Programming Coding and Debugging As of 01.19.2022 (Teneros, Leigh Jandell S)

The document provides instructions for an intermediate Java programming class, listing the student's name and details and linking to a tutorial website that outlines Java topics like variables, data types, operators, input/output, and flow control structures covered in the class. The linked tutorials cover Java fundamentals like hello world, JVM/JRE/JDK, arithmetic operators, and control structures like if/else statements and loops.

Uploaded by

Leigh Teneros
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

March 2, 2022

INTERMEDIATE PROGRAMMING
MW 2:30 - 4:00 pm

Name: Teneros, Leigh Jandell S. Program: BSCS


Student Number: 2021-0009 Year level: 1st

Step 1. Click the link below.


https://www.programiz.com/java-programming/examples

Step 2. Click the Tab Tutorials. Select View All Tutorials.

1. Java Introduction

o 1.1 Java Hello World


o 1.2 Java JVM, JRE and JDK
o 1.3 Java Variables and Literals
o 1.4 Java Data Types
o 1.5 Java Operators

1.5.1. Java Arithmetic Operators


1.5.2. Java Assignment Operators

1. invalid method declaration; return type required


(Source line 3)

2.Variable a is never read


(Source line 6)

3. Variable var is neither read or written to


(Source line 7)

4. cannot infer type for local variable a (cannot use ‘var’ variable without
initializer)
-----
Variable a is neither read or written to
(Source line 10,14,18)

5. illegal start of expression


(Source line 11,15,19)
1.5.3. Increment and Decrement Operators

1. Variable result2 is never written to


-------
Variable result1 is never written to
(Source line 6)

2. ‘;’ expected
(Source line 9,15)

3. not a statement
(Source line 12,18)

4. Variable result1 might not have been initialized


------
Variable result2 might not have been initialized
(Source line 13,19)

5. reached end of file while parsing


(Source line 20)
1.5.4. Java instanceof Operator

1. <identifier> expected
(Source line 2)

2. cannot find symbol


(Source line 5)

3. Variable declaration not allowed here


(Source line 7)

4. illegal start of type


(Source line 9)

5. unclosed string literal


(Source line 10)
1.5.5. Java Ternary Operator

1. incompatible types: boolean cannot be converted to String


(Source line 8)

2. package system does not exist


(Source line 9)

3. ‘;’ expected
(Source line 4)

4. Missing method body, or declare abstract


(Source line 2)

5. class, interface, enum, or record expected


(Source line 11)
o 1.6 Java Input and Output

1.6.1. Java Output


1.6.2. print() and println()
1.6.3. Printing Variables and Literals
1.6.4. Print Concatenated Strings
1.6.5. Get Integer Input From the User
1.6.6. Get float, double and String Input

o 1.7 Java Expressions & Blocks

1.7.1. Java Blocks


o 1.8 Java Comment

1.8.1. Single-line Comment


1.8.2. Multi-line Comment

2. Java Flow Control

o 2.1 Java if...else


o 2.2 Java switch Statement
o 2.3 Java for Loop
o 2.4 Java for-each Loop
o 2.5 Java while Loop
o 2.6 Java break Statement
o 2.7 Java continue Statement

Reference:
https://www.programiz.com/java-programming/examples

You might also like