🚀 Excited to share that I worked on some important Java String Processing Programs under the guidance of G.R Narendra Reddy sir. This session focused on analyzing and manipulating strings using different logic and techniques. It helped me improve my understanding of real-time string handling concepts. 🔹 Key Implementations Covered: ✔️ Vowel & Consonant Identification ✔️ Counting Total Vowels and Consonants ✔️ Counting Capital and Small Letters ✔️ Identifying Alphabets, Digits, and Special Characters ✔️ Replacing Vowels with Special Characters ✔️ Replacing Vowels with Specific Special Characters ✔️ Counting Total Number of Words (Independent Strings) ✔️ Segregating Alphabets and Special Characters into Separate Strings ✨ What I Practiced: ✔️ Character-by-character analysis using loops ✔️ Conditional statements and ASCII handling ✔️ String manipulation and modification techniques ✔️ Writing efficient and clean Java code 💡 Key Learnings: ✔️ Strong foundation in string processing ✔️ Improved logical thinking and problem-solving ✔️ Real-time input validation techniques ✔️ Better understanding of character operations 🎯 Why It Matters: These concepts are widely used in applications like text processing, form validation, password checking, and data filtering systems. 🌱 Small consistent efforts lead to big achievements! G.R NARENDRA REDDY Sir Global Quest Technologies #Java #Programming #Coding #StringManipulation #Vowels #Consonants #CharacterAnalysis #JavaDeveloper #LearningJourney #ProblemSolving #TechSkills #StudentDeveloper
More Relevant Posts
-
Building Strong Foundations in Java: Static Methods & Recursion I recently worked on a set of Java programs focused on static methods and recursion, strengthening my understanding of fundamental programming concepts and their practical applications. What I implemented: • Object counting using static variables • Mathematical operations using static methods: * Factorial, power, square root * Simple & compound interest * Area calculations (circle, triangle, rectangle, polygon, etc.) • Array operations like summing elements • Temperature conversions (Celsius ↔ Fahrenheit) • Recursive solutions for: * Factorial * Sum of digits * Power calculation * Fibonacci series * String reversal Key takeaways: • Static methods allow efficient access without object creation • Help in organizing utility-based operations • Recursion simplifies complex problems by breaking them into smaller subproblems • Strengthened problem-solving and logical thinking skills This practice helped me connect theoretical concepts with hands-on implementation, improving my ability to write clean and structured Java code.Thanks to Global Quest Technologies I’m continuing to build consistency in coding and exploring deeper concepts in Java and Data Structures. #Java #Programming #Recursion #ProblemSolving #SoftwareDevelopment #LearningJourney
To view or add a comment, sign in
-
Day 9 of Java I/O Journey Today I explored the difference between Byte Streams and Character Streams in Java. 🔹 Byte Streams • Work with raw binary data • Used for images, videos, and non-text files • Classes: InputStream, OutputStream, FileInputStream, FileOutputStream 🔹 Character Streams • Work with text data • Handle characters using encoding (UTF-16 internally) • Classes: Reader, Writer, FileReader, FileWriter 💡 Key Insight: Choosing the right stream depends on the type of data you are working with. ✔ Binary data → Use Byte Streams ✔ Text data → Use Character Streams Also practiced basic examples of reading and writing using both types. Step by step, concepts are getting clearer and more practical ⚡ #Java #JavaIO #Programming #Coding #Developer #SoftwareDevelopment #LearningInPublic #100DaysOfCode #CodeNewbie #DevelopersLife #TechLearning #CodingJourney #JavaDeveloper #BackendDevelopment #ComputerScience #Hariom #HariomKumar #Hariomcse
To view or add a comment, sign in
-
-
🔢 Divisible Sum Pairs Problem | Java Solution 💻 Today I solved an interesting problem based on arrays and modular arithmetic! 📌 Problem: Given an array and a number k, count pairs (i, j) such that: 👉 i < j 👉 (arr[i] + arr[j]) % k == 0 ⚡ Approach: Instead of brute force O(n²), I used an optimized O(n) approach using remainder frequency. ✔️ Key Idea: Store frequency of (element % k) For each element, find its complement remainder Count valid pairs efficiently 💡 This improves performance significantly for large inputs! 🧠 Concepts Used: Arrays Modulo Arithmetic Hashing Technique 👨💻 Language: Java #Java #CodingPractice #DataStructures #Algorithms
To view or add a comment, sign in
-
-
🚀 Excited to share that I explored some essential Java String Methods under the guidance of G.R Narendra Reddy sir. This session was focused on understanding built-in string functions and their real-time usage. It helped me strengthen my knowledge of string handling and writing efficient code. 🔹 Key Implementations Covered: ✔️ equals() – Comparing content of two strings ✔️ equalsIgnoreCase() – Comparing strings ignoring case sensitivity ✔️ compareToIgnoreCase() – Lexicographical comparison without case sensitivity ✔️ concat() – Joining two strings ✔️ indexOf() – Finding position of characters/substrings ✔️ isBlank() – Checking if string is empty or contains only spaces ✔️ isEmpty() – Checking if string is empty ✔️ length() – Finding length of string ✔️ replace() – Replacing characters or substrings ✨ What I Practiced: ✔️ Using built-in string methods effectively ✔️ Writing clean and optimized Java programs ✔️ Improving logic with real-time examples 💡 Key Learnings: ✔️ Strong understanding of string methods ✔️ Efficient string comparison techniques ✔️ Code readability and performance improvement 🎯 Why It Matters: String methods are widely used in real-world applications like validation, searching, and data processing. 🌱 Consistency in practice turns skills into expertise! G.R NARENDRA REDDY Sir Global Quest Technologies #Java #Programming #Coding #StringMethods #JavaDeveloper #LearningJourney #ProblemSolving #TechSkills #StudentDeveloper
To view or add a comment, sign in
-
🚛 In Cities, Garbage Is Collected by Trucks… But How Does Java Collect Garbage? ☕♻️ In real life, garbage needs trucks and workers. In Java, memory garbage is cleaned automatically by the Garbage Collector 👇 🔹 What is Garbage in Java? Objects created in memory but no longer used by the program. Example: String name = new String("Java"); name = null; Now the object becomes eligible for cleanup. 🔹 Who Cleans It? The JVM Garbage Collector finds unused objects and frees memory automatically. 🔹 How It Works ✔ Detects unreachable objects ✔ Removes unused memory objects ✔ Makes space for new objects ✔ Helps avoid manual memory cleanup 🔹 Where It Works? Mainly inside Heap Memory, where objects are stored. 🔹 Types of Garbage Collection ♻️ Minor GC → Cleans Young Generation ♻️ Major GC → Cleans Old Generation ♻️ Full GC → Cleans entire heap 🔹 Why It Matters ✔ Better memory management ✔ Improved application performance ✔ Less manual effort for developers 💡 Simple Rule: In cities → Trucks clean garbage In Java → JVM cleans garbage 🚀 Smart developers don’t just write code… they understand memory too. #Java #GarbageCollection #JVM #JavaDeveloper #Programming #Coding #SoftwareEngineering #BackendDeveloper #JavaInterview #TechCareer
To view or add a comment, sign in
-
-
🔹 Title: Solving “Plus Minus” Problem in Java 📊 🔹 Description: Today I solved the Plus Minus problem, where the goal is to calculate the ratios of positive, negative, and zero values in an array. The challenge was not just counting the values, but also formatting the output correctly to 6 decimal places. 💡 Approach: Traverse the array and count positives, negatives, and zeros Divide each count by the total number of elements Print results using precise formatting 🔹 What I learned: ✔ Importance of output formatting ✔ Handling edge cases (like zeros) ✔ Writing clean and efficient Java code Consistency in practicing such problems really strengthens core programming skills. 🚀 #Java #Coding #ProblemSolving #Programming #DataStructures
To view or add a comment, sign in
-
-
🔥 Day 20: Thread Lifecycle in Java Understanding thread lifecycle is key to mastering multithreading 👇 🔹 What is Thread Lifecycle? 👉 It defines the different states a thread goes through during its execution. 🔹 Thread States in Java 1️⃣ NEW 👉 Thread is created but not started Thread t = new Thread(); 2️⃣ RUNNABLE 👉 Thread is ready or running (after start()) 3️⃣ BLOCKED 👉 Waiting to acquire a lock (synchronization) 4️⃣ WAITING 👉 Waiting indefinitely for another thread (e.g., wait()) 5️⃣ TIMED_WAITING 👉 Waiting for a specific time (e.g., sleep(1000)) 6️⃣ TERMINATED 👉 Thread execution is completed 🔹 Simple Example class MyThread extends Thread { public void run() { System.out.println("Thread Running..."); } } public class Main { public static void main(String[] args) { MyThread t = new MyThread(); System.out.println(t.getState()); // NEW t.start(); System.out.println(t.getState()); // RUNNABLE } } 🔹 Lifecycle Flow NEW → RUNNABLE → (BLOCKED / WAITING / TIMED_WAITING) → TERMINATED 🔹 Key Points ✔ start() → moves thread to RUNNABLE ✔ sleep() → TIMED_WAITING ✔ wait() → WAITING ✔ Lock issues → BLOCKED 💡 Pro Tip: Thread state may change quickly — don’t rely on exact timing in real systems. 📌 Final Thought: "Threads have a life cycle — understanding it helps you control execution." #Java #Multithreading #ThreadLifecycle #Programming #JavaDeveloper #Coding #InterviewPrep #Day20
To view or add a comment, sign in
-
-
🚀 Java Gotcha: Can we override static methods? 🤔 👉 Short answer: NO ❌ But there’s a twist… class Parent { static void show() { System.out.println("Parent"); } } class Child extends Parent { static void show() { System.out.println("Child"); } } 👉 Now check this: Parent obj = new Child(); obj.show(); // ? ❓ Output? 👉 Parent ✅ 💡 Why? - static methods belong to class, not object - They are resolved at compile time - This is called method hiding, NOT overriding --- 🔥 Key Takeaway: ✔ static methods → cannot be overridden ✔ They can only be hidden 💬 Interview Tip: If polymorphism is involved → static methods won’t behave like instance methods #Java #Programming #Coding #JavaTips #OOP #InterviewPreparation
To view or add a comment, sign in
-
🚀 Exploring Method Overloading with Varargs in Java Today, I worked on an interesting Java problem that helped me strengthen my understanding of Compile-Time Polymorphism and Varargs (Variable Arguments). 🔹 Problem Statement: Design a VarargsCalculator class with overloaded methods to calculate the sum of: Multiple integers Multiple double values 🔹 Key Concepts Used: ✔ Method Overloading ✔ Varargs (int..., double...) ✔ Switch-case for dynamic method selection ✔ For-each loop for efficient iteration 🔹 Learning Outcome: This problem clearly demonstrates how Java allows the same method name to handle different types and number of inputs, depending on the parameters passed. It also shows how varargs simplify handling multiple inputs without explicitly creating arrays. 💡 Key Insight: Varargs in Java internally behave like arrays, making code more flexible and readable. 🔹 Sample Output: Sum of integers: 10 Sum of doubles: 7.0 📌 Practicing such problems is helping me improve my problem-solving skills and deepen my understanding of core Java concepts. #Java #CoreJava #MethodOverloading #Varargs #Programming #Coding #100DaysOfCode #DeveloperJourney #JavaDeveloper #LearningInPublic
To view or add a comment, sign in
-
-
Day 10/100 – Java Practice Challenge 🚀 Continuing my #100DaysOfCode journey with another important Java concept. 🔹 Topic Covered: Polymorphism Polymorphism means “many forms” — the same method behaves differently depending on the object. 💻 Practice Code: 🔸 Example Program class Animal { void sound() { System.out.println("Animal makes sound"); } } class Dog extends Animal { @Override void sound() { System.out.println("Dog barks"); } } public class Main { public static void main(String[] args) { Animal a = new Dog(); // Upcasting a.sound(); // Runtime polymorphism } } 📌 Key Learnings: ✔️ Same method → different behavior ✔️ Achieved using method overriding ✔️ Based on object type (runtime) 🎯 Focus: Understanding dynamic behavior using inheritance and method overriding 🔥 Interview Insight: Polymorphism is a core OOP concept and widely used in real-world applications. #Java #100DaysOfCode #Polymorphism #OOP #JavaDeveloper #Programming #LearningInPublic
To view or add a comment, sign in
Explore related topics
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