Problem Given the signature of the Java method below Provide implementation that iterates through each string in the order that they are provided but it skips null values Solution We implement the Iterable interface. We add a class member variable to store the list values in an array of strings. We override hasNext, next and
Problem Given the cache interface below We want to implement a generic cache class in order to improve compile time type checking. Solution Using Java Generics one can provide variable types as parameters for compile time type checking. In this case we are going to use K for key and V for value as follows
Problem Given the Java cache interface below, write a singleton class that implements the interface so that no warnings are generated without using @SuppressWarnings annotations Solution The question is mainly about two points: Type checking warning must be fixed Singleton design pattern should be implemented here is how I approached the problem… I modified the map private
1. Introduction This guide tries to explain the following How to deploy Unity IAP demo app to a physical Android device How to publish the demo app to Google Play Developer Console How to validate IAP integration from both store front and Unity analytics sides You can use this guide as an Android In-App Purchase
Some time ago, I applied for a software QA position and was given this assignment: Problem Given 2 input files with rows in the format: Write a python script to print: All accounts in the first file not in the second All accounts in the second file not in first All accounts in both files
Introduction Today, I am going to dive into the awesome world of sorting. It reminds me with entry level computer science courses and algorithm design. The goal of this article is to summarize popular sorting algorithms and put it in one place so that it is easy to remember and refer to. My intention is
Introduction Before we start, I recommend that you read this post first. It talks about concurrency in operating systems and clarifies the main difference between multitasking, multithreading, multiprogramming and multiprocessing. If you are done, let us proceed and define some relevant terms so that things are put into perspective. In this article, I am targeting
System Call In order to better understand the difference between different call types, let us set some context for discussion. We are referring here to modern operating system (OS) design concepts. So, what are the main goals of having an OS in the first place ? Well, the OS achieves two primary goals for users.
Introduction I started to get paranoid due to the rise of online security threats. Going offline is not a practical solution in the world of “Internet of things”. The fact that the average individual is not often under attack must not be taken for granted. Not staying safe online should keep each one of us awake
Introduction I can easily assume that the majority of software engineers are not computer security experts, however; I think there should be no excuse for the average software engineer not to get familiar with basic concepts. For instance, if you were asked: “what is SSL?” I guess it is either you do not know the