Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/***********************************************************************************************************************
 * Copyright (c) 2008 empolis GmbH and brox IT Solutions GmbH. All rights reserved. This program and the accompanying
 * materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: Daniel Stucky (empolis GmbH) - initial API and implementation
 **********************************************************************************************************************/

public class Main {
    /**
     * Encodes and Integer.
     * 
     * @param value
     *          a int
     * @return a String
     */
    public static String encodeInteger(int value) {
        return value + "";
    }

    /**
     * Encodes and Integer.
     * 
     * @param value
     *          Integer
     * @return a String
     */
    public static String encodeInteger(Integer value) {
        return value.intValue() + "";
    }
}