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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>CSS Fizz Buzz</title> | |
<style> | |
#main li { | |
position: relative; | |
} | |
#main li:nth-child(3n):before { |
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
package example.mdsample.java; | |
import java.io.UnsupportedEncodingException; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.Arrays; | |
import javax.xml.bind.DatatypeConverter; | |
import org.apache.commons.lang3.ArrayUtils; |
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
package example.mdsample.java; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.concurrent.Callable; | |
import java.util.concurrent.ExecutionException; | |
import java.util.concurrent.ExecutorService; |
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
package example; | |
import static org.hamcrest.core.Is.is; | |
import static org.junit.Assert.assertThat; | |
import java.util.EnumMap; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.TreeSet; |
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
public class QuizTest { | |
static class String { | |
public String(java.lang.String ignore) { | |
} | |
public boolean equals(Object anObject) { | |
return true; |
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
package janken; | |
public class じゃんけん { | |
public enum 結果 { | |
勝ち, 負け, あいこ | |
} | |
public enum 手 { | |
グー { |
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
package janken; | |
public class じゃんけん { | |
public enum 結果 { | |
あいこ, 負け, 勝ち | |
} | |
public enum 手 { | |
グー, チョキ, パー; |
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
package janken; | |
import java.util.EnumMap; | |
public class じゃんけん { | |
public enum Result { | |
あいこ, 負け, 勝ち | |
} |
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
public Result execute(Input in) { | |
checkNotNull(in, "In is null."); | |
try { | |
Integer productId = in.getSelected(); | |
checkProductId(productId); | |
List<Integer> inputCoins = in.getCoins(); | |
checkInputCoins(inputCoins); | |
Product product = dao.findById(productId); |
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
package stream; | |
import org.hamcrest.CoreMatchers; | |
import org.junit.Assert; | |
import org.junit.Test; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.function.BinaryOperator; |
OlderNewer