Skip to content

akumosstl/java-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Java Interview Preparation Repo ๐Ÿš€

Welcome to the Java Interview Preparation repository! This repo is designed to help you practice and master common Java coding problems and concepts for live coding interviews. Whether you're brushing up on fundamentals or tackling advanced topics, you'll find useful examples and exercises here.

๐Ÿ“š What You'll Find

  • Core Java Concepts: Collections, iterators, fail-fast behavior, string manipulation, and more.
  • Java 8 Features: Streams, lambdas, functional interfaces, and modern idioms.
  • Algorithmic Exercises: Fibonacci, prime numbers, sorting, frequency counting, and more.
  • Design Patterns: Example of the Decorator pattern.
  • Unit Tests: JUnit tests for verifying your solutions.

๐Ÿ—‚๏ธ Project Structure

pom.xml
src/
  main/
    java/
      io/github/akumosstl/
        <various Java files>
        collections/
          sort/
        java8/
        patterns/
          decorator/
        string/
    resources/
      assets/img/diagram/
  test/
    java/io/github/akumosstl/
      <test files>
target/

๐Ÿ† Topics Covered

  • ๐Ÿ”ข Fibonacci Series
  • ๐Ÿงฎ Prime Number Check
  • ๐Ÿ—’๏ธ List Iterators & Fail-Fast
  • ๐Ÿงฉ Collection Comparison
  • ๐Ÿง‘โ€๐Ÿ’ป Java 8 Stream Operations
  • ๐Ÿ” Finding Min/Max, Duplicates, Frequency
  • ๐Ÿ”ก String Manipulation (Reverse, Uppercase, Vowel Check)
  • โ˜• Decorator Pattern Example (CoffeeShop)

๐Ÿงช How to Run Tests

  1. Make sure you have Java and Maven installed.
  2. Run tests with:
mvn test

๐Ÿ’ก Usage Tips

  • Explore each file for concise, interview-focused code snippets.
  • Practice modifying and running the code to deepen your understanding.
  • Use the test files to check your solutions and learn best practices.

๐Ÿค Contributing

Pull requests and suggestions are welcome! If you have a favorite interview problem or Java concept, feel free to add it.

๐Ÿ“– License

This project is for educational purposes.


Happy coding and good luck with your interviews! ๐Ÿ’ช

About

Java code for coding live interview preparation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages