Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.Log;

public class Main {
    /**
     * Log TAG
     */
    private static final String TAG = "ExceptionUtils";

    /**
     * This method make a crash.
     */
    public static void crash() {
        String str = "";
        int n = 5 / str.length();
        Log.d(TAG, "n=" + n);
    }
}