{"id":20893135,"url":"https://github.com/abhraneel2004/oops_lab_2024","last_synced_at":"2026-05-23T08:04:50.316Z","repository":{"id":250688508,"uuid":"835058878","full_name":"abhraneel2004/OOPs_lab_2024","owner":"abhraneel2004","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-29T19:21:42.000Z","size":46,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T20:11:27.404Z","etag":null,"topics":["java","oops-in-java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abhraneel2004.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-29T04:41:11.000Z","updated_at":"2025-07-22T18:07:33.000Z","dependencies_parsed_at":"2024-09-05T22:54:15.006Z","dependency_job_id":"ec002cfb-e0b1-443c-8d7c-3af7a5fdaaec","html_url":"https://github.com/abhraneel2004/OOPs_lab_2024","commit_stats":null,"previous_names":["abhraneel2004/oops_lab_2024"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abhraneel2004/OOPs_lab_2024","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhraneel2004%2FOOPs_lab_2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhraneel2004%2FOOPs_lab_2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhraneel2004%2FOOPs_lab_2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhraneel2004%2FOOPs_lab_2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhraneel2004","download_url":"https://codeload.github.com/abhraneel2004/OOPs_lab_2024/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhraneel2004%2FOOPs_lab_2024/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33387661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","oops-in-java"],"created_at":"2024-11-18T10:14:45.733Z","updated_at":"2026-05-23T08:04:50.297Z","avatar_url":"https://github.com/abhraneel2004.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Object Oriented Programming Lab\n\nWelcome to the Object Oriented Programming Lab repository! This repository contains implementations of various object-oriented programming concepts using Java. Whether you're a beginner looking to learn or an experienced developer seeking reference implementations, you've come to the right place.\n\n## Cheat Sheet 😉\n\n\u003ca target=\"_blank\" href=\"https://quickref.me/java\"\u003eJava Cheat Sheet\u003c/a\u003e\n\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e \u003cimg src=\"https://github.com/abhraneel2004/MAKAUT_3rdSem_DSA_AOT/assets/115551450/6725a58a-baaa-467d-9069-35aab3f3bef6\" style=\"width: 3%;\"\u003e Using Replit\u003c/h2\u003e \u003c/span\u003e\n\u003c/div\u003e\n\n# Step-by-Step Guide: How to Use Java in Replit.com\n\nReplit.com is a powerful online IDE that allows you to write, run, and share code directly in your browser. Follow these steps to use Java in Replit.\n\n## Step 1: Create a New Repl\n\n1. **Visit Replit:** Open your web browser and go to [Replit.com](https://replit.com).\n2. **Log In/Sign Up:** If you don't have an account, sign up for one. If you do, log in.\n3. **Start a New Repl:** Click the `+ Create` button on the top left of the dashboard.\n\n## Step 2: Select the Java Template\n\n1. **Choose Template:** In the \"Create a new Repl\" window, type \"Java\" in the search bar.\n2. **Select Java:** Click on the \"Java\" template.\n\n## Step 3: Set Up Your Project\n\n1. **Name Your Repl:** Enter a name for your project in the \"Title\" field.\n2. **Create Repl:** Click the `Create Repl` button.\n\n## Step 4: Write Your Java Code\n\n1. **Open the Main Class:** In the Replit IDE, you will see a file named `Main.java` opened by default.\n2. **Edit the Code:** Write your Java code in the `Main.java` file. For example, you can start with a simple program:\n    ```java\n    public class Main {\n        public static void main(String[] args) {\n            System.out.println(\"Hello, World!\");\n        }\n    }\n    ```\n3. **Save Your Work:** Replit automatically saves your changes, but you can manually save them by clicking `Ctrl + S` or using the save button.\n\n## Step 5: Run Your Java Program\n\n1. **Run the Program:** Click the `Run` button at the top of the screen. This will execute your `Main.java` program.\n2. **View Output:** The output of your program will be displayed in the console at the bottom of the screen.\n\n## Step 6: Explore and Share\n\n1. **Explore:** Feel free to explore more features of Replit, such as version control, collaborative coding, and more.\n2. **Share Your Repl:** You can share your project by clicking the `Share` button and copying the link to share with others.\n\n## Example Program\n\nHere's an example of a simple Java program that calculates the factorial of a number:\n\n```java\nimport java.util.Scanner;\n\npublic class Main {\n    public static void main(String[] args) {\n        Scanner scanner = new Scanner(System.in);\n        System.out.print(\"Enter a number: \");\n        int number = scanner.nextInt();\n        int result = factorial(number);\n        System.out.println(\"The factorial of \" + number + \" is \" + result);\n    }\n\n    public static int factorial(int n) {\n        int facto = 1;\n        for (int i = 1; i \u003c= n; i++) {\n            facto *= i;\n        }\n        return facto;\n    }\n}\n```\n\n## Running the Example Program\n\n1. **Copy the Program:** Copy the above program into your `Main.java` file.\n2. **Run the Program:** Click the `Run` button to execute the program.\n3. **Input a Number:** When prompted, enter a number to see its factorial.\n\n---\n\nBy following these steps, you can easily write and execute Java programs using Replit.com. Happy coding!\n\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e \u003cimg src=\"https://github.com/abhraneel2004/MAKAUT_3rdSem_DSA_AOT/assets/115551450/6725a58a-baaa-467d-9069-35aab3f3bef6\" style=\"width: 3%;\"\u003e Installation and Setup on Local Machine\u003c/h2\u003e \u003c/span\u003e\n\u003c/div\u003e\n\n### 1. Install Java\n\nMake sure you have Java installed. You can install it using the following steps:\n\n#### For Windows:\n1. **Download Java:** Go to the [Java SE Development Kit (JDK) download page](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html) and download the installer for Windows.\n2. **Install Java:** Run the downloaded installer and follow the instructions to install Java.\n\n#### For macOS:\n1. **Download Java:** Go to the [Java SE Development Kit (JDK) download page](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html) and download the installer for macOS.\n2. **Install Java:** Run the downloaded installer and follow the instructions to install Java.\n\n#### For Linux:\n1. **Update package list:** Open your terminal and run:\n    ```bash\n    sudo apt-get update\n    ```\n2. **Install Java:** Run the following command to install the default JDK:\n    ```bash\n    sudo apt-get install default-jdk\n    ```\n\n### 2. VS Code (Optional)\n\nDownload and install [Visual Studio Code](https://code.visualstudio.com/). This repository is configured with a `.vscode` folder containing useful settings for your coding environment.\n\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e \u003cimg src=\"https://github.com/abhraneel2004/MAKAUT_3rdSem_DSA_AOT/assets/115551450/1c115655-468b-442b-a379-a571ded16107\" style=\"width: 3%;\"\u003e Running the Code\u003c/h2\u003e \u003c/span\u003e\n\u003c/div\u003e\n\nNavigate to the specific directory of the code you want to run and use the following commands:\n\n```bash\n# Compile the Java program\njavac Main.java\n\n# Run the Java program\njava Main\n```\n\nReplace `Main.java` with the name of your Java file.\n\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e \u003cimg src=\"https://github.com/abhraneel2004/MAKAUT_3rdSem_DSA_AOT/assets/115551450/7c437a5b-2f8e-426a-bf5a-290ad2c3d99a\" style=\"width: 3%;\"\u003e Contributing\u003c/h2\u003e \u003c/span\u003e\n\u003c/div\u003e\n\nWe welcome contributions from the community! To contribute to this project, follow these steps:\n\n1. Fork the repository.\n2. Create a new branch for your feature or bug fix: `git checkout -b feature-name`.\n3. Make your changes and commit them with a descriptive commit message.\n4. Push your changes to your fork: `git push origin feature-name`.\n5. Open a pull request to the main repository.\n\nBelow is an explanation of the commands for forking and contributing to a GitHub repository:\n\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e \u003cimg src=\"https://github.com/abhraneel2004/MAKAUT_3rdSem_DSA_AOT/assets/115551450/ec813301-09b4-4c04-9730-b84df7f2fbd3\" style=\"width: 3%;\"\u003e Forking the Repository\u003c/h2\u003e \u003c/span\u003e\n\u003c/div\u003e\n\n1. **Fork the repository:** Click the \"Fork\" button at the top right of the repository page. This creates a copy of the repository in your GitHub account.\n\n   ![Forking](gifs/fork.gif)\n\n2. **Clone your forked repository:** Open your terminal and run the following command to clone the repository to your local machine:\n\n   ```bash\n   git clone https://github.com/your-username/repository.git\n   ```\n\n   Replace `your-username` with your GitHub username and `repository` with the name of the repository.\n\n   ![Clone](gifs/clone.gif)\n\n## Contributing\n\n1. **Create a new branch:** Move into the repository directory and create a new branch for your feature or bug fix:\n\n   ```bash\n   cd repository\n   git checkout -b feature-name\n   ```\n\n   Replace `feature-name` with a descriptive name for your contribution.\n\n   ![Branch](gifs/branch.gif)\n\n2. **Make your changes:** Modify the code, add new features, or fix bugs. Once done, stage and commit your changes:\n\n   ```bash\n   git add .\n   git commit -m \"Description of changes\"\n   ```\n\n   Replace \"Description of changes\" with a concise and descriptive commit message.\n\n   ![Commit](gifs/commit.gif)\n\n3. **Push to your fork:** Push your changes to your forked repository on GitHub:\n\n   ```bash\n   git push origin feature-name\n   ```\n\n   Replace `feature-name` with the name of your branch.\n\n   ![Push](gifs/push.gif)\n\n4. **Create a Pull Request (PR):** Go to the GitHub page of your forked repository. GitHub will detect the recent push and display a \"Compare \u0026 pull request\" button. Click on it to create a new\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhraneel2004%2Foops_lab_2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhraneel2004%2Foops_lab_2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhraneel2004%2Foops_lab_2024/lists"}