If statment not working:(
I manage the to search in Arraylist and then show the result in both server side and client side, but I am facing problem in how to show Student Grade in condation, i mean if the client request for an invalid Student ID, the server should send the client back a message that its invalid Student ID, here is my code. any suggestino please?
StudentID = inp.readLine();
//Write to client's stream.
for (Students e : students)
String invalidID=("invalid Student ID");
String Studentgrade = inp.readLine(); // this it to recive the grade for requested StudentId from server
System.out.println("Grade for StudentID " + StudentID +" is : "+Studentgrade);
String Studentgrade1 = inp.readLine(); // this is to revied the message StudentID not found, from server