|
|
@@ -20,9 +20,8 @@ public class Eingabe
|
|
|
m = 4;
|
|
|
}
|
|
|
|
|
|
- public void einlesen(int dim_m, int dim_n) throws IOException {
|
|
|
- m = dim_m;
|
|
|
- n = dim_n;
|
|
|
+ public void einlesen() throws IOException {
|
|
|
+
|
|
|
//InputStreamReader isr = null;
|
|
|
BufferedReader br = null;
|
|
|
matrix = new Element[m][n];
|
|
|
@@ -30,7 +29,7 @@ public class Eingabe
|
|
|
for (int j = 0; j < m; j++) {
|
|
|
try {
|
|
|
br = new BufferedReader(new InputStreamReader(System.in));
|
|
|
- System.out.print(+i + "," + j + ": ");
|
|
|
+ System.out.print(+ i + "," + j + ": ");
|
|
|
String eingabe = br.readLine();
|
|
|
matrix[i][j] = new Element(Integer.parseInt(eingabe));
|
|
|
} catch (IOException e) {
|
|
|
@@ -91,7 +90,7 @@ public class Eingabe
|
|
|
|
|
|
public void gauss() throws IOException
|
|
|
{
|
|
|
- einlesen(m, n);
|
|
|
+ //einlesen(m, n);
|
|
|
zeilenFaktor(0);
|
|
|
for(int j=1; j<3; j++)
|
|
|
{
|
|
|
@@ -137,7 +136,8 @@ public class Eingabe
|
|
|
Eingabe a = new Eingabe();
|
|
|
|
|
|
try {
|
|
|
- a.einlesen(2,2);
|
|
|
+ a.einlesen();
|
|
|
+ a.gauss();
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|