Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.util.SparseBooleanArray;

public class Main {
    public static void swap(SparseBooleanArray booleanArray, int x, int p, boolean defaultValue) {
        boolean value = booleanArray.get(x, defaultValue);
        booleanArray.put(x, booleanArray.get(p, defaultValue));
        booleanArray.put(p, value);
    }
}