Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.HashMap;

public class Main {
    public static HashMap<String, String> valueOf(String classpathAsString) {
        HashMap<String, String> variables = new HashMap<String, String>();
        String[] strings = classpathAsString.split("=");
        for (int i = 0, j = 1; j <= strings.length - 1; i++, j++) {
            variables.put(strings[i], strings[j]);
        }
        return variables;
    }
}