Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
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.
JDesktopPane in Java Swing enables a Multiple Document Interface (MDI) by managing multiple JInternalFrames. With a custom DesktopManager, developers can control window actions like dragging, closing, and activation.
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
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.
EJB QL is a query language used to query enterprise beans and their relationships, supporting string and arithmetic functions, with syntax defined using Backus-Naur Form (BNF) for structured query creation.
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.
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.
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.
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.
This article explains the print() and println() methods in Java. When using Java println( ), the output is displayed with the cursor in the next line. In case of Java print( ), the output is displayed with cursor in the same line.
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.
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.
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 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.
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.
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.
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.
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.
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.
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.
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.
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.
Learn how to write a Java program that checks whether a number is a Strong (Krishnamurthy) Number by summing the factorials of its digits.
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.
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 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.
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).
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.
"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.
Learn to sort arrays in Java using built-in methods like `Arrays.sort()` for ascending order and `Arrays.sort()` with `Collections.reverseOrder()` for descending order, complete with examples and explanations.
Everything on Java, not only its articles: the Java page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article