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
| assert denominator !=0 : "denominator is unexpectedly equal to 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
| Feature: Having Efficient Game Data Management System | |
| As a HPU Men's Basketball Coach | |
| So I can summarize extensive data | |
| I want summary statistics updated automatically when I enter new data | |
| Scenario: have a efficient game data management system | |
| Given I am in the data managemenet system | |
| When I go to the individual player's page | |
| And I enter 1 to 'Last 5 Make' section of 'Region 1' | |
| And I press enter |
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
| var http = require('http'); | |
| http.createServer(function (req, res) { | |
| res.writeHead(200, {'Content-Type': 'text/plain'}); | |
| res.end('Hello World\n'); | |
| }).listen(1337, '127.0.0.1'); | |
| console.log('Server running at http://127.0.0.1:1337/'); |
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
| node filename.js |
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
| body{margin: 0 px;padding: 0 px;} |
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
| body{margin:0;padding: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
| package kata; | |
| public class fizzbuzz { | |
| public static void main(String[] args) { | |
| for (int i = 1; i <= 100; i++) { | |
| if(i % 15 == 0) { | |
| System.out.println("FizzBuzz!!!"); |
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
| public class Test { | |
| public static void main(String[] args) { | |
| System.out.println("加算の結果は" + 3 + 2 + "です。"); | |
| } | |
| } |
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
| public static void main (String[] args) { | |
| int sum = 0; | |
| try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)) { | |
| while(sum == 0) { | |
| System.out.print("3桁の数値を入力してください: "); | |
| String line = reader.readLine(); | |
| for(int i = 0; i < line.length(); i++) { | |
| char ch = line.charAt(i); | |
| try { | |
| sum += Character.getNumericValue(ch); |
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
| loop1: | |
| for(int i = 0; i < 3; i++) { | |
| for(int j = 0; j < 5; j++) { | |
| if (j==3) { | |
| break loop1; | |
| } | |
| System.out.println("i=" + i + ", j=" + j); | |
| } | |
| } |
OlderNewer