so i have a string array of size 10. and im taking user inputs to store then in that string array and im using BufferedReader to get input from user and when a user enters more than 10 messages it should give a message saying that memory full....any thoughts on my code.....
String[] messages = new String[10]; int i; for (i = 1; i <=messages.length;i++) { messages[i] = clientSentence; outToClient.writeObject(messages[i]); }