I"m guessing i'm getting this error because the string is trying to substring a null value. But wouldn't the ".length() > 0" part eliminate that issue? Here is the Java ...
null
".length() > 0"
public class Asterisk { public static void main(String[] args) { String output=""; ...
Code:
public class Test { public static void main(String[] args) { String str = "University"; ...
Here is the snippet of my code. And I am getting an error of string index out of bounds. I don't know how is it out of bounds. Please help. I ...