Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

Java Problem  July 11, 2010 at 8:39 PM
What are the steps to run a java Servlet program.with examples ... View Questions/Answers

How to return multiple values from a method  July 11, 2010 at 4:48 PM
I came the following method "How do I return multiple values from a method?" posted elsewhere. The problem is that I wanted to tested the method posted, but I am getting the incorrect result. Can someone tell me how my Driver.java program [see below] should be coded?pub... View Questions/Answers

How to return multiple values from a method  July 11, 2010 at 4:48 PM
I came the following method "How do I return multiple values from a method?" posted elsewhere. The problem is that I wanted to tested the method posted, but I am getting the incorrect result. Can someone tell me how my Driver.java program [see below] should be coded?pub... View Questions/Answers


Programing Help  July 11, 2010 at 12:16 AM
how to design a filebrowser in java "witout using Swing" ? ... View Questions/Answers

overloading  July 10, 2010 at 9:08 PM
define overloading ... View Questions/Answers

passing value from javascript to jsp  July 10, 2010 at 5:07 PM
Hi...Is there any way to get the value from the javascript and print it on the current jsp pageor print an array onto the current jsp page using javascript ... View Questions/Answers

online shopping project in j2ee  July 10, 2010 at 2:12 PM
hello, I am making a project online shopping using jsp-servlet. I wanted to know that how do I implement following:1) A non-registered user(or a registered user who has not signed-in) can browse through the pages of website if he doesnt need to buy anything. If he chooses to buy anything then ... View Questions/Answers

online shopping project in j2ee  July 10, 2010 at 1:48 PM
hello, I am doing a project on online shopping implementing it with only jsp-servlet.I wanted to know that do I need to incorporate any of struts or EJB in my project (in any possible case which I might not notice) or just the servlet-jsp is enough??Thanks in advance. ... View Questions/Answers

hibernate execution  July 10, 2010 at 1:48 PM
how to create hibernate pojo classes in eclipse galileo ide.i want steps to this process.i want to retrieve date from mysql database using hibernate in eclipse galileo ide.any one plz send me steps to this total process.plz it's urjent.mail id:[email protected] ... View Questions/Answers

java lab programs  July 10, 2010 at 1:10 PM
1. Develop a Java package with simple Stack and Queue classes. Use JavaDoc comments for documentation.2. Design a class for Complex numbers in Java. In addition to methods for basic operations on complex numbers, provide a method to return the number of active objects created.3. Design... View Questions/Answers

JAVA Syntax  July 10, 2010 at 1:03 PM
main method syntax in jdk1.3with one example.. ... View Questions/Answers

java lab programs  July 10, 2010 at 12:52 PM
Design a Date class similar to the one provided in the java.util package. ... View Questions/Answers

Eclipse (Problem with combining 2 codes together)  July 10, 2010 at 9:07 AM
hi, I have 2 pieces of code and I don't know how to combine together. Hope someone can help me combine it together. And I also want to add in if (inputs.equals("@")) it will print time else (inputs.equals("!")), it will print hall. Below is my code for time and hall.i... View Questions/Answers

Eclipse  July 10, 2010 at 9:01 AM
hi, can someone help me do an array/using other easier function to do something like this and if I enter a seat value, the seat will be marked by an X.X = Seat taken<<------------ SCREEN ------------ >>A1[ ] A2[ ] A3[X] A4[X] A5[ ] A6[ ] B1[ ] B2[ ] B3[X] B4... View Questions/Answers

javascript cal code for selecting date in text field  July 9, 2010 at 11:36 PM
HI I want javascript calendar code to select date in text field in jsp.pls send me? ... View Questions/Answers

linux desktop on windows without using vn or any other ?  July 9, 2010 at 9:00 PM
linux desktop on windows without using vn or any other ?.I have a linux pc and windows xp pc but i am not able to connect the linux pc on windows .why? .windows and linux are in the same network .i am trying by using using the remotedesktop ... View Questions/Answers

converting From Hexadecimal to Decimal System  July 9, 2010 at 8:25 PM
Write a program in Java user is required to enter a number system XVI and turn it into the decimal system, using StringBuffer ... View Questions/Answers

java  July 9, 2010 at 5:50 PM
how to generate reports in servlets ... View Questions/Answers

how to convert a .xlsx to .xls fil  July 9, 2010 at 2:43 PM
Dear sir, How to convert a .xlsx file to .xls using poi .Please give me some clue.... Thanks in advance... ... View Questions/Answers

