This file contains hidden or 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.regex.*; | |
| public class Calc { | |
| public static void main(String[] args) { | |
| char[] charArray; | |
| charArray = new char[10]; | |
| charArray[0] = '1'; |
This file contains hidden or 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.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| import java.io.IOException; | |
| import java.util.HashSet; | |
| import java.util.InputMismatchException; | |
| import java.lang.StringBuffer; | |
| /** | |
| *HitAndBlowは、四桁の重複しない数字列を解答とし、その値を予測するゲームである。 | |
| *任意の数字と解答の数字が桁まで一致してる場合をヒット、 |
This file contains hidden or 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
| int incomingByte = 0; | |
| int ledPin = 13; //ardunioのLEDは13番ピン | |
| void setup() { | |
| Serial.begin(9600); | |
| pinMode(ledPin, OUTPUT); | |
| } | |
| void loop() { | |
| if (Serial.available() > 0) { |
This file contains hidden or 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
| int incomingByte = 0; | |
| int ledPin = 13; | |
| void setup() { | |
| Serial.begin(9600); | |
| pinMode(ledPin, OUTPUT); | |
| } | |
| void loop() { | |
| if (Serial.available() > 0) { |
NewerOlder