This file contains 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
<bugInfo> | |
<bugs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<bug id="20033733"> | |
<UId>FlexibleDataType-8548a492-5ffc-4b4d-8223-086ad9dc1770</UId> | |
<description>PART IMC HIT ORA 600 [KGL-HEAP-SIZE-EXCEEDED]</description> | |
</bug> | |
</bugs> | |
</bugInfo> | |
<bugInfo> | |
<bugs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
This file contains 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 CloseableTest implements AutoCloseable { | |
public static void main(String[] args) { | |
try (CloseableTest test = new CloseableTest()) { | |
test.throwException();; | |
} catch (Exception e) { | |
System.out.println("catch exception"); | |
System.out.println(e.getSuppressed()[0]); //close()メソッドの中で投げられた例外にcatch句でアクセスができる。 | |
} |
This file contains 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.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.ThreadFactory; | |
public class UncaughtExceptionHandlerSample { | |
public static void main(String[] args) throws NoSuchFieldException, InterruptedException { | |
//Threadに設定する場合 |
This file contains 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
package test; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import static java.nio.charset.StandardCharsets.*; |
This file contains 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
package test; | |
import java.io.BufferedWriter; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStreamWriter; | |
import static java.nio.charset.StandardCharsets.*; | |
public class CreateFile { |
This file contains 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
//source | |
public static void main(String... args) { | |
String str = ""; | |
for(int i = 0;i < 100; i++) { | |
str += "hoge"; | |
} | |
} | |
//decompile |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>JavaEEMaven</groupId> | |
<artifactId>JavaEEMaven</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>war</packaging> |
This file contains 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 CharSetMain { | |
public static void main(String[] args) { | |
for (Charset cs : Charset.availableCharsets().values()) { | |
System.out.println(charsetToString(cs)); | |
} | |
} | |
private static String charsetToString(Charset cs) { | |
return cs.name() + aliasesToString(cs); | |
} |
This file contains 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
/** | |
* | |
* @author megascus | |
*/ | |
public class JoJo { | |
public static void main(String[] args) { | |
for (int i = 1; i <= 100; i++) System.out.println(isPrime(i) ? "JoJo" : i); | |
} |
This file contains 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
/** | |
* | |
* @author megascus | |
*/ | |
public class JoJo { | |
public static void main(String[] args) { | |
for (int i = 1; i <= 100; i++) { | |
System.out.println(isPrime(i) ? "JoJo" : i); | |
} |
NewerOlder