Java Two Dimensional String Array Iterator

Problem Given the signature of the method below. It receives a two dimensional array of strings. Provide implementation that iterates through each string in each sub-array in the order they are provided but it skips null values public static Iterator …

Read more »

Java String Array of Iterators

Problem Given the Java method signature below. It receives an array of string iterators. The method should return a single string iterator that chains all iterators in order skipping null values public static Iterator iterateStrings(List<Iterator> stringIterators) Solution We wrap the …

Read more »

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 »

Unity3d Android In-App Purchase (IAP) Integration and Testing

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 Unit Test 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 »

Page 1 of 2812345...1020...Last »