Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {

    private static String getLogCurrentMsg() {
        StackTraceElement[] elements = new Throwable().getStackTrace();
        return elements[3].getClassName() + " > " + elements[3].getMethodName() + " > "
                + elements[3].getLineNumber();
    }
}