0% found this document useful (0 votes)
37 views4 pages

Session Plan-1-1

This document contains the session plan for the Programming in Java for User Interfaces course. The first session will cover Java data types, data type conversion, Strings, StringBuilder, StringBuffer, and arrays. The second session will focus on arrays, conditional statements, and looping. The third session will discuss switch case statements, logical operators, and include a class test with one random question from each section.

Uploaded by

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

Session Plan-1-1

This document contains the session plan for the Programming in Java for User Interfaces course. The first session will cover Java data types, data type conversion, Strings, StringBuilder, StringBuffer, and arrays. The second session will focus on arrays, conditional statements, and looping. The third session will discuss switch case statements, logical operators, and include a class test with one random question from each section.

Uploaded by

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

Saveetha School of Engineering

Saveetha Institute of Medical and Technical Sciences, Chennai

Computer Science and Engineering Programme

Course Code/Name : CSA0929/Programming in Java for User Interfaces

Course Faculty Name:Dr.R.Jeena

Seesion Plan No.1

Date Session Topic Programs Timings


No
1. Write a program to
demonstrate primitive
datatypes in java. Below are
the datatypes Integer data
types: byte, short, int, and
long.Floating-point data
types: float and double.
Character data type: char.
Boolean data type: Boolean.
2. Example program
demonstrating data type
conversion in Java for
all primitive datatypes:
13-03- 1 Java datatypes a) Implicit conversion
8.00 AM to 9.00
2024 (widening) from AM
smaller data types
to larger ones.
b) Explicit conversion
(narrowing) from largerdata
types to smaller ones.
c) Overflow and underflow
scenarios wherethe value
exceeds the range of the
target data type.
3. Java program for String methods
and Stringconstructors

4. String builder and String buffer


programdifferences with example
Demonstrate simple examples of
StringBuilderand StringBuffer
appending strings.
Then compare the performance of
StringBuilder and StringBuffer by
appending a large number of strings in a
loop (iterations times) and measuringthe
time taken.

5. Java Array for printing first loop


from 1 to 9 and second loop from 9 to
1 and store them in matrix A and
matrix B

6. Java program to create confusion


matrix and calculate TP (True Positive),
TN (True Negative),FP (False Positive),
2 Arrays FN (False Negative), and F1-score: 9.00 AM to
10.00 AM

7. Write a program using Arrays class in


java forcreating 2D matrix

8. Java program to find if 2 arrays have


equal length, if not make it equal
according to the smallest array among the
both, use Arrays classand copyOf()
function.
9. Find greatest of 3 numbers in java, withoutusing
If statement
Hint: Ternary operators

10. Use nested if to find which if statementcontains


the greatest value

3 Conditional 10.00 AM
statements 11. If a person is age 28 when his younger brother to 11.00
is 24, what will be his age when the older brother AM
is 56. If age difference is more than 3 then find the
age of younger brother when older brother was 5.

12. Find a person's birth year based on their


eligibility to vote, given that the current year is
2073 and the eligibility age is 21 years, we first
need to calculate the birth year. If the birth year is
more than 2060, we then find the years between
the person's vote-eligible year and 2023 else find
median of birth year and 2023

13. Use nested if to find which loop contains the


greatest value
Looping
4 statements 12.00 PM
14. Find missing numbers in the series 1,5,11,19 to 01.00
using java PM
15. write java program to iterate
through array elements using
enhanced for loop. And find no.
ofprime numbers

16. Iterate to two for loops,


both contains 10 array
elements, one is normal order,
another inreverse order, find
the median where they will
meet
17. Write java program using
switch case to findluck guess

18. Java switch case to


find which for loop is
5 Switch case and 01.00 PM to
shortest path first
Operators 02.00 PM
19. Write a java program to
implement OR gateand AND
gate

20. Write a program to shift


values from left to right if
A>B else shift right to left
using logical shift operators.
Where A and B are arrays

7 CLASS TEST 1 (1 RANDOM QUESTION FROM 02.00 PM to


EACH SECTION) 03.00 PM

Course Coordinator HOD

You might also like