Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


shilpa
jsp
1 Answer(s)      5 years and 9 months ago
Posted in : JSP-Interview Questions



Advertisement
View Answers

December 18, 2008 at 4:50 AM


Hi friend,

Code to solve the problem :

import java.util.ArrayList;
import java.util.Iterator;

public class ArrayListExam{
public static void main(String args[]){
// constructs a new empty ArrayList
ArrayList<Integer> arrayList = new ArrayList<Integer>();
arrayList.add( new Integer(1) ); // adding value into ArrayList
arrayList.add( new Integer(2) );
arrayList.add( new Integer(3) );
Iterator itr = arrayList.iterator();
while(itr.hasNext())
{
System.out.println(itr.next());
}
}
}

Thanks

Vineet


Related Tutorials/Questions & Answers:
jsp
jsp  how to include google map in our jsp page
JSP
JSP   What is JSP?   JavaServer Pages (JSP) is a server-side Java technology an extension to the Java servlet technology that helps... document types.   Hi, Here is the answer. JavaServer Pages (JSP
Advertisements
jsp
jsp  hi sir i have a problem in jsp sir please help me in this case i have two labels sir,in that if one of the label is mandatory then,the second label should be optional and if the second label value is mandatory
JSP
JSP  Hi , I am working in JSP. In my project i have to generate my entire database records to pdf,excel,csv format , so which concept i have to use to generate. Can u suggest me... Regards, SenthilKumar.P   Hi
jsp - session - JSP-Servlet
JSP - Session  How to manage session in JSP
JSP to Excel - JSP-Servlet
JSP to Excel  Need an example of JSP and Excel database connection. Thanks
Jsp - JSP-Servlet
JSP Servlets Advantages  What are the advantages of JSP and Servlets
jsp - JSP-Servlet
JSP directives with example   JSP Directive with examples
JSP - JSP-Servlet
JSP & Servlet Example Code  Need example of JSP & Servlet
jsp - JSP-Interview Questions
JSP directives list  What is JSP directives? Can anyone list the JSP directives
JSP - JSP-Servlet
JSP  how to insert marks in oracle8i with jsp
jsp - JSP-Interview Questions
jsp  what are the life cycles of jsp and give a brief description  Hi friend, The lifecycle of jsp page life cycle of jsp... ----------------------------------------- Read for more information. http://www.roseindia.net/jsp/ Thanks
Jsp - JSP-Servlet
JSP date picker code  I am digging for either a simple example or code to get the Date format in JSP
jsp - JSP-Servlet
jsp get post method   What is the get post method in JSP? And when i need to call these methods
jsp sessions - JSP-Servlet
jsp sessions  Hi, i am JSP sessions example and code.  using SessenListners
jsp projcts - JSP-Servlet
jsp projcts  give me the web site where i can get build in jsp projects
jsp - JSP-Servlet
JSP associative array  Does JSP objects acts like associative array
JSP,Servlet - JSP-Servlet
JSP,Servlet  How can i pass a list of objects from jsp to an Action? Please help me to do
jsp - JSP-Servlet
JSP life cycle diagram   Can anyone give me the jsp life cycle diagram
JSP-Servlet - JSP-Servlet
JSP-Servlet   how to pass the value or parameter from jsp page to servlet and view the passed value
JSP-Servlet - JSP-Servlet
JSP-Servlet   how to pass the value or parameter from jsp page to servlet and view the passed value
JSP-Servlet - JSP-Servlet
JSP-Servlet   how to pass the value or parameter from jsp page to servlet and view the passed value
JSP-Mysql - JSP-Servlet
JSP-Mysql  Hello friends, Anyone send me the way how to store image in mysql database from a jsp page.  Hi friend, Code to insert image in mysql Using Jsp : For more information on JSP
clarification in jsp - JSP-Servlet
clarification in jsp  Hi did jsp supports post method to send values to next jsp? if possible how to use post method in jsp?and what is the default method(get/post) of jsp?  Hi Friend, Yes jsp supports Post
JSP - JSP-Servlet
JSP  how to get the input in a jsp page which was entered by the user in another jsp page?? 'request.getParameter' that is used for html to jsp... the problem : 1.Create a JSP page "test.jsp" and submit the form
jsp/servlet - JSP-Servlet
jsp/servlet  How to create and save the excel file on given location using jsp/servlet?  hi Geetanjali, Read for more information, http://www.roseindia.net/jsp/poi/excelPOI.shtml Thanks
jsp - JSP-Servlet
jsp  hi, i need text to speech jsp code
jsp - JSP-Servlet
jsp  hOW to redirect error page in jsp using tomcat  Hi Friend, Please visit the following links: http://www.roseindia.net/jsp/ErrorPageAttribute.shtml http://www.roseindia.net/jsp/custom-error-page.shtml http
jsp email - JSP-Servlet
jsp email  when the user forgets his password how to enable the user to retrieve his password using jsp code
jsp - JSP-Servlet
is invalid. This is JSP page...://www.roseindia.net/jsp/sumTable.shtml http://www.roseindia.net/jsp/loginbean.shtml http://www.roseindia.net/jsp/user-registration-form-using-jsp.shtml http
JSP - JSP-Interview Questions
are the comments in JSP(java server pages)and how many types and what are they.Thanks inadvance.  Hi friend, JSP Syntax XML Syntax... A comment marks text or lines that the JSP container
jsp - JSP-Servlet
jsp  how to use java program in jsp ie, how to call a java program from jsp page I saw some of the sample java programs like - webapps/examples...)....  Hi friend, For use Java program(or beans) in JSP visit to : http
jsp - JSP-Servlet
jsp  it is possible to fire a java page from a jsp page through...://www.roseindia.net/jsp/using-bean-counter.shtml http://www.roseindia.net/jsp/getting-property-value-jsp.shtml http://www.roseindia.net/jsp/jsp-bean-setproperty.shtml
JSP - JSP-Servlet
to upload an image from JSP page and retrieve that image where ever i want to display..., For file upload in jsp visit to : http://www.roseindia.net/jsp/file_upload/ For retrieve image in jsp visit to : http://www.roseindia.net/jsp/retrieve
JSP Compilation
JSP Compilation  Explain how a JSP is compiled into servlets by the container
jsp functions - JSP-Servlet
jsp functions  hi,sir i need a simple jsp program using page directive with session attribute  Hi friend, To get the solution of your problem visit this link.... http://www.roseindia.net/jsp
Jsp - JSP-Servlet
Jsp  Hi Friend ! i installed the sun application server8.2. i want to run jsp programs in my server. which directory i put my jsp Programs how i can execute the jsp programs in my system. Thank you
Jsp question - JSP-Servlet
Jsp question  Hi, I have NetBeans5.5 and Tomcat5.5 I could not able to excute a jsp file. there is giving error that the absolute path is not deployed or not found in web.xml. Simple jsp examples without JSTL I am
jsp - JSP-Servlet
jsp  how to get some information from sql database is show in combo box in another page in jsp program. I need coding for that.   Hi Friend, Use in the first jsp page. Then create another jsp page to retrieve
jsp-logout - JSP-Servlet
jsp-logout  hai friends please provide me a powerful login & logout programs for my web application regarding my project. thanks...://www.roseindia.net/jsp/loginstatus.shtml http://www.roseindia.net/jsp/loginbean.shtml
JSP Populate - JSP-Servlet
JSP Populate  Hi, I want to call a XYZ jsp via URL with some parameters and at the same time want to use that parameter to populate the same XYZ jsp from database. How do I populate this XYZ jsp after hitting that URL (it needs
JSP - Resultset - JSP-Servlet
JSP - Resultset  hello sir, how can i count record in jsp. i use resultset in my jsp so in my login form how can i check the username... code Count data from database in jsp Count data from
jsp and servlet
jsp and servlet  what is the difference between jsp and servlet ? what is the advantages and disadvantages of jsp and servlet
JSP - JSP-Servlet
JSP  Hi! Everybody, In my JSP page, I want to include the ".swf file" (flash file) but i am not able to insert it.. How to insert it .swf file in JSP page
JSP - JSP-Servlet
JSP  How to import user defined packages in to JSP page.  hi friend, To solve your problem, visit to: http://www.roseindia.net/jsp/ImportAttribute.shtml Thanks
JSP - JSP-Servlet
JSP  What is the meaning of extending JSP?  Hi friend, A jsp can be made to extend our own servlet instead of container generated servlet by using. <%@ page extend="package.className"> Thanks
jsp code - JSP-Servlet
jsp code  Can anyone help me in writing jsp/servlet code to retrieve files and display in the browser from a given directory.  Hi Friend, Try the following code: Thanks
jsp:plugin in jsp
jsp:plugin in jsp  What is the jsp:plugin action ?   This action lets you insert the browser-specific OBJECT or EMBED element needed to specify that the browser run an applet using the Java plugin
JSP Encryption - JSP-Servlet
JSP Encryption  Hi! Please give me code for MD5 encryption & decryption. Thanks in advance
jsp - JSP-Servlet
jsp  Hi How to inactive button based on checking condition in jsp page(using java code)? With Regards Venkatesan
 

 

 

DMCA.com