print 'Hello YKazu'

('Python', 'Javascript')

Java

【GoF】Template Methodパターン

ポイント 全体のアルゴリズムを、テンプレートクラスに定義 アルゴリズムの中で呼び出される機能を、サブクラスに定義 テンプレートクラスとサブクラスは1:nの関係 AbstractDisplay.java テンプレートクラス public abstract class AbstractDisplay { // 抽…

配列

基本 // 宣言 int years[]; // 領域確保 years = new int[3]; // 初期化 years[0] = 2015; years[1] = 2017; years[2] = 2020; 宣言 + 領域確保 // 宣言 + 領域確保 int years[] = new int[3]; // 初期化 years[0] = 2015; years[1] = 2017; years[2] = 2020…

文字列の連結

public class Main { public static void main(String[] args) { String a = 'Hello'; String b = 'Yoshida'; // +で連結 System.out.println(a + ' ' + b); } }