Debian 11

環境情報
osバージョンを確認します
# cat/etc/debian_version
11.2
操作方法
1.リスト最新化を行います
# apt update

2. システ ...

Kotlin

構文
if (変数 >値)
if (変数 ==値)
if (変数 <値)
サンプルコード

fun main(args: Array<String>) { var x = 1 ...

CentOS8

環境
# cat/etc/redhat-release
CentOS Linux release 8.5.2111

操作方法
1.Node.js のインストール場所を確認します

# which ...

PHP

関数
in_array(mixed $needle, array $haystack, bool $strict = false): bool
引数
needle 探す値
haystack 配列 ...

C#

サンプル

using System;namespace MyApplication{ class Program { static void Main(string cft = {"A001", "B002", "C003", ...

Kotlin

サンプルコード

fun main(args: Array<String>) { val sumLambda: (Int, Int) -> Int = {x,y -> x+y} println(sumLam ...

Mac OS X

1.httpd.confを設定
$ sudo vi/etc/apache2/httpd.conf
下記の行のコメントを外す
# Virtual hosts
Include/private/etc/apa ...

JavaScript

説明
window.onload = funcRef;
funcRef : load イベント発生時に呼び出す関数への参照または関数式
JSPコード

window.onload = function(){ ...

shellscript

書式
while
do 処理コード done
使用例

#!/bin/shx=11while do echo $x x=`expr $x + 1`done

実行結果
$ sh test06.sh ...

Python

構文
タプル1 +タプル2
サンプルコード
# coding: utf-8

cftA = (“T01″,”T02″,”T03” ...

Java

構文
equest.getSession().getAttribute(xxx)
サンプルコード
LoginInfo loginInfo = (LoginInfo) request.getSession().g ...

Kotlin

構文
DateTimeFormatter.ofPattern(xxx)
サンプルコード
val cft = LocalDate.parse(“2020-11-04”)
val f ...

JavaScript

書式
const 変数名 = document.getElementById(セレクタid);
変数名.value
使用例

<!DOCTYPE html><html><bod ...

CentOS8

環境
# cat/etc/redhat-release
CentOS Linux release 8.5.2111

インストールの方法
1.AdoptOpenJDK用のリポジトリを追加します

jQuery

環境
jQuery3.6.0
Google Chrome 98.0.4758.102

書式
//id=”oosaka”の要素を削除
$(“div̶ ...

VB.net

書式
1.DataTableコンストラクター
DataTable(String)
指定したテーブル名を使用して DataTable クラスの新しいインスタンスを初期化します。

2.DataRow ク ...

CentOS8

環境
# cat/etc/redhat-release
CentOS Linux release 8.5.2111

インストールの方法
1.httpd をインストールします
# dnf -y ...

Java

サンプルコード

package com.arkgame;import java.util.ArrayList;import java.util.Collections;import java.util.List;public c ...