Java tutorial
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { public static String getClassFile(String name) { StringBuffer sb = new StringBuffer(name); name = name.replace('.', File.separatorChar) + ".class"; sb.append(File.separator + name); return sb.toString(); } }