{"id":34499368,"url":"https://github.com/helloharendra/java_dev_learing_2025_2026","last_synced_at":"2026-05-27T08:33:39.170Z","repository":{"id":324705467,"uuid":"1096372504","full_name":"helloharendra/java_dev_learing_2025_2026","owner":"helloharendra","description":"this repo is only available for java students practice.","archived":false,"fork":false,"pushed_at":"2026-03-26T12:58:09.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T05:13:48.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/helloharendra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-11-14T10:27:52.000Z","updated_at":"2026-03-26T12:58:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/helloharendra/java_dev_learing_2025_2026","commit_stats":null,"previous_names":["helloharendra/java_dev_learing_2025_2026"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/helloharendra/java_dev_learing_2025_2026","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloharendra%2Fjava_dev_learing_2025_2026","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloharendra%2Fjava_dev_learing_2025_2026/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloharendra%2Fjava_dev_learing_2025_2026/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloharendra%2Fjava_dev_learing_2025_2026/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helloharendra","download_url":"https://codeload.github.com/helloharendra/java_dev_learing_2025_2026/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloharendra%2Fjava_dev_learing_2025_2026/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33558648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-12-24T01:58:51.341Z","updated_at":"2026-05-27T08:33:39.159Z","avatar_url":"https://github.com/helloharendra.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🧑‍🏫 **Java Loops — Simple Explanation**\n\nA **loop** means **repeating something again and again automatically**.\n\nIn real life:\n\n* If you say: *“I will do 10 push-ups”*\n  → You repeat the push-up action **10 times** → This is like a loop.\n\nIn Java, loops help us **repeat code** without writing it multiple times.\n\nJava has 3 types of loops:\n\n1. **for loop**\n2. **while loop**\n3. **do-while loop**\n\nBut **today we focus on `for` loop** because it’s used the most in **star patterns**.\n\n---\n\n# ⭐ **What is a `for` loop? (Very Easy Explanation)**\n\nA `for` loop tells Java:\n\n👉 *“Start from this number, keep repeating until this number, and move one step each time.”*\n\nSimple example:\n\n```java\nfor (int i = 1; i \u003c= 5; i++) {\n    System.out.println(i);\n}\n```\n\nThis prints:\n\n```\n1\n2\n3\n4\n5\n```\n\n### Breaking it down:\n\n* `int i = 1;` → start from 1\n* `i \u003c= 5;` → keep going until 5\n* `i++` → increase by 1 after every loop\n\n---\n\n# ⭐ **Start of Star Patterns**\n\nStar patterns are used to practice loops because they are easy to understand visually.\n\nLet’s start step-by-step like I would teach in class.\n\n---\n\n# 🌟 **Pattern 1: Print 5 stars in 1 line**\n\n### Output:\n\n```\n*****\n```\n\n### Code:\n\n```java\nfor (int i = 1; i \u003c= 5; i++) {\n    System.out.print(\"*\");\n}\n```\n\n### Why did we use loop?\n\nBecause instead of writing:\n\n```\nSystem.out.print(\"*\");\nSystem.out.print(\"*\");\nSystem.out.print(\"*\");\nSystem.out.print(\"*\");\nSystem.out.print(\"*\");\n```\n\nWe write **only one line** and loop repeats it 5 times.\n\n---\n\n# 🌟 **Pattern 2: 5 lines of 5 stars (Square)**\n\n### Output:\n\n```\n*****\n*****\n*****\n*****\n*****\n```\n\n### Explanation:\n\nWe need **rows** and **columns**.\n\n* Outer loop → lines (rows)\n* Inner loop → stars in each line\n\n### Code:\n\n```java\nfor (int i = 1; i \u003c= 5; i++) {          // Outer loop → runs 5 times\n    for (int j = 1; j \u003c= 5; j++) {      // Inner loop → prints 5 stars\n        System.out.print(\"*\");\n    }\n    System.out.println();               // Move to next line\n}\n```\n\n---\n\n# 🌟 **Pattern 3: Triangle (Very Popular)**\n\n### Output:\n\n```\n*\n**\n***\n****\n*****\n```\n\n### Explanation:\n\n* Row 1 → 1 star\n* Row 2 → 2 stars\n* Row 3 → 3 stars\n* Row 4 → 4 stars\n* Row 5 → 5 stars\n\n### Code:\n\n```java\nfor (int i = 1; i \u003c= 5; i++) {        // Controls rows\n    for (int j = 1; j \u003c= i; j++) {    // Prints stars equal to row number\n        System.out.print(\"*\");\n    }\n    System.out.println();\n}\n```\n\n---\n\n# 🌟 **Pattern 4: Reverse Triangle**\n\n### Output:\n\n```\n*****\n****\n***\n**\n*\n```\n\n### Code:\n\n```java\nfor (int i = 5; i \u003e= 1; i--) {\n    for (int j = 1; j \u003c= i; j++) {\n        System.out.print(\"*\");\n    }\n    System.out.println();\n}\n```\n\n---\n\n# 🎯 Summary (Non-technical friendly)\n\n* **Loop = repeat automatically**\n* **`for` loop = repeat something specific number of times**\n* Star patterns help you understand loops visually\n* Use:\n\n  * Outer loop → number of lines\n  * Inner loop → number of stars per line\n\n---\n\nIf you want, I can teach you:\n✔ more star patterns\n✔ diamond shape\n✔ pyramid\n✔ number patterns\n✔ or explain loops using real-life examples like elevator, school attendance, etc.\n\nJust tell me!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloharendra%2Fjava_dev_learing_2025_2026","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelloharendra%2Fjava_dev_learing_2025_2026","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloharendra%2Fjava_dev_learing_2025_2026/lists"}