Can you help me find out why?
package com.codegym.task.task10.task1011;
/*
Big salary
*/
public class Solution {
public static void main(String[] args) {
String s = "I do not want to learn Java. I want a big salary";
for (int i = 0; i<43; i++){
String toBeReplaced = s.substring(0, i);
System.out.println(s.replace(toBeReplaced, ""));
}
}
}