Week 1 of Java class is almost in the books and what a week it's been! Our instructor Dave gave us a really solid foundation to start with. We covered declaring and assigning variables, scanner input, and conditional statements. We're also working in IntelliJ as our IDE, which was a brand new environment for me. But having experience with VS Code made it a lot easier to find my footing. To put everything into practice, I built a little project called Sandwich Shop 🥪 The program asks users 3 questions: → What size sandwich do you want? → Do you want it loaded? → How old are you? From those answers, the program uses conditional statements to figure out the price of the sandwich and whether the customer gets a discount. It's a small project, but I'm honestly really proud of it. It shows exactly what we've been learning this week and it just feels great to see it come together. I'll be posting my work here as I continue through the course, so stay tuned for more! Check out the repo: https://lnkd.in/eeiFBrUC #Java #LearningToCode #SoftwareDevelopment #CodingJourney #YearUpUnited
More Relevant Posts
-
🚀 Day 29 of My Java Journey 📌 Topic: "break" vs "continue" in Java Today I learned how to control loops more effectively using two powerful statements 👇 --- 🔹 "break" Statement 👉 Immediately terminates the loop 👉 Execution moves outside when condition becomes true 🔹 "continue" Statement 👉 Skips the current iteration 👉 Moves to the next iteration of the loop --- 💡 Simple Difference: ✔ "break" → Terminates the loop ❌ ✔ "continue" → Skips current iteration ⏭️ --- ⚡ Why this matters? ✔ Cleaner and optimized code ✔ Better control over loop execution ✔ Useful in real-world scenarios (filtering, searching, validations) --- 🔥 Consistency is the key to becoming a better developer every day! #Java #CodingJourney #LearnToCode #100DaysOfCode #Programming #DeveloperLife
To view or add a comment, sign in
-
-
💻 Day 26 of My Coding Journey 🚀 Today I explored Final Keyword in Java 🔒 Here’s what I learned 👇 🔹 Final Variable → Value cannot be changed (constant) 🔹 Final Method → Cannot be overridden 🔹 Final Class → Cannot be inherited 💡 Simple concept, but very powerful in controlling behavior and ensuring security in Java programs. 🧠 Key takeaway: Using "final" helps in writing more secure, stable, and predictable code. 🚀 Every small concept builds strong Java fundamentals! #Java #CodingJourney #100DaysOfCode #FinalKeyword #Programming #LearnJava
To view or add a comment, sign in
-
-
Everything looked correct… Same endpoint. Different methods. But still… only one worked 🤯 That’s when I realized — In Spring Boot, it’s not just about URLs… It’s about HTTP methods 🧠 One small detail, and your entire API behaves differently ⚠️ Many beginners miss this in real projects. 🚨 Stop just watching tutorials… Real growth = Practice + Consistency 💯 🔥 Java Daily Practice ☕️ 👉 Join & start today 🔗 https://lnkd.in/gfhqgjGd 🚀 Here’s a quick challenge 👇 💬 What do you think happens when you hit /test in browser? #SpringBoot #Java #BackendDeveloper #RESTAPI #WebDevelopment #Programming #Coding #TechLearning #DeveloperTips #LinkedInIndia
To view or add a comment, sign in
-
🎯 40 Java programs. 1 interface. 0 fluff. #{The entire code is in the word document file attached to my next post due to LinkedIn's restricted byte upload (text.length size).} Just built a Java Learning Hub with: • 3 difficulty tiers (Basic → Intermediate → Advanced) • Interactive menu system • Games, calculators, banking app • OOP, threading, collections • ASCII art dice game 🎲 I'll be adding more with time. I used the switch-case method to make it easy for anyone using a Java Virtual Machine to simply run the code and choose what they want to learn from the prompt list. Perfect for Java beginners & intermediates. Full code will be posted here and on my GitHub before tomorrow ends. 🔗 GitHub: @mankin777 #Java #100DaysOfCode #Programming #TechLearning #OpenSource @KevinBourrillion @BrianGoetz @marcobehler @Oracle @JetBrains @GitHub @freeCodeCamp @java @Baeldung @javinpaul
To view or add a comment, sign in
-
Generics in Java always felt simple… until wildcards came in. Recently spent some time understanding how ?, ? extends, and ? super actually work. It looks small, but it completely changes how you design flexible and type-safe code. So I made a short PPT to break it down in a way that’s easier to understand. No heavy theory, just trying to make the concept clear. This is one of those topics that feels confusing at first, but once it clicks, it actually makes a lot of sense. Still exploring Java deeper, one concept at a time… let’s see where it goes. #Java #Generics
To view or add a comment, sign in
-
⚠️ Why Java Avoids Multiple Inheritance – Understanding the Diamond Problem Have you ever questioned why Java doesn’t allow multiple inheritance through classes? Let’s break it down simply 👇 🔷 Consider a scenario: A child class tries to inherit from two parent classes, and both parents share a common base (Object class). Now the problem begins… 🚨 👉 Both parent classes may have the same method 👉 The child class receives two identical implementations 👉 The compiler has no clear choice This creates what we call the Diamond Problem 💎 🤯 What’s the Issue? When two parent classes define the same method: Which one should the child use? Parent A’s version or Parent B’s? This confusion leads to ambiguity, and Java simply doesn’t allow that ❌ 🔍 Important Points: ✔ Every class in Java is indirectly connected to the Object class ✔ Multiple inheritance can cause method conflicts ✔ Duplicate methods = compilation errors ✔ Java strictly avoids uncertain behavior 💡 Java’s Smart Approach: Instead of allowing multiple inheritance with classes, Java provides: 👉 Interfaces to achieve multiple inheritance safely 👉 Method overriding to resolve conflicts clearly 🚀 Final Thought: Java’s design ensures that code remains predictable, clean, and maintainable — even if it means restricting certain features like multiple inheritance. #TapAcademy #Java #OOP #Programming #SoftwareDevelopment #Coding #JavaDeveloper #TechConcepts #LearningJourney
To view or add a comment, sign in
-
-
🚀 Exploring VS Code Extensions – Built a Practical Java Utility While working on improving my development workflow, I created a custom VS Code extension that reduces repetitive coding in Java. 👉 Instead of manually writing classes, you can simply write: abc.print("Hello"); And the extension automatically generates the required Java class in real-time. 💡 Key Capabilities: Detects any .print() usage Dynamically creates the corresponding class Works instantly while editing Java files Helps reduce boilerplate code ⚙️ Tech Stack: TypeScript • VS Code Extension API • Java 📦 How to Use (Important): Since this is not published on the VS Code Marketplace, you can use it locally: Download the .vsix file from GitHub Open VS Code Press Ctrl + Shift + P Select Install from VSIX Choose the downloaded file Start using it in any .java file 🔗 GitHub Repository: (https://lnkd.in/dnj575B3) I’m continuously working on improving this and adding more features. Feedback and suggestions are always welcome! #Java #VSCode #DeveloperTools #TypeScript #Coding #SoftwareDevelopment #BuildInPublic
To view or add a comment, sign in
-
I spent years writing Java 8 code. Turns out I was only using about 20% of what it could do. Here are 9 Java 8 features that changed how I write code — swipe through the carousel to see all of them with real before/after examples. 👇 ― Most devs stop at lambdas and streams. Fair. They're great. But there's a whole layer underneath that nobody talks about: → Collectors that group, count, and join data in one line → Optional that chains safely instead of crashing on null → CompletableFuture that makes async code actually readable → Map methods that eliminate 6-line "check then insert" patterns → Predicate chaining that turns filter logic into reusable building blocks These aren't niche. They're in every modern Java codebase. ― The one that hit me hardest? computeIfAbsent. Before I found it, I was writing this every time: if (!map.containsKey(key)) { map.put(key, new ArrayList<>()); } map.get(key).add(value); After: map.computeIfAbsent(key, k -> new ArrayList<>()).add(value); Same logic. One line. No cognitive overhead. That's what Java 8 does when you actually use it. ― Swipe through the carousel for all 11 tricks — each slide has a concrete code example so you can start using it today. Save it for your next code review. 🔖 If you've been writing Java for a while and one of these was new to you — drop it in the comments. Curious which ones land. ― ♻️ Repost if this would help someone on your team. 🔔 Follow for more posts like this every week. #Java #Java8 #JavaDeveloper #JavaProgramming #SoftwareDevelopment #SoftwareEngineering #CleanCode #BackendDevelopment #BackendEngineering #Programming #Coding #CodeNewbie #100DaysOfCode #DevTips #TechTips #LearnToCode #OpenSource #SpringBoot #Microservices #Tech
To view or add a comment, sign in
-
🚀 Day 55 of #100DaysOfCode — Getting Started with Multithreading in Java Over the past 2 days, I explored one of the most important concepts in Java: Multithreading 🔥 💡 What I Learned 🧵 What is Multithreading? Multithreading allows a program to execute multiple tasks simultaneously, improving performance and efficiency ⚡ 👉 Instead of running tasks one after another, we can run them in parallel. ⚙️ Creating Threads in Java 1️⃣ Using Thread Class Extend the Thread class Override the run() method Start using start() 2️⃣ Using Runnable Interface (Best Practice ✅) Implement Runnable Pass it to a Thread object Start execution using start() 🧠 Key Takeaways ✔ Runnable is preferred over Thread (better design & flexibility) ✔ Supports multiple inheritance ✔ Separates task from execution ✔ Helps in building scalable backend systems ⚠️ Important Concept 👉 Difference between: run() ❌ (normal method call) start() ✅ (creates new thread) 🔥 Real-World Use Cases Backend APIs Payment systems Real-time applications Inventory & billing systems (like the one I'm building 🏪) 🚀 What’s Next? ➡️ Synchronization ➡️ Race Conditions ➡️ ExecutorService (Thread Pool) Learning multithreading feels like unlocking a new level in Java 💪 Huge thanks to my mentor Suresh Bishnoi for simplifying complex concepts like multithreading and pushing me to keep learning consistently. #Java #Multithreading #100DaysOfCode #BackendDevelopment #LearningJourney
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development