' P '

whatever I will forget

Entries from 2020-02-20 to 1 day

はてなブログでコードに名前を挿入する

CSS

下記をコードの周りに挿入するだけ <div class="code-title" data-title="xxx.java"> /* code is written here */ </div>

Java Switch Statement

まー特に書くことないか?って思ってたけど一応SwitchがString型でもできるらしいのでメモしておく JDK7から使える あとは、byte, short, int, charが使えます。 public class Main { public static void main(String[] args) { char c = 'z'; switch(c) { c…