Hello guys, I didn't find any other solution yet.
In my tests it's everything correct, but the check has some problems..
Is there any other alternative way?
Error in de/codegym/task/task04/task0436/Solution.java on line 20
cannot find symbol
symbol: method repeat(int)
location: variable str of type java.lang.String
package de.codegym.task.task04.task0436;
/*
Ein Rechteck zeichnen
*/
import java.io.*;
public class Solution {
static int n,m;
static String str = "8";
public static void main(String[] args) throws Exception {
//schreib hier deinen Code
readParams();
for (int i=1;i<=m;i++){
System.out.println(str.repeat(n));
}
}
static void readParams() throws IOException {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
n = Integer.parseInt(bufferedReader.readLine());
m = Integer.parseInt(bufferedReader.readLine());
}
}
package de.codegym.task.task04.task0436;
/*
Ein Rechteck zeichnen
*/
import java.io.*;
public class Solution {
static int n,m;
static String str = "8";
public static void main(String[] args) throws Exception {
//schreib hier deinen Code
readParams();
for (int i=1;i<=m;i++){
System.out.println(str.repeat(n));
}
}
static void readParams() throws IOException {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
n = Integer.parseInt(bufferedReader.readLine());
m = Integer.parseInt(bufferedReader.readLine());
}
}