• 06 November

    Android Hello world example using Android Studio

    In previous post, we have setup android studio and SDK. In this post, we will create Android hello world app. Once you are done with Android studio download and installation, you will see below screen. Click on “Start a new Android studio project”. You will see below screen. Application Name : You need to provide […]

  • 06 November

    Android development tutorial : Installing Android Studio and SDK

    In this post, we will see how to install android studio and get started with android development. I will provide guidelines to install android studio on Mac OS but it will be very much similar in case of windows or linux too. We will divide this post into three parts. Setting up java JDK Downloading […]

  • 25 October

    Find Smallest and Largest Element in an Array in Java

    If you want to practice data structure and algorithm programs, you can go through 100+ java coding interview questions. In this post, we will see how to find smallest and largest element in an array. 1. Introduction to Problem Let’s say we have an array of numbers. [crayon-678391838abde630889645/] Our goal is to find out smallest and […]

  • 23 October

    OCAJP – Practice Questions for Static Keyword

    I have started writing about the Java Certifications and how to prepare for the various topics related to OCAJP exams in my blog. In my previous post, I have published how to handle exceptions and few sample mock questions for StringBuilder class. In this post I am going to explain write down few more practice […]

  • 22 October

    Trie data structure in java

    If you want to practice data structure and algorithm programs, you can go through 100+ java coding interview questions. In this post, we will see about trie data structure in java. What is Trie : Trie is data structure which stores data in such a way that it can be retrieved faster and improve the performance. […]

  • 21 October

    How to convert Byte Array to String in java

    Sometimes, we may need to convert String to bytes Array but how to convert bytes array to String back. toString method does not work correctly here as it just print bytes in String format. You can use String’s constructor to get String back. Example: [crayon-678391838b0d3041265520/] When you run above program, you will get below output: […]

  • 19 October

    Exception handling in java

    Exceptions I have started writing about the and how to prepare for the various topics related to OCAJP exams in my blog. In my previous post, I have published few sample mock questions for StringBuilder class. In this post I am going to explain about the another OCAJP exam objective “Differentiate among checked exceptions, unchecked […]

  • 15 October

    Largest sum contiguous subarray

    If you want to practice data structure and algorithm programs, you can go through 100+ java coding interview questions. Problem: From Wikipedia : In computer science, the Largest sum contiguous subarray is the task of finding the contiguous subarray within a one-dimensional array of numbers which has the largest sum. For example, for the sequence of […]

  • 15 October

    Kadane ‘s Algorithm in java

    If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. Kadane algorithm is a famous algorithm to solve maximum subarray problem. Maximum subArray problem: From Wikipedia : In computer science, the maximum subarray problem is the task of finding the contiguous subarray within a one-dimensional array of numbers […]