Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Java Error Explainer 🚀

Smart Java Error Explainer is a simple console-based Java project that helps beginners understand common Java runtime and compile-time errors.
It takes a Java error as input and explains its meaning, cause, and solution in an easy-to-understand way.

This project is useful for:

  • Java beginners
  • Students preparing for exams or viva
  • Understanding common Java exceptions quickly

Features

  • Explains common Java errors like:
    • NullPointerException
    • ArrayIndexOutOfBoundsException
    • ArithmeticException
    • NumberFormatException
    • ClassNotFoundException
  • Simple text-based (console) interaction
  • Beginner-friendly explanations
  • Easy to extend with more errors

Technologies Used

  • Java
  • Scanner class (for input)
  • HashMap (for storing error explanations)
  • IntelliJ IDEA
  • Git & GitHub

Project Structure

SmartJavaErrorExplainer/ │ ├── src/ │ └── project/ │ └── SmartJavaErrorExplainer.java │ ├── README.md ├── .gitignore └── Java1.iml

Sample Input & Output

Example 1

Input NullPointerException

Output Meaning: You are using an object that has not been initialized.

Cause: The object reference is null.

Solution: Initialize the object before use.

About

AI-based Java error explanation system for beginners.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages