Jagged arrays are two-dimensional arrays. You can think like each element of these arrays have elements of type Array, i.e. it holds different arrays. The size of these array-elements is different. It is not required that all elements should have the same sized array.
ReadIn this Java programming tutorial, we will learn how to remove all vowels from a user input string. We will learn two different ways to solve this problem. The program will first ask the user to enter a string. After that it will remove all the vowels from the string using two different methods and print out the final string.
ReadIn this Java programming tutorial, we will learn how to find a missing number in an array of continuous numbers.The numbers in the array will be shuffled.For example, for the numbers 1,2,3,5, we know that 4 is missing. Our program will find out this value. In the example below, we will try two different approaches - one to find out one single missing number and the second one to find out multiple missing numbers. Let's take a look at the examples below :.
ReadIn this Java programming tutorial, we will learn how to merge two integer arrays . The program will ask the user to enter values for the first and the second array and then it will calculate the final result by merging both the arrays. Let's take a look at the program :.
ReadIn this Java programming tutorial, we will learn how to find the maximum value between two BigInteger values. BigInteger has one inbuilt method max() that will find out the maximum value between two values. The declaration of this method is as below :.
ReadIn this Java programming tutorial, we will learn how to sort a list . The program will sort the list and print it out again .
ReadIn this Java program, we will learn how to find one substring in a string. The user will first enter the string and then he will enter the substring . Our program will check if it exist in the string or not. If yes, it will print the index of the substring. Let's take a look at the program first :.
ReadIn this Java programming tutorial, we will learn how to extract a substring from a user given string. The program will ask the user to enter a string and first and the second index of the substring. Then it will print out the substring of that string. Let's take a look at the program :.
ReadIn this Java tutorial, we will learn how to use contentEquals() method to compare two strings. The syntax of contentEquals() method is as below :.
ReadIn this tutorial, we will learn how to solve a common interview question known as 3SUM problem. The problem is one array is given and you have to find three numbers the sum of which is 0. For example, for the array (1,2,3,-4), the sum of 1,3 and -4 is 0. So it will print these three numbers.
Read