Java tutorial
//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; } }