Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private static char getType(Object object) {
        String s = object.getClass().getName();
        for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) == '[') {
                continue;
            }
            return s.charAt(i);
        }
        return 0;
    }
}