guidance for the beginners  July 9, 2010 at 1:56 PM
could you please help me to develop the skills in java programming from the scrap? ... View Questions/Answers

java  July 9, 2010 at 12:54 AM
m getting prob while going to start server (ie startup.bat)after clicking it its getting start but getting closed also ...i hv installed preconfigured tomcat hw to set CLASSPATH. i hv set path for jdk . ... View Questions/Answers

main() syntax  July 8, 2010 at 9:31 PM
Hi,I would like to know the complete structure of the main() in jdk1.5with sample program.Regards,UsmanAli Shaik, ... View Questions/Answers

question1  July 8, 2010 at 6:39 PM
1. Write a function that accepts an array of non-negative integers and returns the second largest integer in the array. Return -1 if there is no second largest.if the input array is return{1, 2, 3, 4} =3{{4, 1, 2, 3}} =3{1, 1, 2, 2} =1{1, 1} =-1{1} =-1... View Questions/Answers

basic  July 8, 2010 at 5:04 PM
hey,looking at your website i felt as if there are so many technologies going on..and i m only a beginner.So can u please let me know all the technologies that u have listed and are present.If not,a suitable direction to a link will serve the purpose.thanks for your kind help. ... View Questions/Answers

Invoking exe  July 8, 2010 at 12:49 PM
Hi,How can I invoke a exe with command line arguments in java. ... View Questions/Answers

Copy Mails to Xl sheet  July 8, 2010 at 11:18 AM
Can somebody give me the Java code to copy outlook mails into an Xl sheet. ... View Questions/Answers

Hibernate  July 8, 2010 at 8:37 AM
Hello Deepak as you answer posted this is solution of if any file not foundbut my question is ..Error is ::: Error in reading contact.hbm.xmlcontact.hbm.xml is my hibernate mapping file.So please read are fully give me guide.file is found but hibernate.cfg.x... View Questions/Answers

jdbc  July 7, 2010 at 10:02 PM
what is the return type for Class.forname("Driver class name"); ... View Questions/Answers

Unable to run the jsp page  July 7, 2010 at 9:03 PM
Expert:NagaHi,I need solution this program.In cart.jsp I printed the total amount of the products then the next page is shipping and billing details and the next page is payment details. What is need is the total amount which is in the cart.jsp should be printed on the textbox of t... View Questions/Answers

Active Objects  July 7, 2010 at 6:10 PM
Design a class for complex nos in java in addition to methods for basic operations on complex number. Provide a method to return the number of active objects created ... View Questions/Answers

JAVA  July 7, 2010 at 6:04 PM
Hi.... Can any one say, how to count the number of objects used in a program... pls send me the correct answer As soon as possible...Advance Thanks... ... View Questions/Answers

Simple program to combine all html,ajax,java,servlets,jsp,json  July 7, 2010 at 5:42 PM
Hi, I learned Java,servlets,jsp basics, html, ajax, json and css. I want to do a program which is a combination of all those technology. For that, i planned to design a simple html page with a input field and submit button. I tried to do that if i click a submit button, the value in t... View Questions/Answers

logout problem..  July 7, 2010 at 5:30 PM
hi... first of all thanks for ur help.Actually i m developing a web application whole of the functionality is completed but their is some problem with the the logout,i m not able to logout when that application runs . i m using eclipse with my sql as a back end.basically but i have done in... View Questions/Answers

servlets  July 7, 2010 at 3:12 PM
I am doing small project in java on servlets. I want to generate reports on webpage ,how is it possible and what is the difference between dynamic pages & reports ? tell me very urgent pls,pls..................thanks, ... View Questions/Answers

java  July 7, 2010 at 1:36 PM
how to access excel file through jdbc show record in table in swing. ... View Questions/Answers

Interview Question  July 7, 2010 at 9:37 AM
1)If we give S.O.P. statement after finally block shall it prints or not?2)Write a program in java to read a file & write in to another file?3)Write a program taking two arrays and compare those two and print, without using functions? ... View Questions/Answers

JSP  July 7, 2010 at 9:17 AM
in my program i have placed a filename label and one text box if i enter any file name such as text files ,documents etc...i will put one search button when i click that search file it will search from our drives like C,D,E how many partition we have our system.If the file is... View Questions/Answers

servlet and xml  July 7, 2010 at 12:11 AM
how to call or invoke a form.html with a servlet using web.xml ... View Questions/Answers

How Compare 2 xml files with JDOM  July 6, 2010 at 8:30 PM
Hi I'm want help on how can I compare 2 xml files using JDOM in java and identify whether have the same content or notMy files can simply be File1<staff> <firstname/> <lastname/> </staff>File2<staff>... View Questions/Answers

