Thanks guys, it worked and now I understand what was wrong.
Best wishes to all.
Type: Posts; User: endframe
Thanks guys, it worked and now I understand what was wrong.
Best wishes to all.
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:686)
at BankSystem.main(BankSystem.java:49)
So, here's my code. I have a runtime error and I think there's a problem in the loop in it but I can't figure it out.
import java.util.Scanner;
public class BankSystem
{
...