Skip to content

Instantly share code, notes, and snippets.

public class App implements Runnable
{
private static long[] longArray = {0x000000A00000000Dl, 0x0000000B000000C0l};
private volatile long longValue;
public App(){
}
public static void main( String[] args )
import java.io.File;
import java.net.URL;
import java.net.URLClassLoader;
public class DynamicLibCall
{
public static void main(String[] args)
{
String libPath = "DynamicLib.jar";
File libFile = new File(libPath);
<Window WindowStyle="NONE" ResizeMode="NoResize" WindowState="Maximized" ShowInTaskbar="False" AllowsTransparency="True">
public test()
{
Console.CancelKeyPress += new ConsoleCancelEventHandler(Console_CancelKeyPress);
}
void Console_CancelKeyPress(object sender, ConsoleCancelEventArgs e)
{
// 이벤트 처리
}
public class Test
{
private final static URL SITE_LOCATION;
private final static Logger logger = Logger.getLogger(com.test.class.getName());
static {
URL url = null;
try {
URL baseUrl;
public bool IsDate(String date)
{
bool result = true;
String datePattern = @"^(19[0-9]{2}|2[0-9]{3})-(0[1-9]|1[012])-([123]0|[012][1-9]|31)$";
if(Regex.IsMatch(date, datePattern) == false)
{
result = false;
}
return result;
public interface Bark{
String GetSound();
}
public class Dog implements Bark{
@Override
public String GetSound(){
return "멍멍";
}
}
private void Sorting(List<Test> list1)
{
list1.Sort(delegate(Test test1, Test test2)
{
return test1.DocLocation.CompareTo(test2.DocLocation);
});
}
DirectoryInfo aDir = new DirectoryInfo(path);
FileInfo[] files;
if (aDir == null)
{
return false;
}
DirectoryInfo[] directories = aDir.GetDirectories();
[Serializable]
class JsonIn
{
internal string function;
internal string type;
}
[Serializable]
class JsonOut
{