Install OpenJDK 8 on Ubuntu 14.04 LTS

Step 1: Add the OpenJDK Team Personal Package Archive (PPA) Add the PPA:

Once, we run the above command you should be able to see the below message on the command interface. Step 2: The Installation The best practice is first to update our packages

Once, we run the above command you should […]

Continue Reading

Get the number of lines and characters in a file using Java

This example demonstrates one of the ways to find the number of lines and characters in a file using Java Programming Language. Here is the block of code that will make the task easy for you.

The file named “file.txt” here in this example is located inside the folder named p3lang on drive E. […]

Continue Reading

Struts 2.x Netbeans IDE Setup

Struts 2.x is a powerful framework which is used to develop variety of web applications. It is under the control and management of Apache organization and is available as open source. It provides easy and effective way to develop web applications based on MVC pattern. It makes developers easy to work with Servlet and JSP. […]

Continue Reading

Map in Java

—MyMap.java—

OUTPUT

Continue Reading