C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Tags
No tag found
Content Filter
Articles
Videos
Blogs
Resources
News
Forums
Interviews
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Ashish Bhatnagar(10)
Vijay Kumari(10)
Aakash Chhillar(10)
Ananya Desai(9)
Aarav Patel(6)
Avnii Thakur(5)
Riya Patel(4)
Baibhav Kumar(4)
Ankit Singh(4)
Sandhiya Priya(3)
Mominul Islam(3)
John Godel(3)
Ziggy Rafiq(3)
Mahesh Chand(2)
Pratik Chavan(2)
Bimalshi Jayarathna(2)
Gowtham Rajamanickam(2)
Lokendra Singh(2)
Jayant Kumar(1)
Patrick Kearns(1)
Akshay Amin(1)
Aishwarya Gupta(1)
Tuhin Paul(1)
Niharika Gupta(1)
Rishima (1)
Kaveendra Dhilhan(1)
Sam (1)
Kripanshu Kumar(1)
Sangeetha S(1)
Ck Nitin(1)
Divyansh Gupta(1)
Ajay Kumar(1)
Rikam Palkar(1)
Craig Breakspear(1)
Resources
No resource found
C# 14: The Next Step in Language Evolution for .NET 10
Nov 12, 2025.
Explore C# 14's new features in .NET 10: extension members, field keyword, null-conditional assignment, span improvements, and more. Boost code clarity and performance!
Migrating SharePoint Customized List Form to a Standalone Power App (Using “Copy Code” Method)
Oct 31, 2025.
Migrate SharePoint customized list forms to standalone Power Apps using the 'Copy Code' method. Avoid export/import issues and gain a cleaner, scalable app. Step-by-step guide included!
Understanding Constructor Overloading in C# WebForms
Oct 29, 2025.
Master C# constructor overloading in WebForms! Learn to initialize objects flexibly with different parameters. Real-time example included for practical use.
Understanding Constructor Overloading in C# WebForms
Oct 29, 2025.
Master C# constructor overloading in WebForms! Learn to initialize objects flexibly with different parameters. Real-time examples & practical use cases included.
Designing Clean, Versionable Contracts with [required], Primary Constructors, and [GeneratedRegex]
Oct 27, 2025.
Craft robust .NET contracts with C# 12's required members, primary constructors, and GeneratedRegex. Ensure clear, versionable, and performant APIs and messages.
Chapter 10: Classes and Objects: Construction and Destruction
Oct 23, 2025.
Explore object lifecycle management in C++! This chapter dives into constructors, special functions that initialize objects upon creation, covering default and parameterized constructors with practical examples. Learn about destructors, crucial for releasing resources like dynamically allocated memory to prevent memory leaks. Finally, understand the 'this' pointer and its role in differentiating member variables and enabling method chaining for cleaner code.
How to Detect Circular Dependency in Java Modules
Oct 17, 2025.
Discover how to identify and resolve circular dependencies in Java modules, a common issue that can lead to build failures, runtime errors, and maintenance headaches. Learn to detect cycles using IDE tools or a Java-based graph algorithm with DFS. Explore practical solutions like using interfaces, creating common modules, and applying dependency inversion to achieve a cleaner, more maintainable, and scalable Java architecture. Keep your projects healthy by breaking those dependency cycles!
C# 12 Features Mastery Part 4 - Primary Constructors, Records, Pattern Matching for ASP.NET Core
Oct 15, 2025.
Master C# 12's essential features for ASP.NET Core development! Part 4 dives into primary constructors (reducing boilerplate), records (immutable data), advanced pattern matching (smarter code flow), and collection expressions (simplified collections). Learn real-world integration, performance optimization, and migration strategies for modern, efficient ASP.NET Core applications. Unlock the power of C# 12!
Sort an array using Selection Sort in DSA
Oct 14, 2025.
Learn Selection Sort, a fundamental sorting algorithm in Data Structures and Algorithms (DSA). This guide covers the algorithm's concept, step-by-step process with an example, and provides C++ and Java code implementations. Understand its time complexity, space complexity, advantages, and disadvantages. Ideal for beginners learning DSA and sorting techniques.
📝 How to Remove Duplicates from an Array in Programming
Oct 09, 2025.
Learn how to efficiently remove duplicate elements from arrays in programming using Java and Python. This guide explores three methods: using Sets (recommended for simplicity and speed), sorting (useful for in-place operations), and a brute-force approach. Understand time-space complexity tradeoffs and improve your data cleaning, search optimization, and coding skills. Master this fundamental DSA problem for interviews and real-world projects.
Integer.MAX_VALUE and Integer.MIN_VALUE in Java
Oct 09, 2025.
Unlock the secrets of Integer.MAX_VALUE and Integer.MIN_VALUE in Java! This guide explains these crucial constants, their uses in boundary checks, and how to prevent overflow/underflow errors. Learn through practical examples, including finding min/max values in arrays and handling edge cases. Plus, discover when to use long or BigInteger for even larger numbers. Master integer limits for robust Java code!
Count vowels and consonants in a String
Oct 08, 2025.
Master string manipulation by counting vowels and consonants! This fundamental exercise strengthens your understanding of character operations, loops, and conditional statements, crucial for DSA success. Explore C, C++, and Java code examples with detailed explanations. Learn to handle case sensitivity and avoid common pitfalls. Build a solid foundation for tackling more complex string problems.
How to Clone Java’s StringTokenizer in Python: A Real-Time Log Parsing Use Case
Oct 07, 2025.
Learn how to implement Java's StringTokenizer in Python for parsing real-time cloud logs. This article explores Pythonic string tokenization techniques, including building a reusable StringTokenizer clone with custom delimiters, escape character handling, and stateful iteration. Discover best practices for performance and when a stateful tokenizer is superior to Python's built-in split() method, especially in high-volume data streams. Includes complete code and unit tests.
Generate a Random Password Using Java
Oct 06, 2025.
Learn how to generate strong, random passwords in Java using Random, SecureRandom, Java 8 Streams, and UUID. This guide covers basic to cryptographically secure methods, emphasizing the importance of password security in modern applications. Discover best practices for creating robust passwords with mixed character sets and sufficient length to protect user data from unauthorized access and brute-force attacks. Enhance your application security today!
Implement Depth-First Search (DFS) Iteratively in Java
Oct 06, 2025.
Master iterative Depth-First Search (DFS) in Java! This guide provides a step-by-step implementation using stacks, offering a memory-efficient alternative to recursion. Learn to traverse graphs, solve mazes, and detect cycles without stack overflow errors. Discover the advantages of iterative DFS, common pitfalls to avoid, and real-world applications in pathfinding, topological sorting, and web crawling. Optimize your algorithms for performance and control!
Shallow Copy vs Deep Copy in Python with Examples
Oct 03, 2025.
Learn the difference between shallow copy and deep copy in Python with simple explanations, code examples, and an infographic. Test your skills with a Python challenge and earn rewards!
How Can I Sort a List of Objects by Property in Java?
Oct 03, 2025.
Learn how to sort lists of objects by property in Java using Comparable, Comparator, Lambda expressions, and the Streams API. This guide provides practical examples for sorting by different object properties like ID, name, salary, and more. Discover best practices for ascending and descending order sorting, enhancing your Java coding skills for efficient and maintainable applications. Master the art of sorting with clean, concise, and SEO-friendly code examples.
How to Handle “Array Out of Bounds” Exception in Java?
Oct 03, 2025.
Learn how to effectively handle the "Array Out of Bounds" exception in Java! This guide explains why this common error occurs when accessing array elements with invalid indices. Discover practical solutions like using array.length in loops, validating indices, and employing try-catch blocks. Plus, explore best practices to prevent this exception, including using ArrayLists for dynamic sizes. Write safer, more reliable Java code today!
🔍 How to Find the Largest Element in an Array?
Sep 30, 2025.
This beginner-friendly article breaks down the problem with clear code examples and explains the O(n) time complexity. Master array traversal, comparisons, and loops while building a strong foundation for data structures and algorithms. Discover real-world applications in leaderboard ranking, finance, and data analytics. Perfect for DSA beginners!
🔎 How to Find the Smallest Element in an Array in DSA
Sep 30, 2025.
This article covers array traversal, element comparison, and result storage. Understand the O(n) time complexity and O(1) space complexity. Includes practical C, C++, and Java code examples with pseudocode. Master this essential concept for a strong foundation in sorting, searching, and min-heap implementations.
Production Prompt Engineering: A Complete, Copy-Paste Prompt for One Real Use Case
Sep 29, 2025.
Learn how to ship prompts to production with confidence! This article provides a complete, copy-paste prompt bundle for a "Where's my order?" (WISMO) use case, including system prompt, developer contract, user template, tool orchestration, evaluators, observability, and red-team probes. Govern your prompts like APIs for reliability and trust.
Which Programming Language is Best for Learning DSA?
Sep 24, 2025.
Confused about the best programming language for learning DSA? Discover whether C++, Java, or Python is better for Data Structures and Algorithms, placements, and coding interviews in India.
Document Object and Window Object in Java Script
Sep 23, 2025.
Unlock the power of JavaScript with a deep dive into the Window and Document Objects! This article explores how these essential objects enable dynamic and interactive web pages. Learn to control the browser window, manipulate HTML content, and understand the key differences between these fundamental components of client-side JavaScript. Discover practical examples and code snippets to enhance your web development skills and create user-friendly web applications.
Best Practices for Handling Exceptions in Java
Sep 23, 2025.
Learn how to write robust and maintainable code by catching specific exceptions, avoiding swallowed errors, and using finally or try-with-resources for cleanup. Discover when to create custom exceptions and how to log errors effectively. Elevate your Java applications to production-ready status by implementing these essential techniques for a better developer and user experience.
How to Convert Recursive Algorithms to Iterative in Java
Sep 23, 2025.
Avoid StackOverflowError in Java by converting recursive algorithms to iterative solutions. Learn how to transform tail recursion into loops, simulate recursion with stacks for DFS, use dynamic programming for overlapping subproblems like Fibonacci, and leverage queues for BFS. Optimize performance and memory usage by choosing iteration over recursion when depth is a concern. This guide provides practical Java code examples for each conversion strategy, ensuring robust and efficient code.
How to Implement JWT Authentication in Java Spring Boot REST API
Sep 23, 2025.
This article provides a step-by-step implementation, covering user model creation, Spring Security configuration, JWT token generation, filter implementation, and testing. Learn how to build stateless and scalable APIs using JWT for enhanced security and efficient user authentication.
The History Object and Location Object in Java Script
Sep 04, 2025.
Explore JavaScript's History and Location objects for enhanced web navigation. The History object enables seamless browsing history management (back, forward, go), while the Location object empowers URL manipulation, redirection, and access to URL components (protocol, host, pathname).
Master Android App Development: From Beginner to Advanced with Android Studio
Aug 26, 2025.
Master Android App Development with hands-on training in Java, Kotlin, UI/UX, APIs, databases, and Google Play publishing. Build real-world apps, learn best practices, and launch your career as a skilled Android developer.
Master Software Design Patterns: Complete Course Outline (.NET & Java)
Aug 22, 2025.
Learn software design patterns from basics to advanced. Build scalable, maintainable .NET & Java applications using latest patterns.
Java Programming: Features, Applications, and Advantages
Aug 21, 2025.
Java is a versatile, object-oriented programming language known for its portability, robustness, and scalability. Widely used in web, mobile, enterprise, cloud, and big data applications, it powers reliable solutions globally.
Semantic and Mouse Events in Handling an Event
Aug 21, 2025.
Java Event Handling enables interactive GUI applications through Semantic Events (ActionEvent, ItemEvent, TextEvent) for high-level actions and Mouse Events (click, press, release) for precise low-level control.
Understanding the __init__ Method in Python
Aug 21, 2025.
The __init__ method in Python is a special method used for initializing objects when they are created from a class. It is often referred to as the constructor because it sets up the initial state of an object. In this article, we will explore what the __init__ method is, why it is important, and how to use it with practical examples.
What are the difference between a function and a method in C# ?
Aug 21, 2025.
Understanding the difference between a function and a method is crucial for every C# developer. While both perform operations and return results, their usage and context differ. In this article, we’ll explore the distinctions with examples, explain when to use each, and compare them with Java for better clarity.
Merge Two Sorted Linked Lists – Step-by-Step Guide
Aug 12, 2025.
Learn how to merge two sorted linked lists into one sorted list using an easy step-by-step approach. This beginner-friendly guide covers the definition, problem statement, iterative and recursive solutions, detailed explanations, and Java code examples.
Lowest Common Ancestor in Binary Trees: Easy and Efficient Methods
Aug 13, 2025.
Learn how to find the Lowest Common Ancestor (LCA) in a binary tree using beginner-friendly explanations, step-by-step algorithms, and efficient Java code implementations.
Is it possible to restrict Copy Link in Microsoft Meetings?
Aug 13, 2025.
Learn if Microsoft Teams allows restricting the "Copy Link" feature in meetings, explore Outlook limitations, discover workarounds, and apply best practices to enhance meeting security and prevent unauthorized link sharing.
Validate Binary Search Tree in DSA – Rules, Algorithms, and Code
Aug 13, 2025.
Learn how to validate whether a given binary tree is a valid Binary Search Tree (BST) using step-by-step logic, rules, iterative and recursive algorithms, and Java examples.
Top K Frequent Elements in an Array: Heap and Hash Map Solutions
Aug 13, 2025.
Learn how to find the Top K frequent elements in an array using detailed explanations of both Heap and Hash Map solutions, with beginner-friendly steps, examples, and Java code.
What is the Two Sum Problem in DSA.
Aug 12, 2025.
Learn the Two Sum problem from scratch with definitions, brute force and optimal solutions, Java code examples, and step-by-step explanations perfect for beginners.
What is Binary Search Algorithm and How It Works with Examples.
Aug 12, 2025.
Understand the Binary Search algorithm in depth — how it works, step-by-step process, real-world use cases, and practical Java examples. Perfect for beginners and intermediate learners in Data Structures and Algorithms.
How to Reverse a Linked List in Data Structures with Examples
Aug 12, 2025.
Learn how to reverse a linked list in data structures with step-by-step explanations, detailed breakdowns of iterative and recursive approaches, and Java code examples for beginners and intermediates.
Valid Parentheses Problem - Stack Implementation in Data Structures
Aug 12, 2025.
Learn how to solve the Valid Parentheses problem using a stack in data structures. This beginner-friendly guide explains the problem definition, logic, step-by-step solution, and Java code examples to help you master stack operations.
What is the difference between ArrayList and LinkedList in Java?
Aug 09, 2025.
Learn the in-depth differences between Java's ArrayList and LinkedList with practical code examples, performance considerations, and use-case analysis. This article will help Java developers choose the right list implementation for their needs.
How does a HashMap work internally in Java?
Aug 09, 2025.
A deep dive into how Java's HashMap works behind the scenes, including how hashing, buckets, and collision resolution work. This article also explores what happens when two keys have the same hashCode().
What is the difference between Component, Service, and Repository annotations in Spring?
Aug 08, 2025.
This article explains the differences between Component, Service, and Repository annotations in the Spring Framework. You'll learn what each one does, how they relate to Spring's component scanning and dependency injection, and when to use which one. Includes real-world examples and best practices.
What are Java Records, and how do they improve data modeling in Java?
Aug 08, 2025.
This article explores Java Records, a feature introduced in Java 14 and finalized in Java 16—and how they simplify and enhance data modeling. Learn what Records are, how they differ from traditional Java classes, their benefits in immutability, concise syntax, and real-world use cases, with clear examples.
How to Implement Pagination and Sorting in Spring Boot Using Spring Data JPA?
Aug 08, 2025.
A comprehensive guide to implementing scalable and efficient pagination and sorting mechanisms in Spring Boot applications using Spring Data JPA. Includes real-world examples, best practices, and performance optimization tips to improve your REST API responses.
To Backup Data From the tables1 and table2 in SQL Server
Aug 06, 2025.
Learn how to back up data from specific tables in SQL Server using simple SQL queries. This article covers methods like SELECT INTO, INSERT INTO, and full database backup commands to help you secure data from individual tables without performing a full database backup.
Common Pitfalls in Selenium Automation and How to Avoid Them
Aug 05, 2025.
This article highlights common Selenium automation mistakes like weak locators, hard-coded waits, and poor exception handling, offering best practices such as POM, explicit waits, and data-driven testing for robust, maintainable tests.
Cross-Browser Testing with Playwright
Aug 01, 2025.
Cross-browser testing ensures that web applications function correctly across different web browsers. It helps identify inconsistencies in layout, behavior, and performance that may arise due to browser-specific implementations.
Aspose.Email Review: A Developer’s Perspective
Jul 30, 2025.
Aspose.Email is a powerful API for .NET, Java, Python & C++ that enables email reading, writing, conversion, and parsing with support for PST, EML, IMAP, SMTP, OAuth 2.0, and more ideal for automation.
Constructors and Finalizers in Java: From Object Creation to Efficient Cleanup
Jul 28, 2025.
Constructors are called whenever an instance of a given class is created. Finalizers are used to destroy the object created using constructors. A Constructor method is a special kind of method that determines how an object is finalized when created. They have the same name as the class and do not have any return type.
Mastering Dependency Injection in .NET Core: A Complete Beginner-to-Advanced Guide
Jul 28, 2025.
Dependency Injection (DI) is a cornerstone of modern software architecture in .NET Core and beyond. It promotes loose coupling, testability, and maintainability, making applications easier to build and scale.
Real time Example of Constructor Chaining
Jul 23, 2025.
Learn how constructors work in Java, including overloading, static constructors, and constructor chaining using the `this` and `base` keywords—demonstrated with real-time examples like the `BankAccount` class.
SortedSet Interface and Iterator Interface
Jul 18, 2025.
The SortedSet interface extends the Set Interface, which I already discussed in my Previous Article. The elements of this interface are sorted in ascending order.
The Modern .NET Developer's Guide to Vibe Coding with C# 13: Flow, Features and Best Practices
Jul 14, 2025.
Discover the newest features of C# 13 with the guide Vibe Coding with C# 13 by Ziggy Rafiq - a modern developer's guide to clean, expressive, and high-performance .NET 9 coding.
Master Dockerfile Instructions: FROM, WORKDIR, COPY, RUN, EXPOSE, ENTRYPOINT
Jul 03, 2025.
A simple article to key Dockerfile instructions: FROM, WORKDIR, COPY, RUN, EXPOSE, ENTRYPOINT. Understand each with examples and a memory trick (FWCREE) to easily build and run Docker containers.
Key Performance Tuning Techniques in Android Development (2025)
Jul 01, 2025.
Optimize Android app performance with innovative UI, memory management, threading, and modern tools like Jetpack Compose, Retrofit, Room, and Firebase to ensure smooth, fast, and reliable user experiences.
Page Object Model Design Pattern: Benefits and Implementation
Jun 30, 2025.
The Page Object Model (POM) design pattern in Selenium improves test automation by separating UI structure from test logic, ensuring maintainability, reusability, readability, and scalability for growing web applications.
Move and Delete Files Like a Pro using Power Automate Desktop
Jun 28, 2025.
How to move and Delete Files Like a Pro using Power Automate Desktop
🔄 Power Automate Desktop: How to Copy the File to another location (PAD)
Jun 27, 2025.
Learn how to automate file copying in Power Automate Desktop using the “Copy file” action. This article covers single and bulk file transfers, error handling, and practical workflow tips.
Introduction to Dagger Hilt for Android Development
Jun 24, 2025.
Learn how to use Dagger Hilt in Android to simplify dependency injection, reduce boilerplate code, and build cleaner, more maintainable apps with modern architecture best practices.
Building Objects in JavaScript
Jun 18, 2025.
JavaScript is an object-based language, which does not Completely support object oriented programming concepts. It provides a mechanism by which user-defined Objects can be created.
Jetpack Compose and Its Basic Building Blocks
Jun 18, 2025.
earn the basics of Jetpack Compose, Android’s modern UI toolkit. Understand its core building blocks like Composables, Layouts, and Modifiers to create intuitive and dynamic user interfaces.
Interpolation Search Algorithm in Java
Jun 03, 2025.
Learn how Interpolation Search improves upon Binary Search for uniformly distributed, sorted arrays. Explore its working, code examples in Java, performance, use cases, and comparison with Binary Search.2/2
Modern C# in 2025: What You Should Be Using (and What to Retire)
Jun 03, 2025.
Explore the latest C# 12 and .NET 8 features in 2025, including primary constructors and required properties, while learning modern practices to write cleaner, faster, and more maintainable C# code.
Clean Code and Best Practices with C# 13
Jun 01, 2025.
Ziggy Rafiq teaches you how to create clean, maintainable, and testable C# 13 code using modern features, architecture patterns, and clean code principles.
Understanding Cycle Sort in Java
Jun 01, 2025.
The fundamental principle behind cycle sort is to place each element directly into its final sorted position. The algorithm works by counting how many elements are smaller than the current element, which determines its correct position in the sorted array.
Coil - Image Loading Library
May 26, 2025.
Coil is a fast, lightweight, and modern image-loading library for Android, built using Kotlin and backed by Coroutines. It simplifies image loading with efficient caching and minimal setup.
Typical Uses of JDBC with Architecture
May 16, 2025.
The traditional client/server model has a rich GUI on the client and a database on the server. In this model a JDBC driver is deployed on the client.
Sharing Session and Application data
Apr 21, 2025.
The request scope makes data available to multiple pages processing the same request. But in many cases, data must be shared over multiple requests.
Primary Constructors in C# 12
Apr 18, 2025.
Primary constructors in C# 12 simplify class and struct initialization by allowing parameters to be declared directly in the class signature. This new feature reduces boilerplate code, making object creation cleaner and more concise. Great for writing modern, readable C# code.
What is New in JDK 24?
Apr 18, 2025.
JDK 24 introduces preview features like unnamed variables, pattern matching for primitives, string templates, and performance boosts, enhancing Java's productivity, readability, and native integration for modern development.
Mastering the New Era of C#: Exploring Advanced Features in C# 14
Apr 15, 2025.
C# 14 represents a polished and sophisticated leap forward in the language’s maturity. C# 14 refines the language with primary constructors, collection expressions, interceptors, and performance enhancements.
C# 14: Exploring New Language Features for Modern .NET Development
Apr 02, 2025.
In this article, I explore the most important features introduced in C# 14.0, including primary constructors in classes, collection expressions, enhanced pattern matching, and required members. I walk through how each of these additions simplifies code, improves performance, and promotes safer, more expressive development.
Integrating Java with QA Automation: Selenium WebDriver Testing
Mar 28, 2025.
Java and Selenium WebDriver offer a robust foundation for QA automation, enabling scalable, maintainable, and efficient testing. Implementing best practices ensures a high-quality software delivery process.
SQL Tag Library in Java Server Page
Mar 21, 2025.
JSTL SQL tags are used to access databases and are designed for low-volume Web-based applications.? JSTL SQL tags facilitate database interactions in JSP pages, enabling data source setup, query execution, updates, and transactions through tags like <sql:setDataSource>, <sql:query>, <sql:update>, and <sql: transaction>
A Simpler Way to Initialize Objects
Mar 18, 2025.
With the release of C# 12, Primary Constructors were introduced to simplify class and struct initialization. This feature allows parameters to be declared directly in the class or struct definition, eliminating the need for boilerplate code and improving readability.
Top AI Libraries for Java Developers
Feb 25, 2025.
Java developers can enhance their applications with AI capabilities using libraries like Deeplearning4j for deep learning, Weka for data mining, MOA for data stream analysis, Spark MLlib for scalable machine learning, and Neuroph for neural network development.
Speed Testing Programming Languages
Feb 19, 2025.
How fast is the same code using different languages. In this article I used VS Code to write a loop in different languages and tested the execution speed with results.
Building a Number Guessing Game in Java
Feb 10, 2025.
Learn how to create a number guessing game in Java. This beginner-friendly project covers random number generation, user input handling, loops, and conditionals, with enhancements like difficulty levels and input validation.
Swap First and Last Rows in a Matrix Using Java with Code
Jan 28, 2025.
Learn how to interchange the first and last rows of a matrix in Java using simple loops or efficient methods like `System.arraycopy()`, complete with examples, explanations, and practical tips.
Java Program for Counting the Number of Vowels in a String
Jan 28, 2025.
This article explains how to count the number of vowels (a, e, i, o, u) in a given string using Java. It covers two approaches: a simple method using loops and conditional statements, and a more optimized approach utilizing a Set for quick vowel lookups.
Java Program to Count the Number of Even and Odd in an Array
Jan 27, 2025.
The title "Java Program to Count the Number of Even and Odd Numbers in an Array" refers to a Java program that demonstrates how to count how many numbers in an array are even and how many are odd. The article explains the concept of even and odd numbers, and provides a step-by-step guide on implementing a Java solution using simple loops and conditional statements.
The Java.NET Package
Jan 25, 2025.
The Java.NET package provides classes for implementing networking functionality in Java. It supports TCP, UDP, and HTTP protocols, enabling tasks like creating sockets, managing URLs, sending/receiving data, and handling network connections.
Java Program to Calculate Factorial Using Recursion
Jan 23, 2025.
In this article, we explore how to calculate the factorial of a number using recursion in Java. Factorial, denoted as n!, is the product of all positive integers less than or equal to a given number n.
Printing a 2D Array in Java with Code
Jan 23, 2025.
Explore methods to print a 2D array in Java, including nested loops, Arrays.deepToString(), for-each loops, and Java 8 streams, with detailed explanations and code examples for effective implementation.
Merging Two Arrays in Java with Code
Jan 22, 2025.
This article explores merging arrays in Java, covering efficient techniques like `System.arraycopy()`, manual iteration, Java Streams, and ArrayList, with code examples to suit various programming needs.
Copying All Elements of One Array to Another Array in Java with Code
Jan 21, 2025.
Learn how to copy arrays in Java using user input, iterative methods, and `System.arraycopy()`. This article demonstrates seamless duplication of entire arrays and subsets with practical examples.
Java Program to Rotate a Square Matrix by 90 Degrees
Jan 21, 2025.
Rotating a matrix by 90 degrees is a common problem in programming, often asked in coding interviews and competitions. The task involves changing the arrangement of elements in a square matrix such that the rows of the original matrix become columns in the rotated matrix, specifically in a clockwise direction.
Java 21 JUnit Testing Best Practices
Jan 21, 2025.
The best practices for JUnit testing in Java 21 by Ziggy Rafiq include leveraging new language features like record patterns and string templates. Develop maintainable and robust Java applications by leveraging test isolation, AAA patterns, and parameterized tests.
Java Program to Generate Pascal's Triangle
Jan 20, 2025.
A Java Program to Generate Pascal's Triangle creates a pattern of numbers where each number is the sum of the two numbers directly above it. The program allows the user to input the number of rows they want for the triangle.
Java Program to Check Whether a Number is a Strong Number
Jan 20, 2025.
A Strong Number, also known as a Krishnamurthy number, is a number where the sum of the factorials of its digits equals the number itself. For instance, the number 145 is considered a Strong Number because the factorial of 1 is 1 (1!), the factorial of 4 is 24 (4!), and the factorial of 5 is 120 (5!).
Sum of Fibonacci Series Up to a Number N in Java with Code
Jan 20, 2025.
This article explains how to calculate the sum of Fibonacci numbers up to a given number \( N \) in Java, with step-by-step logic, code examples, and practical implementation details.
Print Fibonacci Series in Java Using Different Methods
Jan 17, 2025.
This article explores four methods to generate the Fibonacci series in Java: iteration, recursion, dynamic programming (memoization), and Java streams, offering optimized, modern, and functional approaches for various scenarios.
Java Program to Calculate the Sum of Odd Numbers in a Given Range
Jan 17, 2025.
This topic explains how to write a Java program to calculate the sum of all odd numbers within a specified range. The program takes a user-defined start and end value, then loops through the range to identify odd numbers (numbers not divisible by 2).
Java Program to Implement Matrix Transposition
Jan 16, 2025.
Java Program to Implement Matrix Transposition involves writing a Java program that performs matrix transposition, a mathematical operation where the rows and columns of a matrix are swapped. In simpler terms, the element at position (i, j) in the original matrix moves to position (j, i) in the transposed matrix.
Java Program to Check Whether a Number is a Perfect Square
Jan 15, 2025.
The topic "Java Program to Check Whether a Number is a Perfect Square" focuses on creating a Java program that checks if a given number is a perfect square. A number is considered a perfect square if it can be expressed as the square of an integer (e.g., 16 is a perfect square because it is 4 × 4).
Java Program to Find the Average of Array Elements
Jan 14, 2025.
"Java Program to Find the Average of Array Elements" refers to a Java program that calculates the average of the numbers stored in an array. The program adds up all the elements of the array and then divides the sum by the total number of elements to get the average.
Checking Two Matrices Are Equal in Java or Not
Jan 14, 2025.
Learn how to compare two matrices in Java by implementing a `Matrix` class to handle creation, input, and comparison. This article covers object-oriented concepts, user input, and array manipulation.