Hacker rank 45th java solution(java iterator)

45. JAVA ITERATOR 


//pre written

Object element =it.next();


           if(element instanceof String)


Compiler Message
Success
Input (stdin)Download
2 2
42
10
hello
java
Expected OutputDownload
hello
java

Comments

Popular posts from this blog

Amazon Web Services

Google Code-In mentorship experience :)

Hacker Rank all java and python problem solutions