How to send data by ajax to servlet?  July 6, 2010 at 7:50 PM
Hi, Can i send a value from a HTML file to servlet via Ajax? If it is possible please give me a sample codeThanks ... View Questions/Answers

variable setting for servlet  July 6, 2010 at 6:05 PM
how to set environment variable and class path variable for servlet and to compile servlet files i am using tomcat 6.0 ... View Questions/Answers

JAVA  July 6, 2010 at 5:51 PM
Desing a class for complier number is java in addition two methods for basic operation on complex number provide a method to return the number active object created ... View Questions/Answers

I have a small problem in my datagridview  July 6, 2010 at 5:40 PM
i have datagridviewer in c#(platform) and i try that change cell beckground, this cell Should be for example 5(integer!) if in my datagridwiewer Will be 5(whatwhich should be take in my base_database_) its back color will be for example blue.. -------change the backcolor of individual cells... View Questions/Answers

jsp  July 6, 2010 at 4:44 PM
Hi,I need solution this program.In cart.jsp I printed the total amount of the products then the next page is shipping and billing details and the next page is payment details. What is need is the total amount which is in the cart.jsp should be printed on the textbox of the payment.jsp pa... View Questions/Answers

java project  July 6, 2010 at 4:38 PM
Hi,I wish to write a Java application project in school. I wish to humbly request for sample java project source codes to enable me write one. eg Hotel Reservation System, Flight scheduling system, Passenger demand forecasting system, etc.Regards ... View Questions/Answers

core java  July 6, 2010 at 4:00 PM
when write java program in editplus.then save&compile the file.1-text file2-class file3-bak filehow can get this files plz tell me ... View Questions/Answers

core java  July 6, 2010 at 3:50 PM
public static void main(String[] args) why are write only string[]..why cann't write int,float ... View Questions/Answers

Hibernate code  July 6, 2010 at 3:05 PM
I am facing a problem in hibernate program.Error is ::: Error in reading contact.hbm.xmlcontact.hbm.xml is my hibernate mapping file. ... View Questions/Answers

Excel conversion tool.  July 6, 2010 at 1:57 PM
Hi, I need a conversion tool which can convert .xls(Excel 2003) to .xlsx (Excel 2007) and vice-versa.Please suggest any links ro tools.Thank You, ... View Questions/Answers

tread  July 6, 2010 at 1:29 PM
what is a thread and synchronization? give real time example? ... View Questions/Answers

with out class  July 6, 2010 at 1:02 PM
can we write a program with out a class in core java?if yes,give example ... View Questions/Answers

online shopping project in java  July 6, 2010 at 12:17 PM
hii, i am doing a project online shopping in JSP-SERVLET.I wanted to know that i need 2 use images which will be retrieved through oracle 10g.1) what is the best strategy for storing and retrieving images in oracle?? i heard directly storing images in oracle through blob degrades the per... View Questions/Answers

fully object oriented language  July 6, 2010 at 11:30 AM
Is java is a fully object oriented language?if no,why? ... View Questions/Answers

Real time examples  July 6, 2010 at 11:19 AM
what is method overloading,method overriding,constructor overloading concept in java and explain with real time examples? ... View Questions/Answers

Hibernate  July 6, 2010 at 10:35 AM
when I run Hibernate Code Generation wizard in eclipse I'm getting the following error. I added ojdbc14.jar to my build path. Still I'm getting this error. please let me know, how to resolve it.org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database driver... View Questions/Answers

How to read excel2007 file  July 6, 2010 at 9:19 AM
Dear sir , I am able to read a excel 97-2003(.xls)files using apache poi.But for 2007(.xlsx)files to read using poi its nt possible.So please help me sir....Thanks .... ... View Questions/Answers

Hibernate- Oracle connection  July 5, 2010 at 10:44 PM
In Eclipse I tried Windows --> Open perspective--> otherin that Database DevelopmentRight click on databaseconnection --> NewOracleAdded ojdbc14 Jar file pathUID and password as scott and tiger.clicked Test connec... View Questions/Answers

Java Servlets  July 5, 2010 at 8:14 PM
1.What is Pojo class? How and where it is used?2.Can anyone tell me where can execute servlet program online?3.Can anyone tell me where can i download NetBean 5.5.1? ... View Questions/Answers

multiple inheritance  July 5, 2010 at 7:28 PM
Why java does not support Multiple Inheritance? ... View Questions/Answers

