📘 Day 13 | Java Learning – Strings Today I explored one of the most important topics in Java — Strings. I learned how strings work internally, how they are stored in memory, and how different methods help in comparing and manipulating them efficiently. 📌 Key Concepts Covered: 🔹 Strings as a collection of characters enclosed in double quotes 🔹 Types of Strings: • Immutable (cannot be changed) • Mutable (can be modified) 🔍 String Comparison Methods: ✔ == ✔ equals() ✔ compareTo() ✔ equalsIgnoreCase() 🔗 String Operations: ✔ String concatenation ✔ Understanding String memory in the Heap 💻 Programs Practiced: ✅ Printing a string ✅ Reversing a string ✅ Reversing a string using logic ✅ Checking whether a string is a palindrome ✅ Comparing complete strings using equals() ✅ Comparing characters using == ✅ Counting spaces in a string ✅ Counting words in a string ✅ Counting vowels using if condition ✅ Printing consonants in a string 📈 Learning something new every day and growing step by step! #Java #CoreJava #StringsInJava #JavaLearning #CodingJourney #Programming #TAPAcademy #LearningEveryDay #StudentDeveloper
Java Strings: Immutable & Mutable, Comparison Methods & Operations
More Relevant Posts
-
🚀 Day 14 of Java Learning | Strings in Java Today’s session was focused on deepening my understanding of Strings in Java, covering both the theoretical concepts and practical implementations through hands-on programs. It helped me see how string manipulation works behind the scenes and how it is used in real-world applications. 📌 Topics Covered: 🔹 Introduction to Strings 🔹 What Strings are in Java 🔹 Understanding immutability and basic string behavior 💻 String-Based Programs Practiced: ✅ Counting vowels, consonants, numbers, and special characters ✅ Removing special characters from a string ✅ Converting a string to uppercase and lowercase ✅ Removing leading and trailing spaces (without using inbuilt methods) ✅ Removing extra spaces inside a string ✅ Printing a star (*) before each character ✅ Finding and printing the index of a given character (k value) ✅ Checking whether one string is a subsequence of another These exercises helped me build a strong foundation in string processing and manipulation, which is essential for real-world Java applications. #Java #JavaStrings #CoreJava #StringManipulation #LearningJava #Programming #JavaDeveloper #TAPAcademy #DailyLearning #CodingJourney
To view or add a comment, sign in
-
-
🚀 Day 7 of Learning Java Today, I practiced Loop-based problems in Java to strengthen my logic and understanding. 📌 Problems I solved today: 1️⃣ Sum of first N natural numbers → Used for loop to calculate total sum. 2️⃣ Print numbers divisible by both 3 and 5 (1–50) → Used for loop + if condition. 3️⃣ Print numbers using do-while loop → Understood that code runs at least once. 4️⃣ Print numbers using while loop → Condition checked before execution. 5️⃣ Print multiplication table of a number → Used for loop with proper formatting. Learning step by step and focusing on basics 💻 Consistency is the key 💯 #Java #JavaBeginner #ConditionalStatements #IfElse #SwitchCase #LearningJourney #ProgrammingBasics
To view or add a comment, sign in
-
-
📘 Day 8 | Core Java Series Type casting is where many beginners get confused in Java. This visual explains the two types clearly: 👉 Implicit (Widening) 👉 Explicit (Narrowing) Just remember this: Widening → Automatic Narrowing → Manual Once this is clear, type conversions become easy. 📌 Save this for revision 💬 Feedback is welcome #Java #CoreJava #LearningInPublic #JavaBasics #Programming
To view or add a comment, sign in
-
-
Another Java learning video uploaded on YouTube today at 6:00 PM ⏰ In this video, I’ve explained Java Data Types and also shared some basics of Clean Code concepts, all in simple Tanglish so beginners can easily understand. Link is -- "https://lnkd.in/g9ukZPgH" #Java #JavaLearning #JavaForBeginners #Programming #CleanCode #CodingJourney #SoftwareDevelopment #LearnToCode #ITFreshers #LinkedInLearning
To view or add a comment, sign in
-
-
Revisiting a core Java concept today constructors vs methods. When I first started learning Java, the difference felt a little confusing. But breaking it down made it much clearer. Constructors are mainly used to initialize an object when it’s created, while methods define the actions or behavior that object can perform. Simple ideas like this remind me that understanding the fundamentals properly makes learning advanced concepts much smoother. . . . #Java #Programming #LearningInPublic #SoftwareEngineering
To view or add a comment, sign in
-
-
🚀 Day 4 of Learning Java Today, I learned Conditional Statements in Java, which are used to make decisions in a program. 🔹 if–else statement if runs when the condition is true else runs when the condition is false. ✨ Syntax : if (condition) { // statements when condition is true } else { // statements when condition is false } 🔹 else-if else-if is used when we need to check multiple conditions one by one ✨ Syntax : if (condition1) { // statements } else if (condition2) { // statements } else if (condition3) { // statements } else { // statements when all conditions are false } 🔹 switch statement switch is used when one variable has many possible values It makes the code more clear and easy to read in such cases. ✨ Syntax : switch (variable) { case value1: // code break; case value2: // code break; case value3: // code break; default: // code when no case matches } 📌 I also learned the syntax of if–else, else-if, and switch statements and understood how they control program flow. Learning step by step by practicing and writing code every day 💻 Consistency and practice are the key 🔥 #Java #JavaBeginner #LearningJourney #ProgrammingBasics #PracticeCoding #Consistency
To view or add a comment, sign in
-
-
Ever asked Java to do something once… and it kept doing it again and again? 😅 That’s where loops come in. 📌 Control Statements – Part 2: Iteration (Looping Statements) Explained in an easy way: ✔ what each loop does ✔ when to use for, while, do-while, for-each ✔ why choosing the right loop matters Repeat smartly, not blindly 🔁 Perfect for beginners building strong Java logic 🚀 👉 Follow for the next part 🔁 Repost to revise later or help someone learning Java 💬 Comment “Part 3” if you’re ready for Jump Statements . . Thanks to Harshita Mittal for the design touch! . . #Java #CoreJava #JavaProgramming #JavaDeveloper #JavaBasics #ControlStatements #Iteration #Loops #ForLoop #WhileLoop #DoWhile #ForEach #LearnJava #Programming #ProgrammingConcepts #Coding #CodeNewbie #BeginnerFriendly #SoftwareEngineering #SoftwareDeveloper #DeveloperJourney #CSFundamentals #CodingLife #TechEducation #LearningToCode #ProgrammingTips #JavaSeries #LinkedInLearning #Upskilling #CareerInTech #TechCommunity #LogicBuilding #CleanCode #StudyJava #DevelopersOfLinkedIn #WomenWhoCode #StudentsWhoCode
To view or add a comment, sign in
-
📘 Day 16 | Core Java Series After learning wrapper classes, this concept becomes very important 👇 Autoboxing and Unboxing happen automatically in Java, but understanding them avoids confusion and bugs. Remember this: Autoboxing → primitive → object Unboxing → object → primitive Once this is clear, collections and wrapper usage make much more sense. 📌 Save this for revision 💬 Feedback is welcome #Java #CoreJava #LearningInPublic #JavaBasics #Programming
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