Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/**
 * @(#)Helpers.java   8.0.1 2011-6-5
 *
 * Copyright 2004-2011 mymmsc.org (MyMMSC), Inc. All rights reserved.
 * MyMMSC PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

import java.util.HashMap;

public class Main {
    private static HashMap<String, Integer> hmPages = new HashMap<String, Integer>();

    public static int getCurrentPage(String key) {
        int currentPage = 1;
        Integer v = hmPages.get(key);
        if (v != null) {
            currentPage = v.intValue();
        }
        return currentPage;
    }
}