🚀 Day 4 – Java Learning Journey 🔤 Finding Vowels & Consonants Using String Manipulation Today, I focused on strengthening my understanding of **string processing in Java** by building a simple yet important program to identify **vowels and consonants** from a given input string. 💡 **What I implemented:** * Iterated through each character of a string using a `for` loop * Converted characters to uppercase using `Character.toUpperCase()` for uniform comparison * Applied conditional logic to check whether a character is a vowel (`A, E, I, O, U`) * Printed whether each character is a vowel or consonant 📌 **Key Learning Outcomes:** ✅ Improved understanding of **String methods** (`charAt()`, `length()`) ✅ Practiced **conditional statements and loops** ✅ Learned how to handle **character normalization** for accurate comparisons ✅ Strengthened logical thinking in basic **text classification problems** 🔍 This exercise may seem simple, but it forms the foundation for more advanced concepts in **text processing, NLP, and pattern recognition**. Consistency in practicing these fundamentals is what builds strong programming skills over time. 💪 #Java #Programming #StringManipulation #CodingJourney #100DaysOfCode #DSA #LearningInPublic #pathulothuNavinder
Java String Manipulation: Vowels & Consonants
More Relevant Posts
-
🚀 Day 4 – Java Learning Journey 🔤 Finding Vowels & Consonants Using String Manipulation Today, I focused on strengthening my understanding of string processing in Java by building a simple yet important program to identify vowels and consonants from a given input string. 💡 What I implemented: Iterated through each character of a string using a for loop Converted characters to uppercase using Character.toUpperCase() for uniform comparison Applied conditional logic to check whether a character is a vowel (A, E, I, O, U) Printed whether each character is a vowel or consonant 📌 Key Learning Outcomes: ✅ Improved understanding of String methods (charAt(), length()) ✅ Practiced conditional statements and loops ✅ Learned how to handle character normalization for accurate comparisons ✅ Strengthened logical thinking in basic text classification problems 🔍 This exercise may seem simple, but it forms the foundation for more advanced concepts in text processing, NLP, and pattern recognition. Consistency in practicing these fundamentals is what builds strong programming skills over time. 💪 #Java #Programming #StringManipulation #CodingJourney #100DaysOfCode #DSA #LearningInPublic #pathulothuNavinder
To view or add a comment, sign in
-
-
Java vs Python 🤯 — the question every student gets stuck on. I faced the same confusion in my 2nd year. Python was trending 🚀 AI was everywhere 🤖 So I asked my C++ professor what I should choose. He didn’t give me a direct answer. He just asked me one question: 👉 “Coding kaisi lagti hai?” I said, “Sir, acchi lagti hai.” And he replied: 👉 “Then go for Java.” At that time, I didn’t fully understand why. But after spending 6–8 months learning Java and building projects, it made complete sense. 💡 Here’s what I learned: • Java builds strong fundamentals • It helps you understand how things work internally • Once you learn Java, switching to other languages becomes much easier This experience completely changed how I look at learning programming. I’ve shared my complete journey and insights in this article 👇 #Java #Python #Programming #SoftwareDevelopment #Coding #Developers #TechCareer #LearningToCode
To view or add a comment, sign in
-
Learning Java DSA: My Journey into Recursion 🚀 Recursion is one of those concepts that feels confusing at first… until it suddenly clicks. While learning Data Structures & Algorithms in Java, I recently spent time understanding recursion — and here’s what stood out to me: 🔹 Recursion is simply a function calling itself 🔹 Every recursive solution has two key parts: • Base Case (when to stop) • Recursive Case (how to move toward the solution) At first, problems like factorial, Fibonacci, or reversing an array felt tricky. But once I started visualizing the function call stack, things became much clearer. 💡 Key lesson: “If you can break a problem into smaller versions of itself, recursion might be the answer.” It’s still a work in progress, but I’m getting more comfortable with: ✔️ Dry running recursive calls ✔️ Understanding stack flow ✔️ Identifying base conditions Next goal: Mastering backtracking and optimizing recursion 🚀 If you’ve got tips, resources, or favorite recursion problems, feel free to share — always open to learning! #Solve 12 question #Java #DSA #Recursion #CodingJourney #LearningInPublic #SoftwareDevelopment
To view or add a comment, sign in
-
-
Java developers don’t need Python to start building AI features. The common advice over the internet is: Learn Python → Learn scikit learn/Pytorch → Then build/implement AI tools I followed the same path and spent weeks understanding models, training pipelines, and libraries and realized something uncomfortable: I was solving problems that are already solved that too in a very bookish way. You don’t need to become a machine learning engineer to add AI to your application. Being a developer what you actually need is this shift: Stop thinking: I need to build models Start thinking: I need to use intelligence inside my existing system Modern AI development looks like this: Spring Boot + Spring AI → Handles orchestration LLM APIs (OpenAI, Anthropic, Ollama) → Pretrained engines you donot have to build Vector Database → Makes your data searchable. Prompt Engineering → The real control layer for AI behaviour But here’s the catch most people ignore: ⚠️ LLMs are not deterministic ⚠️ They hallucinate ⚠️ They don’t understand your business context by default you being the developers should handle this otherwise your AI feature will break in production. In this series, I’ll focus on one thing: How Java developers can build real, production-ready AI features, no theory but the real implementation. Next: How to use RAG in a Spring Boot application to make AI responses reliable.
To view or add a comment, sign in
-
-
About 15 years ago I took a Data Structures class that was taught in Java. The professor had a clever approach to the problems: before the next class session we had to submit a brief description of the overall approach we planned to use, so he could give us feedback on that before we dug into actual coding (sometimes that prevented me from wasting time when he suggested an alternative plan). For one exercise, I said I would use REGEXES for input parsing, because after many years of working in Perl I used those a lot. He replied "while I don't use REGEXES very much, if you're good with them that's a reasonable approach," and that's what I did. I found it interesting that a CS Professor hadn't used REGEXES much, instead preferring the tokenizers that Java culture prefers. Either works, although REGEXE syntax in Java is much clunkier than in Perl or Python! Java seems to love syntactic salt, because it comes from a CS world where their top priority appears to be "force the coder to prove they know exactly what they are doing even if that takes 5X lines of code." I got an A in the class, but never used Java very much in my scientific research.
To view or add a comment, sign in
-
AI4J highlighted some big themes in AI + Java: context engineering as a core skill, predictive AI driving ROI, and functional programming gaining momentum. Strong takeaways from a great lineup of speakers. Read more below. #Java #AI4J #AI #Engineering #Developers
To view or add a comment, sign in
-
𝗝𝗮𝘃𝗮 + 𝗔𝗜: 𝗕𝗲𝘆𝗼𝗻𝗱 𝗔𝗣𝗜𝘀: 𝗶𝗻𝘁𝗼 𝗥𝘂𝗻𝘁𝗶𝗺𝗲, 𝗣𝗲𝗿𝗳𝗼𝗿𝗺𝗮𝗻𝗰𝗲, 𝗮𝗻𝗱 𝗦𝘆𝘀𝘁𝗲𝗺 𝗗𝗲𝘀𝗶𝗴𝗻 Java powers your production AI systems. It optimizes how your AI runs, scales, and integrates. Here are the key technical layers: - JVM optimizations (JIT, escape analysis, vectorization) handle CPU-heavy AI tasks like preprocessing and real-time inference. - Project Panama connects Java directly to native AI libraries (TensorFlow, ONNX) without JNI. This lowers latency and improves memory safety. - Project Loom’s Virtual Threads manage I/O-heavy AI work. They enable parallel prompt processing, async model orchestration, and scalable LLM APIs. - Java integrates with vector databases (FAISS, Pinecone). It uses off-heap memory and SIMD operations for efficient embeddings. - Low-latency garbage collectors (ZGC, Shenandoah) prevent pauses in real-time inference and high-throughput pipelines. - Frameworks like LangChain4j, DJL, and Spring AI support AI development in Java. - Structured concurrency parallelizes multiple model calls, fallbacks, and RAG pipelines with clear error handling. Java does not replace Python in model training. It runs AI systems reliably at scale. Python trains models. Java delivers them. Source: https://lnkd.in/gQif88xv Optional learning community: https://t.me/GyaanSetuAi
To view or add a comment, sign in
-
Day 34 of learning Java 🔹 Set Interface (Recap + Depth) ✔ Hierarchy: Iterable → Collection → Set → SortedSet → NavigableSet → TreeSet ✔ Implementations: • HashSet → no order • LinkedHashSet → insertion order • TreeSet → sorted ✔ TreeSet special methods: • first(), last() • range queries (subSet, headSet, tailSet) 🔹 Map Interface (Core Methods) ✔ Basic operations: • containsKey() • containsValue() • putAll() • clear() ✔ Clean coding methods: • getOrDefault() → avoids null checks • putIfAbsent() → prevents overwrite 🔹 Iteration in Map ✔ Using entrySet(): • Gives key-value pairs • Efficient way to iterate ✔ Map.Entry: • Represents one key-value pair 🔹 Immutable Maps ✔ Map.of() • Creates unmodifiable map • Fixed data, no changes allowed 🔹 TreeMap (Sorted Map) ✔ Maintains sorted keys ✔ Extra methods: • firstKey(), lastKey() • range-based operations ✔ Time complexity: O(log n) 🔹 Advanced Map Implementations 1. IdentityHashMap • Uses == instead of equals() • Compares memory reference 2. EnumMap • Only for enum keys • Very fast and memory efficient • Maintains order of enum 3. ConcurrentHashMap • Thread-safe • Used in multi-threading • Faster than Hashtable special thanks to Aditya Tandon and Rohit Negi sir
To view or add a comment, sign in
-
-
🚀 Day 26/45 – Exploring Searching Algorithms in Java On Day 26 of my Java learning journey, I focused on Searching Algorithms, which are essential for finding data efficiently. Searching is widely used in real-world applications, from simple programs to complex systems. 📚 What I Learned Today Today I learned: ✔ Linear Search and how it works step by step ✔ Binary Search and its efficiency ✔ Importance of sorted data in binary search ✔ Difference between linear and binary search 💻 Practice Work To apply my learning, I implemented: • Linear search to find elements in an array • Binary search using divide-and-conquer approach 🎯 Key Takeaway Understanding searching algorithms helps improve efficiency and performance in applications. Binary search, in particular, is very powerful when working with large datasets.Daily practice is helping me build strong problem-solving skills. #Java #Programming #LearningInPublic #CodingJourney #ProblemSolving #SoftwareDevelopment
To view or add a comment, sign in
-
👩💻 91R Batch: JAVA 🚀 Today I learned important Object-Oriented Programming (OOP) concepts in Java with examples! 🔹 What is OOP? Object-Oriented Programming (OOP) is a programming approach that organizes code using classes and objects, based on real-world scenarios. 🔹 Why use OOP? – Helps organize code effectively – Improves reusability – Makes applications easier to maintain 🔹 Advantages of OOP: ✔ Modularity ✔ Security ✔ Reusability ✔ Flexibility 🔹 Core Features of OOP: – Class – Object – Encapsulation – Inheritance – Polymorphism – Abstraction 🔹 Encapsulation Encapsulation is the process of binding data and methods into a single unit and controlling access using private variables. 💻 Example: class Student { private int age; public void setAge(int age) { this.age = age; } public int getAge() { return age; } } 🔹 Inheritance Inheritance allows one class to acquire properties and behavior from another class using the extends keyword. 💻 Example: class Animal { void sound() { System.out.println("Animal makes sound"); } } class Dog extends Animal { void bark() { System.out.println("Dog barks"); } } 🔹 Polymorphism Polymorphism means one method with multiple behaviors. Types: 1️⃣ Compile-time (Method Overloading) 2️⃣ Runtime (Method Overriding) 💻 Example (Method Overloading): public void printData(int a, int b) { System.out.println(a + b); } public void printData(double a, double b) { System.out.println(a + b); } 💻 Practicing these concepts helps me understand real-world application development. 📌 Next step: Learning Abstraction! #Java #OOP #Encapsulation #Inheritance #Polymorphism #CodingJourney #StudentDeveloper 10000 Coders Raviteja T
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