Write a java program to capture auto suggestions list while entering data on Google search box. Let us search for “testingd” and capture the auto suggestions shown by Google search engine and print the results as shown in below picture. Iterator<E> is an interface is a member of Java Collections Framework. The iterator is iterated […]
In this post, we will learn how to deploy a sample .WAR file in Tomcat using Eclipse. First things first, we will create a Java web project and then deploy it on Tomcat server.
ArrayList is a resizable array in Java. It is implementation of the List interface. Array is fixed in size, whereas ArrayList can grow or shrink dynamically as needed to accommodate adding and removing elements. ArrayList is random access list. It supports fast and generally constant access time for the elements. You can add duplicate elements […]
Let us create a sample servlet and deploy it on Tomcat server. First of all, create a Web Project in Eclipse. For instructions creating a web project in eclipse, please go through the following question. ( http://www.testingdocs.com/questions/how-to-deploy-a-war-file-in-tomcat-using-eclipse/ )
String Literals vs String Objects String is associated with string literal in the form of double-quoted text. You can assign a string literal directly into a String variable. String objects are created by new operator and String constructor. However, this is not recommended in Java. Strings are immutable String is an immutable sequence of Unicode […]
JavaFX API JavaFX API is used for creating GUI rich desktop applications also called as Rich internet applications (RIAs). It is a set of Java libraries designed to enable you to create and deploy rich client applications that have rich UI controls. It can be used to create graphical user interfaces for many platforms. I […]