【初心者】Java の宿題ここで答えます 5.0【歓迎】
■ このスレッドは過去ログ倉庫に格納されています
0563>>562 その1
05/03/01 04:09:41import java.util.*;
import java.awt.Point;
public class HW86 {
static class Data {
int x, y, cost;
Data(int x, int y, int cost) {
this.x = x;
this.y = y;
this.cost = cost;
}
}
public static void main(String[] args) {
String text1 = "", text2 = "";
try {
System.out.print("文字列1の入力:");
text1 = new BufferedReader(new InputStreamReader(System.in))
.readLine();
System.out.print("文字列2の入力:");
text2 = new BufferedReader(new InputStreamReader(System.in))
.readLine();
} catch (IOException e) {
System.out.print("エラー発生終了");
System.exit(0);
}
■ このスレッドは過去ログ倉庫に格納されています