This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
def choice(doors): | |
return doors[random.randrange(len(doors))] | |
def trial(change, times): | |
doors = "A B C".split(' ') | |
match = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
class SyainClass { | |
private int syainNo; | |
private String syainName; | |
public SyainClass(int syainNo, String syainName){ | |
this.syainNo = syainNo; | |
this.syainName = syainName; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from http://b.0218.jp/20121227183142.html | |
// http://javatechnology.net/java/html-sanitizing/ | |
public class Sanitize { | |
public static String sanitizing(String str){ | |
if( str == null || str.equals("") ){ | |
return str; | |
} | |
// javaでメソッドチェインの使用はどうか |
NewerOlder