Skip to content

Instantly share code, notes, and snippets.

Avatar

AuroraNorthernQuarter

View GitHub Profile
View サンプルコード8-2
package testprogramm;
import java.io.*;
public class Kajikimagurokatsu {
public static void main(String[] args) {
}
String keyboardIn(){
String str="";
try{
BufferedReader br = new BufferedReader
(new InputStreamReader(System.in));
View サンプルコード8-1
package testprogramm;
import java.io.*;
public class Kajikimagurokatsu {
String keyboardIn(){
String str="";
try{
BufferedReader br = new BufferedReader
(new InputStreamReader(System.in));
System.out.println("文字を入力してください。");
str = br.readLine();
View サンプルコード6/Language.java
package testprogramm;
public class Language {
public Language() {
String hiragana[] = new String[10];
String alphabet[] = new String[10];
hiragana[0] = "あいうえお";
hiragana[1] = "かきくけこ";
hiragana[2] = "さしすせそ";
hiragana[3] = "たちつてと";
View サンプルコード5/Sample.java
package testprogramm;
import java.util.Scanner;
public class Sample {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
while (true) {
View gist:d7581504171559e521183af86719d1a9
package testprogramm;
import java.util.Scanner;
public class Sample {
static void Disp(String[] name, double[] height) {
int n = name.length;
double sum = 0;
for (int i = 0; i < n; i++) {
System.out.println(name[i]);
View サンプルコードその3
package testprogramm;
import java.util.Scanner;
public class Sample {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
while (true) {
System.out.print("得点を入力してください: ");
// キーボードから整数の入力を受け取る
View サンプルコード3
package testprogramm;
import java.util.Scanner;
public class Sample {
static void Disp(String[] name, double[] height){
int n = name.length;
double sum = 0;
for (int i = 0; i < n; i++) {
System.out.println(name[i] + ":" + height[i] + "cm");
sum = sum + height[i];
View gist:196c7a8fb85fe967f5a5ecacf6a5d50e
package testprogramm;
import java.util.Scanner;
public class Sample {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
while (true) {
View サンプルコード
package testprogramm;
import java.util.Scanner;
public class Sample {
private static final String yamaguchi = "山口県";
private static final String hyogo = "兵庫県";
private static final String kanagawa = "神奈川県";
public static void main(String[] args) {
System.out.println("都道府県名を入れてください。有名な港をご紹介します。");
You can’t perform that action at this time.