「java」java.util.regex.Pattern.MULTILINEクラスを使うサンプルコード
説明
public static final int MULTILINE
複数行モードを有効にします。
javaコード
package com.arkgame.study;
import ...
「Windows11」デスクトップの背景を変更する方法
環境
Windows 11
操作方法
1.「スタート」ボタン->「設定」をクリックします。
2.「設定」画面で左メニュー「個人用設定」->「背景」をクリックします。
3. ...
「Java入門」ZIPファイルをリストに変換するサンプル
Javaコード
ZipFile zip = null;
zip = new ZipFile(“example.zip”);
Enumeration<? extends ZipEnt ...
「php」正規表現式で数値と英字の桁数を指定するサンプル
書式
/^{4}$/
使用例
「Swift5」クラスに引数なし、戻り値なしメソッドのサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Target: x86_64-unknown-linux-gnu
書式
class クラス名 {
f ...
Faenza 1.3.1のダウンロード
ダウンロード:
提供元サイトからダウンロード
sudo add-apt-repository ppa:tiheum/equinox
sudo apt-get update && sudo ...
「TypeScript」keyof演算子のサンプル
書式
type クラス名 = {
メンバー変数名1:データの型;
メンバー変数名2:データの型;
};
type 変数名 = keyof クラス名
型コンテキストで keyof演算子 を ...
PostgreSQL 13にロールの名前を変更する
環境
Windows10 64 bit
PostgreSQL 13.2
書式
ALTER ROLE ロール名 RENAME TO 新しいロール名
使用例
1.「test00」ロー ...
「jQUery入門」location.reload()の使い方
jQuery
$(‘#iframeid_cft’).contentDocument.location.reload(true);
Javascript
document.getEle ...
QuartzDesk 1.1.1 のダウンロード
ダウンロード:
提供元サイトからダウンロード
QuartzDesk is a multiplatform self-hosted Java/J2EE web-application for the manageme ...
Windows11にモビリティ センターから画面の明るさを変更する
環境
Windows 11
操作方法
1.「スタート」を右クリックします。
2.画面の「モビリティ センター」をクリックします。
3.「Windowsモビリティ センター」の画面が表 ...
「Swift5」ジェネリクスクラスを使うサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Target: x86_64-unknown-linux-gnu
書式
class クラス名<T> ...「Java入門」java.time.LocalDate.plusとjava.time.LocalDate.minusのサンプル
サンプルコード:
package procft;
import java.time.LocalDate;
import java.time.Period;
public class LocalDat ...
twcbackup 1.0.1 のダウンロード
ダウンロード:
提供元サイトからダウンロード
twcbackup is usually run automatically (from cron) every night to generate a backup ...
Ubuntu 21.10にBleachbitをインストールする
環境
# cat/etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.10
DISTRIB_CODENAME=impish
DISTRIB_ ...
Vrapper 0.34.0 のダウンロード
ダウンロード:
提供元サイトからダウンロード
Vrapper is an eclipse plugin which acts as a wrapper for eclipse text editors to pro ...
「Java」PatternとMatcherで半角英小文字を判断する
構文
1.public static Pattern compile(String regex)
指定された正規表現をパターンにコンパイルします。
2.public Matcher matcher(CharSe ...
MariaDBで現在使っているDB名を取得する
環境
windows 10 64 bit
MariaDB 10.6.4
書式
SELECT database();
使用例
MariaDB > use testdb;Databa ...