Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.SparseArray;

public class Main {
    private static void clearSparseArray(SparseArray<?> spArray) {
        if (spArray != null) {
            int size = spArray.size();
            for (int i = 0; i < size; i++) {
                spArray.setValueAt(i, null);
            }
        }
    }
}