Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.lang.reflect.Field;

public class Main {
    public static void main(String args[]) throws Exception {
        Class c = Class.forName("java.awt.Dimension");

        Field fields[] = c.getFields();
        for (int i = 0; i < fields.length; i++) {
            System.out.println(fields[i].hashCode());
        }
    }
}