The only first two values are added....
If we have any other value other than "java", the loop must break..
I have attached the code sample...