| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- /**
- * @author (Jakob Kienegger)
- * @version (27.04.19)
- */
- import java.io.*;
- import java.util.*;
- public class Eingabe
- {
- private Element[][] matrix;
- private double multi = 1;
- private int n;
- private int m;
-
- public Eingabe() throws IOException
- {
- n = 3;
- m = 4;
- }
-
- public void einlesen(int dim_m, int dim_n) throws IOException
- {
- m = dim_m;
- n = dim_n;
- for(int i=0; i<n; i++)
- {
- for(int j=0; j<m; j++)
- {
- InputStreamReader isr = new InputStreamReader(System.in);
- BufferedReader br = new BufferedReader(isr);
- System.out.print( + i + "," + j + ": ");
- String eingabe = br.readLine();
- matrix[i][j] = new Element(Integer.parseInt(eingabe));
- }
-
- }
-
- }
- public double faktorCheck(Element zahl)
- {
- if(zahl.gibZahl() != 1)
- {
- multi = 1/(zahl.gibZahl());
- zahl.multiZahl(multi);
- }
- return multi;
- }
-
- public double rechnen(Element zahl, double multi)
- {
- zahl.multiZahl(multi);
- return zahl.gibZahl();
- }
-
- public void zeilenFaktor()
- {
- for(int i=0; i<n; i++)
- {
- this.multi = faktorCheck(matrix[i][0]);
- for(int j=1; j<m; j++)
- {
- matrix[i][j].multiZahl(this.multi);
- }
- }
-
- }
- /*
- public void gauss() throws IOException
- {
- einlesen(m, n);
- zeilenFaktor();
- for(int i=0; i<
-
- }
-
- /*
-
- */
-
-
- }
|