Skip to content

aadarsha-2064/java-collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

β˜• TU BCA – Java Lab Programs (2nd Semester)

This repository contains Java lab programs from my BCA 2nd Semester at Tribhuvan University. These programs were given by my instructor as lab exercises and solved by me during class.


πŸ“‚ What's Inside

java-program/
β”‚
β”œβ”€β”€ πŸ“ Basic/
β”‚   └── apple price, case check, escape sequences, multiply numbers, triangle area
β”‚
β”œβ”€β”€ πŸ“ array/
β”‚   β”œβ”€β”€ 1D Array   β†’ search, sort, largest/smallest element
β”‚   └── 2D Array   β†’ matrix addition, transpose, diagonal sum
β”‚
β”œβ”€β”€ πŸ“ control-flow/
β”‚   β”œβ”€β”€ for-loop           β†’ Armstrong numbers, multiplication table, prime check,
β”‚   β”‚                         even numbers, series evaluation, sum of natural numbers
β”‚   β”œβ”€β”€ while-loop          β†’ factorial, palindrome check, reverse number, sum of digits
β”‚   β”œβ”€β”€ do-while-loop       β†’ Fibonacci series
β”‚   β”œβ”€β”€ switch-case         β†’ area calculation, binary-decimal conversion,
β”‚   β”‚                         converters, switch fall-through
β”‚   └── Ternary Operator    β†’ greatest number without if
β”‚
β”œβ”€β”€ πŸ“ IF else/
β”‚   └── even/odd check, greatest of numbers, grading, vowel/consonant check
β”‚
β”œβ”€β”€ πŸ“ oop/
β”‚   └── rectangle area using class and object
β”‚
└── πŸ“ Pattern/
    └── pattern1 to pattern10

πŸ“˜ Topics Covered

Topic Description
Basic Simple beginner programs to practice Java syntax
Array (1D & 2D) Searching, sorting, and matrix operations
Control Flow Loops (for, while, do-while), switch-case, and ternary operator
If-Else Conditional logic based problems
OOP Basic class and object concepts
Pattern Pattern printing programs (pattern1 to pattern10)

πŸ‘€ Author

Ghimire BCA 2nd Semester Student β€” Tribhuvan University


⭐ If this helped you, consider giving the repo a star!

About

Java lab programs for BCA 2nd Semester (Tribhuvan University) covers arrays, control flow, conditionals, OOP, and pattern printing.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages