JAVA

394 1
Pyramid Triangle pattern programs in Java with explanation
This article gives you code to print different types of pyramids in Java and explains the code, which helps you clear you concepts of programming in java.
Type
Article
Java print pyramid in java java8
387 0
How to compare Strings in Java?
This article explains how can we compare string in Java and give brief insights with an example about various string functions in Java programming language.
Type
Article
java string comparison java-string-compare comparing-strings-in-java
238 0
Difference between HashMap and Hashtable in Java
This article gives details about the difference between HashMap and Hashtable in Java with an example & let you know which is more efficient.
Type
Article
Java Hashmap Hashtable difference
229 0
Servlet in Java with example (Saving form data in database using servlet)
In this article, I will explain about Servlet briefly & will save data in database from HTML form using Servlet
Type
Article
Java J2EE form-fields servlets insert-data-in-database servlets-in-java
58 1
How to convert InputStream to a string in Java?

Suppose I have a have java.io.InputStream object, how should I process that object and produce a String from it in java?

I would need a function which reads InputStream and output it as a String

thanks

...
Type
Question
java InputStream java.io string

58 1
Which is the best method to iterate through the hashmap in java?

I have an object with Map interface in java, so i would like to know which is the best way to iterate over the items in a HashMap?

Explain in more details if possible, thanks

...
Type
Question
java hashmap collections lopping hashmap in java different ways of iterating hashmap

Page 1 of 1