Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Print all permutations with repetition of characters in C++
In this problem, we are given a string of n characters and we have to print all permutations of characters of the string. Repeating of characters of the string is allowed. The printing of permutation should be done in alphabetical order (lexicographically sorted order).Let’s take an example to understand the topic better :Input − XYOutput − XX, XY, YX, YYTo solve this problem, we need to use fix and recur logic. Here, we will fix one element at first index of the array and then recursively call for the next elements in the sequence.Let’s see an implementation example which will ...
Read MorePreconditions - Java
Precondition to check if the list passed as parameter is empty or not. Let us see an example −Examplepublic void my_fun(List myList){ if (myList == null){ throw new IllegalArgumentException("List is null"); } if (myList.isEmpty()){ throw new IllegalArgumentException("List is empty"); } my_fun(myList); }A void function named ‘my_fun’ is defined that takes a list of objects as its parameters. If the list is null, it prints the relevant message. If the list has no elements in it, a specific message is displayed. The function is called by passing the list as ...
Read MoreChrome 45 is here!
When Google Chrome broke out on our computer screens, it created a new way to see the internet. It was fast, stable, secure and had beautiful themes. It added tabs and also went undercover for us in the incognito mode, it protected us by automatically blocking malicious websites as well.The new Chrome 45 is fierce fighter equipped with silver bullets in all its cylinder chambers, and boy, does it come out all guns blazing!Automatically pauses Flash contentAuto-playing Flash ads consume a lot of battery power as they require substantial processing power to run. And they slow down the web page ...
Read MoreConfigure and send emails in WordPress
Looking at the popularity and significance of a website one may has now decided to create his own 5-7 page business website. With that we shall need web pages for our business location map as well as a contact page and an official email id. There are various ways through which we can create a contact-us form so that it’s easier for clients to directly contact us through visiting our website page.For that first we need to setup our official email-id with our WordPress website. After that configuring that email-id will take us further in sending and receiving an email. ...
Read MoreJava program to List all files in a directory and nested sub-directory - Recursive approach
To list all files in a directory and nested sub-directory, the Java program is as follows −Exampleimport java.io.File; public class Demo{ static void print_recursively(File[] my_arr, int my_index, int sub_level){ if(my_index == my_arr.length) return; for (int i = 0; i < sub_level; i++) System.out.print("\t"); if(my_arr[my_index].isFile()) System.out.println(my_arr[my_index].getName()); else if(my_arr[my_index].isDirectory()){ System.out.println("[" + my_arr[my_index].getName() + "]"); print_recursively(my_arr[my_index].listFiles(), 0, sub_level + 1); } ...
Read MoreHow to implement DoubleConsumer using lambda expression in Java?
DoubleConsumer is a functional interface from java.util.function package. This functional interface accepts a single double-valued argument as input and produces no output. This interface can be used as an assignment target for a lambda expression or method reference. DoubleConsumer contains one abstract method: accept() and one default method: andThen().Syntax@FunctionalInterface public interface DoubleConsumer { void accept(double value); }Example-1import java.util.function.DoubleConsumer; public class DoubleConsumerLambdaTest1 { public static void main(String args[]) { DoubleConsumer increment = doubleVal -> { // lambda expression ...
Read MoreAmazing images that capture you
Many times a day we see images around us, but not all lure our attention towards them. But some do, they entice us, they teach us something new, they change our perspective and they draw us into a new world of beauty. We have a set of images here, that take you on a new journey, and make you see things that aren’t visible, things that you never knew existed, and things that one would have assumed impossible to create.The InvisibleGalaxy’s Magnetic Field − When you see it the first time, it makes no sense at all. This iconic image ...
Read More5 tips for balcony gardening
Who says living in an apartment building is to go without the joy of gardening. You can have beautiful flowers, veggies and fragrant plants in your balcony. In fact, choosing fragrant and insect repellent plants can make your home smell heavenly, look beautiful, lively and pest free.Balcony gardening depends primarily on the capacity of the balcony and exposure to sun light. This would mean you need to make the right choice for your pots and plants. And these right choices of décor adds a lot of beauty, style and freshness to your very own balcony garden.Tip 1 − Judge Balcony ...
Read More6 Must Have Apps for your Smart Phone
In today’s digital world, we can access just anything and everything, from our small handy buddy, our mobile smartphone. Our little handy phone has become our calendar, reminder, alarm clock, radio, music player, scheduler, phone book, bookstore, movie theater, gaming arcade, portable drive and many more roles it has adapted. With so many roles to play, it is difficult to decide how to accommodate everything in the limited memory space the smartphones have.With the rise of the usage of the cell phones, the number of apps available in play store is ever increasing. Everyday, thousands of apps make it to ...
Read MoreAcquiring Resources – Best Practices!
Many project managers know the pain of getting right resources at right time. And, when the necessity is for bulk requirements, then the problem increases to manifolds. Even on some occasions, due to resource crunch, the project gets delayed, and managers have to face the music from the customers. So, it is important to give appropriate attention to resource planning by accurately assessing the project’s scope to estimate the number of resources required to complete the work.Though, many companies have dedicated resource pools which provide an opportunity to directly acquire the required resources from there. But that may not be ...
Read More