//package com.nowjava;
import java.net.URL;
/**
from
* n o w j a v a . c o m
**/
public class Main {
public static void main(String[] argv) throws Exception {
String name = "nowjava.com";
System.out.println(loadResource(name));
}
/**
* Loads a resource from the context class loader or, if that fails, from
* the default class loader.
*
* @param name
* is the name of the resource to load.
* @return a <code>URL</code> object.
*/
public static URL loadResource(final String name) {
try {
return Thread.currentThread().getContextClassLoader()
/**
来自 N o w J a v a . c o m**/
/**代码未完, 请加载全部代码(NowJava.com).**/
本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。