Java String Array Iterator Example

Problem Given the signature of the Java method below public static Iterator iterateStrings(String… strings) 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 …

Read more »

Java Generic Cache Implementation

Problem Given the cache interface below //Generic Cache Interface public interface Cache<K, V> { public void put(K key, V value); public V get(K key); } We want to implement a generic cache class in order to improve compile time type …

Read more »

Java Singleton Cache Example

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 //Generic Cache Interface public interface Cache<K, V> { public void put(K key, V value); public V get(K …

Read more »

Unity Android IAP

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 …

Read more »

Python Unittest Example

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: <account ID><billing ID><Sign-up Date in MM-DD-YYYY format> Write a python script to print: All accounts …

Read more »

Sorting Algorithms Explained by Examples

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 …

Read more »

Difference Between User Level Threads and Kernel Level Threads

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 …

Read more »

Page 3 of 2912345...1020...Last »