package hollyhw;
import java.util.Random;
import java.io.*;
public class HollyHW {
public static int censor(String chars){
I tried implementing the following. However, I did not manage.
int letters = chars.length();
int newLetters = letters;
return newLetters;
}
Note that for this specific task, I cannot edit the void main.
public static void main(String[] args) {
String c1 = censor("short"); //IDE is suggesting to change to int.
String c2 = censor("longer the short"); //IDE is suggesting to change to int.
String c3 = censor("the longest one we've got"); //IDE is suggesting to change to int.
print(c1);
print(c2);
print(c3);
print("");
}
}