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 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)); |
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 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(); |
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 testprogramm; | |
public class Language { | |
public Language() { | |
String hiragana[] = new String[10]; | |
String alphabet[] = new String[10]; | |
hiragana[0] = "あいうえお"; | |
hiragana[1] = "かきくけこ"; | |
hiragana[2] = "さしすせそ"; | |
hiragana[3] = "たちつてと"; |
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 testprogramm; | |
import java.util.Scanner; | |
public class Sample { | |
public static void main(String args[]) { | |
Scanner scan = new Scanner(System.in); | |
while (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 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]); |
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 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("得点を入力してください: "); | |
// キーボードから整数の入力を受け取る |
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 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]; |
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 testprogramm; | |
import java.util.Scanner; | |
public class Sample { | |
public static void main(String args[]) { | |
Scanner scan = new Scanner(System.in); | |
while (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 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("都道府県名を入れてください。有名な港をご紹介します。"); |