Android Realm Database Tutorial

This is android realm database tutorial. Realm is an open source database that can be used to store data locally in android. It is used by over 100k developers and is a good alternative of SQLite. In this tutorial I will teach you how to use realm database in android. Android Realm Database Tutorial Installation… Read More »

How to Generate Random Number in C and C++?

Here you will get program and learn how to generate random number in C and C++. We can use rand() function to generate random number. It is defined in stdlib.h header file. It generates a random number between 0 and RAND_MAX (both inclusive). Here RAND_MAX is a constant whose value depends upon the compiler you are… Read More »

Android Stopwatch Example Using Chronometer

Here you will get android stopwatch example. In this android tutorial I will guide you to make a simple stopwatch example using Chronometer. In android we can use Chronometer class to display a simple timer. Also Read: Simple Notepad App Android Example Android Stopwatch Example Using Chronometer Create a new android project with package name com.androidstopwatch Now… Read More »

Advantages and Disadvantages of Linked List

Here you will learn about advantages and disadvantages of linked list. It is a data structure in which elements are linked using pointers. A node represents an element in linked list which have some data and a pointer pointing to next node. Its structure looks like as shown in below image. There are various merits… Read More »

Category: DSA

Permutation of String in C and C++

Here you will get program for permutation of string in C and C++. Permutation means all possible arrangements of given set of numbers or characters. For a string with n characters can have total n! arrangements. Take below example. Here we are using backtracking method to find the permutation of a string. Watch below video… Read More »

Caesar Cipher in C and C++ [Encryption & Decryption]

Get program for caesar cipher in C and C++ for encryption and decryption. What is Caesar Cipher? It is one of the simplest encryption technique in which each character in plain text is replaced by a character some fixed number of positions down to it. For example, if key is 3 then we have to replace… Read More »

Difference between Static and Dynamic Websites

Here you will learn about difference between static and dynamic websites i.e static vs dynamic web pages. We know there are many types of websites, but on a basic scale they are divided into two kinds viz. static and dynamic websites. What are Static Websites? A static web page is a web page that is… Read More »

Android SOAP Client Example Using ksoap2

In this tutorial you will learn to make an android soap client using ksoap2 library. Prerequisites We need ksop2 library. You can download its jar easily by searching on google. A soap web service running on server. Also Read: Android Restful Web Service Client Example In this example we will create android client that will consume… Read More »

Optimal Page Replacement Algorithm in C

Here you will get program for optimal page replacement algorithm in C. Optimal page replacement algorithm says that if page fault occurs then that page should be removed that will not be used for maximum time in future. It is also known as clairvoyant replacement algorithm or Bélády’s optimal page replacement policy. Also Read: LRU Page Replacement Algorithm… Read More »

12 Best Paying Countries for Java Professionals

Here you will know about some best paying countries for java professionals, programmers or developers. If you have just passed out of college, then you know that Java is popularly used in programming. It is also widely accepted among companies looking to recruit individuals with Java knowledge on board. Not only do companies look for… Read More »

LRU Page Replacement Algorithm in C

Here you will get program for lru page replacement algorithm in C. Least Recently Used (LRU) page replacement algorithm works on the concept that the pages that are heavily used in previous instructions are likely to be used heavily in next instructions. And the page that are used very less are likely to be used… Read More »

15 Most Common Bad Programming Practices

Here are some most common bad programming practices that every programmer should avoid to become a better programmer. Also Read: 5 Tips to Become a Better Programmer 1. Giving up too soon Most of the programmers give up when they are very close to solution. So never lose hope and keep trying, you will definitely find… Read More »