Software

1.現在日に6月足すパターン
①システム日付
SELECT SYSDATE FROM DUAL;
2019/06/20 9:46:44

②6ヶ月足す
SELECT ADD_MONTHS(SY ...

Software

1.ユーザ情報をセッションに登録
getSession().setAttribute(USER_SESSION.USER_BASIC_INFO, xxxx);

2.ユーザ情報をセッションから取得
UserB ...

Software

サンプルコード
package com.cft;

import java.sql.Timestamp;
import java.util.concurrent.ArrayBlockingQueue;

Software

サンプルコード
package com.arkgame.cft;

public class DateuuTest {

public static void main(String[] args) {

Software

サンプルコード
package com.cft;
public class Splittest {

public static void main(String arrA = cftA.split(R ...

Software

サンプルコード

package com.arkgame.cft;

public class Splittest {

public static void main(String cs = cft.s ...

Software

書き方
for var=exp1,exp2,exp3 do
<some code>
end

サンプルコード

#!/usr/local/bin/lua function f(x) p ...

Software

サンプルコード

 

a=10while( a < 15 )do print("a の値:", a) a = a+1end

実行結果
a の値:10
a の値:11
a の値:12 ...

Software

サンプルコードprint(type(true))print(type(false))print(type(nil)) if false or nil then print("at least true")else print("false ...

Python

1.removeメソッドで要素を削除
cftLst =
cftLst.remove(5)
print(cftLst)

実行結果

2.appendメソッドで要素を追加
c

Python

サンプルコード

#!/usr/bin/python3 list = cftLst = print (list) print (list) print (list) print (list) print (cftLst * 2) ...

C++

サンプルコード

#include <iostream>using namespace std; #include <iomanip>using std::setw; int main (){ int n; ...

C++

サンプルコード

#include <stdio.h>void reverseSentence(); int main(){ printf("文字列を入力してください: "); reverseSentence(); r ...

C++

サンプルコード

#include <stdio.h> int main(){ FILE *fp = NULL; char buff; fp = fopen("/tmp/test.txt", "r"); fscanf( ...

C++

サンプルコード

#include <stdio.h> int main(){ FILE *fp = NULL; fp = fopen("/tmp/demo.txt", "w+"); fprintf(fp, "This ...

C++

サンプルコード

#include <stdio.h> int main(){ char c; for(c = 'A'; c <= 'Z'; ++c) printf("%c ", c); return 0;}

C++

サンプルコード

#include <stdio.h> int main() { int array = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}; int loop, largest; large ...

C++

サンプルコード

#include <stdio.h>#include <string.h> union Data{ int i; float f; char str;}; int main( ){ uni ...