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 String stringArrayJoining() { | |
char[] dest = new char[18000]; | |
dest[0]= '['; | |
int destOffset = 1; | |
for (int i = 0; i < strarray.length; ++i) { | |
if (i != 0) { | |
dest[destOffset] = ']'; | |
destOffset++; |
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.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
import java.util.stream.IntStream; | |
public class Example { | |
static class LessonClass { |
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
ResourceBundle.Control control = new ResourceBundle.Control() { | |
@Override | |
public ResourceBundle newBundle(String baseName, Locale locale, String format, | |
ClassLoader loader, boolean reload) | |
throws IllegalAccessException, InstantiationException, IOException { | |
String bundleName = toBundleName(baseName, locale); | |
ResourceBundle bundle = null; | |
if (format.equals("java.properties")) { | |
final String resourceName = toResourceName(bundleName, "properties"); | |
final ClassLoader classLoader = loader; |
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 javafx.beans.property.IntegerProperty; | |
import javafx.beans.property.ObjectProperty; | |
import javafx.beans.property.SimpleIntegerProperty; | |
import javafx.beans.property.SimpleObjectProperty; | |
public class Album { | |
private ObjectProperty<String> title = new SimpleObjectProperty<>(); | |
private ObjectProperty<String> artist = new SimpleObjectProperty<>(); |
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
/* | |
* Java Embedded Raspberry Pi GPIO app | |
* エルチカ♪ | |
* * 用意するもの | |
* ジャンパーケーブル(オス×メス:2本) | |
* LED(RED 3.3v) | |
* 抵抗 470Ω(黄・紫・茶・金) | |
*/ | |
import java.io.File; | |
import java.io.FileWriter; |
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
/* | |
* Java Embedded Raspberry Pi GPIO app | |
* スイッチポチポチ♪ | |
* 用意するもの | |
* ジャンパーケーブル(オス×メス:2本、オス×オス:1本) | |
* タクトスイッチ(モーメンタリ) | |
* 抵抗 10kΩ(茶・黒・橙・金) | |
*/ | |
import java.io.File; | |
import java.io.FileWriter; |
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.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.List; | |
import javafx.application.Application; | |
import javafx.beans.property.StringProperty; | |
import javafx.concurrent.Service; | |
import javafx.concurrent.Task; |
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.function.IntConsumer; | |
import java.util.stream.IntStream; | |
public class Sum { | |
private static final int SIZE = 1_000_000; | |
public Sum() { | |
evaluate("sum000", i -> sum000()); |
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 javafx.application.Application; | |
import javafx.scene.Scene; | |
import javafx.scene.layout.StackPane; | |
import javafx.scene.paint.Color; | |
import javafx.scene.shape.Circle; | |
import javafx.stage.Stage; | |
public class CircleDemo extends Application { | |
@Override |
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 irofdrawingsong; | |
import javafx.animation.KeyFrame; | |
import javafx.animation.KeyValue; | |
import javafx.animation.Timeline; | |
import javafx.application.Application; | |
import javafx.event.ActionEvent; | |
import javafx.event.EventHandler; | |
import javafx.scene.Group; | |
import javafx.scene.Scene; |
OlderNewer