JAVA  July 5, 2010 at 5:39 PM
write a program to display the higest number stroed in two variables,test whether the higest number is even or odd ... View Questions/Answers

java  July 5, 2010 at 2:46 PM
to create heading'parameter'which tag should be inserted in javadoc? ... View Questions/Answers

clarification in jsp  July 5, 2010 at 8:57 AM
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? ... View Questions/Answers

Displaying calendars  July 4, 2010 at 10:03 PM
Write a program that prompts the user to enter the year and first day of the year, and displays the calendar table for the year on the console. For example, if the user entered the year 2005, and 6 for Saturday, January 1, 2005, your program should display the calendar for each month in the year, as... View Questions/Answers

java  July 4, 2010 at 6:39 PM
please help to calculate the distance between two image pixels difference so that we can now wheather a image is a exact match or not based on the search query given in the text box ... View Questions/Answers

dynamic display  July 4, 2010 at 4:44 PM
hi, i want to display dynamic values in drop drown box in a jsp page.these values are in the form of arraylist's object which came form another servlet or bussiness logic after being validated in rdbms.hope u will understand what i have mentioned.plz reply soon.... ... View Questions/Answers

JAVA  July 4, 2010 at 4:49 AM
write the program for class called caculator difine two variable write method for performing the operation for addition ,subtration,multipication,division make using of constructor in this class ... View Questions/Answers

compilation error  July 3, 2010 at 10:32 PM
Dear sir,When i compile some pgms i am getting below error.what may be the reason?"uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details." ... View Questions/Answers

Help with jQuery show hide div script  July 3, 2010 at 8:30 PM
Hi guys,I have a jquery script for showing and hiding the content inside, between two divs, controlled with radiobuttons. I like to use the same jquery script for another group of divs and radiobuttons so I'm trying to create a loop are so inside jQuery.Could somebody please help. ... View Questions/Answers

Insertion Sort  July 3, 2010 at 7:14 PM
Hello rose india java experts.If you don't mind.Can you help me.What is the code for Insertion Sort and Selection Sort that displays LETTERS in alphabetical order from A to Z.Thank you.Hope you gonna helpme. ... View Questions/Answers

servlets  July 3, 2010 at 5:40 PM
what kind of reports java will supportand also send the pdf format of that support report pls ... View Questions/Answers

servlets  July 3, 2010 at 4:49 PM
how to generate reports in servelts pls tell me from first onwards i.e., i don't know about reports only i know upto servlets that's why pls tell me from begining ... View Questions/Answers

user defined subclass of throwable class  July 3, 2010 at 10:56 AM
Dear Sir,pls help me to write this pgm:Program to illustrate the use of user defined subclass of throwable class ... View Questions/Answers

Compiling Error  July 2, 2010 at 10:36 PM
cant able to compile java servlet file in the command prompt? WHY?but i can compile normal java filegive me answer to fix my problem. ... View Questions/Answers

Compiling Error  July 2, 2010 at 10:31 PM
cant able to compile java servlet file in the command prompt? WHY?but i can compile normal java filegive me answer to fix my problem. ... View Questions/Answers

mapping  July 2, 2010 at 10:28 PM
how does the web.xml works and how does the mapping done will you explain me? ... View Questions/Answers

GUI testing/software testing  July 2, 2010 at 9:39 PM
how to create a GUI testing/software testing module in java? ... View Questions/Answers

linux4.2 supported jdk versions  July 2, 2010 at 8:30 PM
linux 4.2 supported jdk versions ?.is it supports to jdk1.6(linu4.1.2)or not?please giive me clarifications ... View Questions/Answers

java implementation  July 2, 2010 at 7:53 PM
Im M.Phil research scholar,i need a software testing module implemented in java.My research area is software testing,if anyone could help me out in this? ... View Questions/Answers

when sending the mail from java I am getting the below error  July 2, 2010 at 1:42 PM
when sending the mail from java I am getting the below error:Exception in thread "main" java.lang.NoClassDefFoundError: javax.mail.internet.MimeMessage at java.lang.Class.initializeClass(libgcj.so.7rh) at SendMail.main(SendMail.java:23)Caused b... View Questions/Answers

javamail supported java versions (mail.jar or jdk versions)  July 2, 2010 at 1:37 PM
Hi.Javamail suported version jdk version? ... View Questions/Answers

java script code  July 2, 2010 at 12:56 PM
I want make header like-http://www.sigmainfotech.com.au/ this sitebut in this site header make in flash,I use java script or any other script.like that side click left side image it expand in header, and same way header bottom image mouse over it expand.so please help me asap... View Questions/Answers

