Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import java.util.HashMap;

import java.util.Map;

public class Main {
    @SuppressWarnings({ "rawtypes", "unchecked" })
    public static Map extractHitPointFromRect(Map rect) {
        Map hitPoint = new HashMap();
        hitPoint.put("x", rect.get("center_x"));
        hitPoint.put("y", rect.get("center_y"));
        return hitPoint;
    }
}