Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private final static String CLASS_NAME = "android.bluetooth.BluetoothPan";
    private static Class<?> bluetoothPan;

    public static Class<?> getKlass() {
        if (bluetoothPan == null) {
            try {
                bluetoothPan = Class.forName(CLASS_NAME);
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
            }
        }

        return bluetoothPan;
    }
}