scriptlet tags in jsp  July 2, 2010 at 10:36 AM
i know we can do method implementation in declarative tag, but can we do method implementation in scriptlet tag? please reply, if poss with example. ... View Questions/Answers

JSP Code  July 2, 2010 at 10:28 AM
Hi,Do we have a datagrid equivalent concept in JSP? If so, then please help me to find the solution of the problem.Its Urgent.........Please...........RegardsVinay Kumar Rai ... View Questions/Answers

JSP Code  July 2, 2010 at 10:25 AM
Hi,I have a problem in limiting the number of row display in the table.For example, if i have 1000 records in my table & want to display only 10 records per pages in jsp, then how can i achieve this concept.Please help me to find the solution. Its really urgent.... View Questions/Answers

struts hibernate  July 1, 2010 at 6:27 PM
how to integrate struts and hibernate ?is need any plugin ?programmer manually create that plguin? ... View Questions/Answers

java  July 1, 2010 at 4:11 PM
twin primes are prime numbers whose difference is 2.for example3,5;5,7;11,13;17,19;etc.define a class number problem with suitable methods which takes an integer argument and prints out all the twin primes below the number ... View Questions/Answers

java  July 1, 2010 at 4:04 PM
A programe in java for making a calculator. ... View Questions/Answers

calculator  July 1, 2010 at 4:01 PM
Some ideas for the project of calculator. ... View Questions/Answers

Copy a Html chart into PPT  July 1, 2010 at 10:28 AM
Hi Experts,i am facing with a problem without solution.I have a Html site and would like to write a code so that by clicking on a button the graph will be copied in an active ppt.Could you please help?Thank you in advance.CheersDreams... View Questions/Answers

Asking for exercise  June 30, 2010 at 11:10 PM
Can you send me a small exercise question -a prograsm for collections in java? ... View Questions/Answers

arrays  June 30, 2010 at 9:08 PM
1)write a program that take integer array as input and find the second largest number in array?(Array values taken from keyboard)?2)Given two array A & B and B has same elements same as A but one element missing? Write a program that take arrays A & B as input and find missing element ... View Questions/Answers

OOPs  June 30, 2010 at 8:35 PM
i know what is an abstract class and what is an interface but i wanted to know in which scenarios i use them and why nowadays java is stressing on interface programming.and i also want to know where do we exactly implement singleton pattern in our application. ... View Questions/Answers

how to get a values from a multipart/form-data  June 30, 2010 at 3:57 PM
Dear sir , I used your code for getting a values,i used the fllowing<%@ page language="java" %><html><body><SCRIPT type="text/javascript"> function submitForm(f){ var form = document.createElement(&quo... View Questions/Answers

social bookmarking  June 30, 2010 at 11:38 AM
<?php$services = array ( "digg" => array ( "Target" => "http://digg.com/submit?phase=2&url=PERMALINK&title=TITLE", "Image" => "digg-48x48.png", "Title" => "Digg" ... View Questions/Answers

Printing numbers in pyramid format  June 30, 2010 at 10:42 AM
Q) Can you please tel me the code to print the numbers in the following format: 1 2 3 4 5 6 7 8 9 10 ... View Questions/Answers

website deployment  June 30, 2010 at 8:46 AM
Hi All,Requirment: To fetch records depends on the scenario from database and display on webpages in a grid format with paging.Bind the table data corresponding to combo box selection.IDE : NetBeans 6.7Web Server : Apache Tomcat 5.5Database Server: FireBird... View Questions/Answers

dout  June 30, 2010 at 7:22 AM
where to down load jdk latest vesion ... View Questions/Answers

java number to word  June 30, 2010 at 12:32 AM
Can somebody please fix this to come out with the word, not the number 23?import java.util.Scanner;public class WordExtractor5{ //----------------------------------------------------------------- // Pulls integers from a string to form a word. ... View Questions/Answers

How to convet reader to double?  June 29, 2010 at 11:13 PM
I have this set of coding which read the input from the com1 port. I wan to ask how to convert the input (the reader) into Double so that the input can perform arithmetic operation?/* * To change this template, choose Tools | Templates * and open the template in the editor.... View Questions/Answers

why mails are sending from the linux server  June 29, 2010 at 2:07 PM
Mails are not sending from the linux server.We have 3 systems. server system is windows 2003 server and Our java application is inside linux server. Whenever we send the mails from java application,mail are not sending .Mail server is installed on windows 2003 server (all are in network). ... View Questions/Answers