This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class App implements Runnable | |
| { | |
| private static long[] longArray = {0x000000A00000000Dl, 0x0000000B000000C0l}; | |
| private volatile long longValue; | |
| public App(){ | |
| } | |
| public static void main( String[] args ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Window WindowStyle="NONE" ResizeMode="NoResize" WindowState="Maximized" ShowInTaskbar="False" AllowsTransparency="True"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public test() | |
| { | |
| Console.CancelKeyPress += new ConsoleCancelEventHandler(Console_CancelKeyPress); | |
| } | |
| void Console_CancelKeyPress(object sender, ConsoleCancelEventArgs e) | |
| { | |
| // 이벤트 처리 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface Bark{ | |
| String GetSound(); | |
| } | |
| public class Dog implements Bark{ | |
| @Override | |
| public String GetSound(){ | |
| return "멍멍"; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void Sorting(List<Test> list1) | |
| { | |
| list1.Sort(delegate(Test test1, Test test2) | |
| { | |
| return test1.DocLocation.CompareTo(test2.DocLocation); | |
| }); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DirectoryInfo aDir = new DirectoryInfo(path); | |
| FileInfo[] files; | |
| if (aDir == null) | |
| { | |
| return false; | |
| } | |
| DirectoryInfo[] directories = aDir.GetDirectories(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Serializable] | |
| class JsonIn | |
| { | |
| internal string function; | |
| internal string type; | |
| } | |
| [Serializable] | |
| class JsonOut | |
| { |
OlderNewer