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
/* | |
* Copyright (C) 2023 by Stanio <stanio AT yahoo DOT com> | |
* Released under BSD Zero Clause License: https://spdx.org/licenses/0BSD | |
*/ | |
package io.github.stanio.util; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; |
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
/* | |
* Copyright (C) 2023 by Stanio <stanio AT yahoo DOT com> | |
* Released under BSD Zero Clause License: https://spdx.org/licenses/0BSD | |
*/ | |
package io.github.stanio.batik; | |
// java.base | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.nio.file.Path; |
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 ; | |
import java.math.BigDecimal; | |
import java.util.Locale; | |
public class FloatTest { | |
// FloatConsts.SIGNIFICAND_WIDTH - 1 | |
static final int SIGNIF_SIZE = 23; |
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
/* | |
* This module, both source code and documentation, | |
* is in the Public Domain, and comes with NO WARRANTY. | |
*/ | |
package net.example.concurrent; | |
import static java.util.Objects.requireNonNull; | |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.locks.Condition; |
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
/* | |
* This module, both source code and documentation, | |
* is in the Public Domain, and comes with NO WARRANTY. | |
*/ | |
//package ; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** |
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
/* | |
* This module, both source code and documentation, | |
* is in the Public Domain, and comes with NO WARRANTY. | |
*/ | |
//package ; | |
import static javax.xml.XMLConstants.XMLNS_ATTRIBUTE; // requires java.xml | |
// requires java.base | |
import java.io.IOException; |
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 net.example.util; | |
import java.io.IOException; | |
import java.lang.reflect.Array; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Modifier; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.HashMap; | |
import java.util.HashSet; |
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 net.example.swing; | |
import java.io.Serializable; | |
import java.util.Enumeration; | |
import javax.swing.text.AttributeSet; | |
import javax.swing.text.Document; | |
import javax.swing.text.StyleConstants; | |
import javax.swing.text.View; | |
import javax.swing.text.html.CSS; | |
import javax.swing.text.html.HTMLDocument; |
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 net.example.swing; | |
import java.awt.BasicStroke; | |
import java.awt.BorderLayout; | |
import java.awt.Color; | |
import java.awt.Component; | |
import java.awt.Container; | |
import java.awt.Font; | |
import java.awt.FontMetrics; | |
import java.awt.Graphics2D; |
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 ; | |
/** | |
* @see <a href="https://ubuntuincident.wordpress.com/2012/04/25/calculating-the-average-incrementally/">Calculating the average incrementally</a> | |
*/ | |
public class Avg { | |
private double value = Double.NaN; | |
private long count; |
NewerOlder