So I\'m trying to find all the uppercase letters in a string put in by the user but I keep getting this runtime error:
Exception in thread \"main\" java.lan
import java.util.Scanner; class Demo { public static void main(String[] args) { StringBuilder s=new StringBuilder(); Scanner input = new Scanner(System.in); System.out.println("Enter your String"); String str= input.nextLine(); for(int i=0; i