Author: Smedley

Java HashMap Remove Example

The HashMap.remove() method allows you to remove the mapping for the specified key from this map if present. The remove() method takes a single argument, which is the key. The key is exactly that within the HashMap. In our

Java Simple Vector Example

The Java Vector class implements a grow-able array of objects. Similar to an array, the vector contains components that can be accessed using an integer index. However, the size of a Vector can shrink or grow as needed to

Java String Concat Example

The concat() method of String class will concatenate the specified string to the end of a string. Why not just use the “+” operator instead of concat()? Good question. Both concat() method and + operator will concatenate a string,

Java Convert Boolean To String Example

Easily convert datatype of type Boolean to datatype String using the Boolean.toString() method of the Integer class. This method will return a String object representing the specified boolean. The string will either be “true” or “false”. Java Convert Boolean