Write a Java program to find current resolution of the Screen

Java program to find current Screen Resolution : In this tutorial, we will learn how to find the Screen resolution of your system. We will use ‘java.awt’ package to calculate the values. 1. Using ‘Toolkit’ class, get the screen size Read more…

Find the most frequent element in an array using Java

Write a Java program to Find the most frequent element in an array: Most frequent element means the element that occurs most of the time in an array. To find the most frequent element, follow these steps : 1. We Read more…

Java program to find pairs with a given sum in an array

Java program to find pairs with a given sum in an array : Problem : One array is given with unsorted numbers. Find number of pairs of elements the sum of which is equal to a given value : Solution Read more…

Java 8 Tutorial : StringJoiner example

StringJoiner class in Java8 explaination with Example : ‘StringJoiner’ class was introduced in Java8 . Using this class, we can join a number of different strings easily. Two different constructs are available for ‘StringJoiner’ to instantiate it. StringJoiner(CharSequence delimiter) : Read more…

Java tutorial : Find all strong numbers in a range

Java program to check if a number is strong or not : A number is called a strong number if the sum of factorials of each digit is equal to the number. In this tutorial, we will write one java Read more…

Java Tutorial : Find closest number to a given number without a digit

Java program to find closest number to a Given number without a given digit : 1. This program will find closest number to a user given number that should not contain a user input digit. 2. Result number can be Read more…

Java program to find the number of vowels and digits in a String

Find number of vowels and digits in a String using Java: In this tutorial, we will learn how to calculate the total number of vowels and digits in a String . 1. We are using Scanner class to get the Read more…

Java program to iterate through a list using ListIterator

Iterate through a list using Listiterator in Java : We can iterate through all elements of a list using ‘Listiterator’ in Java. Main advantage of Listiterator is that you can iterate in both direction. i.e. access one by one element Read more…

Python program to sort all words of a string in alphabetical order

Write a python program to sort all words of a String in Alphabetical order : In this python programming tutorial, we will learn how to sort all words in alphabetical order. Mainly we are going to use the split method Read more…

Swift Array Tutorial – swift 3/swift 4

Swift Collection tutorial : Array : array,set and dictionary : these three collection types are available in swift. In this tutorial, we will learn about array in details. Notes : 1. Array stores values of same types 2. All values Read more…