Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

java  July 14, 2010 at 11:39 AM
Design a thread-safe implementation of Queue class. Write a multi-threadedproducer-consumer application that uses this Queue class. ... View Questions/Answers

java  July 14, 2010 at 11:38 AM
Develop a template for linked-list class along with its methods in Java. ... View Questions/Answers

java  July 14, 2010 at 11:38 AM
Develop a scientific calculator using even-driven programming paradigm of Java. ... View Questions/Answers

Advertisement

java  July 14, 2010 at 11:37 AM
Develop a simple paint-like program that can draw basic graphical primitives indifferent dimensions and colors. Use appropriate menu and buttons. ... View Questions/Answers

java  July 14, 2010 at 11:37 AM
Write a Java program to read a file that contains DNA sequences of arbitrary lengthone per line (note that each DNA sequence is just a String). Your program shouldsort the sequences in descending order with respect to the number of 'TATA'subsequences present. Finally write the sequ... View Questions/Answers

java  July 14, 2010 at 11:36 AM
Design a Java interface for ADT Stack. Develop two different classes that implementthis interface, one using array and the other using linked-list. Provide necessaryexception handling in both the implementations. ... View Questions/Answers

java  July 14, 2010 at 11:36 AM
Develop with suitable hierarchy, classes for Point, Shape, Rectangle, Square, Circle,Ellipse, Triangle, Polygon, etc. Design a simple test application to demonstratedynamic polymorphism. ... View Questions/Answers

java  July 14, 2010 at 11:35 AM
Design a Date class similar to the one provided in the java.util package. ... View Questions/Answers

java  July 14, 2010 at 11:34 AM
Design a class for Complex numbers in Java. In addition to methods for basicoperations on complex numbers, provide a method to return the number of activeobjects created. ... View Questions/Answers

java  July 14, 2010 at 11:33 AM
Develop a Java package with simple Stack and Queue classes. Use JavaDoccomments for documentation. ... View Questions/Answers

pl z provide code for below question in javascripr or jsp  July 14, 2010 at 11:04 AM
Once the parallel request happened, the user will not be able to continue his work, until the first request ends by itself and back to the home page ... View Questions/Answers

Multi-Threading  July 14, 2010 at 12:48 AM
Consider a producer process prime-generator produces prime numbers randomly that aredisplayed by a consumer process called prime-sorter . prime-sorter will display the primenumber if it is greater than the previously displayed number. You have to write amultithreaded Java program t... View Questions/Answers

LINKBUTTON  July 13, 2010 at 9:37 PM
i want to create a one link button if i click that button it has to go another page. USING SWINGS(JAVA)can u give me a simple program......plz..becoz i have seen all ur posted questions and answers but it is not there . If it is available can u give me link itself.... ... View Questions/Answers

Template  July 13, 2010 at 7:54 PM
Develop a template for linked-list class along with its methods in Java. ... View Questions/Answers

Scientific Calculator  July 13, 2010 at 7:53 PM
Develop a scientific calculator using even-driven programming paradigm of Java.?Thanks in ADVANCE ... View Questions/Answers

Dynamic Polymorphism  July 13, 2010 at 7:52 PM
Develop with suitable hierarchy, classes for Point, Shape, Rectangle, Square, Circle,Ellipse, Triangle, Polygon, etc. Design a simple test application to demonstratedynamic polymorphism.?Thanks in ADVANCE ... View Questions/Answers

java.util package  July 13, 2010 at 7:51 PM
Design a Date class similar to the one provided in the java.util package.?Thanks in ADVANCE.... ... View Questions/Answers

java lab programs  July 13, 2010 at 7:47 PM
Develop with suitable hierarchy, classes for Point, Shape, Rectangle, Square, Circle, Ellipse, Triangle, Polygon, etc. Design a simple test application to demonstrate dynamic polymorphism.5. Design a Java interface for ADT Stack. Develop two different classes that implement this interface, one... View Questions/Answers

Eclipse (Problem with combining 2 codes together)(Cont)  July 13, 2010 at 7:13 PM
Hi, I have a problem with this code (below), I enter the username and password correctly then I want to input an integer either 1 or 2 but if I enter wrongly, e.g. 3, it will print out "Unsuccessfully login due to invalid username or password". How can I edit this code to make it print out... View Questions/Answers

javascript for textbox  July 13, 2010 at 5:01 PM
Dear sir, Thanks for your post,but when i writeif(reason=="") i am getting a following error in eclipse i.e a red line came below the reason=="" saying following.. The operator == is undefined for the argument type(s) void, StringEventhough i ... View Questions/Answers

LinkButton  July 13, 2010 at 4:38 PM
i want to create a one link button if i click that button it has to go another page.can u give me a simple program......plz..becoz i have seen all ur posted questions and answers but it is not there . If it is available can u give me link itself.... ... View Questions/Answers

javascript for textbox  July 13, 2010 at 4:24 PM
Dear Sir ,Thanks for posting an answer, its working fine .Sir how to get the text what we have entered in a prompt(reason).I need that reason to be displayed one next delete.jsp page so how to get that value.I used the following code reason=prompt("Reason for deleting:","&... View Questions/Answers

XML  July 13, 2010 at 3:51 PM
Hello have a nice time,how to write an web.xml which can access both jsp page and servlet filecan you explain with example..thanking you. ... View Questions/Answers

javascript for textbox  July 13, 2010 at 2:23 PM
Dear sir , How to write a javascript for a textbox ?.I am doing a delet operation.When i clik on a particular record that record should be deleted before deleting it an alert message is shown ,if ok then deleting a record.But now i want when a user clik on ok for deleting then a text box... View Questions/Answers

Linux  July 13, 2010 at 1:18 PM
my question is that if i am from Pakistan and wants to buy the free CDs of Linux as advertised on roseindia.net then how i can do the same plzthanks ... View Questions/Answers

Linux  July 13, 2010 at 1:10 PM
how to install the application software in linux operatng system as same we are instal easily on windows operating systems ... View Questions/Answers

ToolTip Code  July 13, 2010 at 12:05 PM
Dear Sir, One more question i have.In my web page many students' roll number are there.I want to dispaly student's information just after placing the mouse on that roll number.(Details like-age,sex.location.)Only by placing,not by clicking.No new page should open.I heard ki Tooltip can b... View Questions/Answers

dropdownbox-form  July 12, 2010 at 9:32 PM
i have a problem i was create combobox using<html:select>when i select value in<html:select> the value related subform will be displayed in the same form and i use that fields for database insert if any one understand my problem give reply and send to... View Questions/Answers

java multithreading  July 12, 2010 at 8:34 PM
can i please get the program code for "producer consumer" problem using multithreading ... View Questions/Answers

Java program  July 12, 2010 at 8:08 PM
Can you please provide me a code for scientific calculator in java I need that in urgent.Please post me the answers ... View Questions/Answers

project on bank  July 12, 2010 at 8:01 PM
how to add textfield and label to panel one below the other ... View Questions/Answers

project on bank management system  July 12, 2010 at 7:59 PM
plz give me code to move from by clicking a button on one panel to other panel and the add textfield and label such as name , address etc to second panel and textfield are one below to other. ... View Questions/Answers

Javascript random number  July 12, 2010 at 6:54 PM
Dear Sir,I have a table with many coloumns with one coloumn as vacant corresponding to every row.All coloumns are retreived from database.I have to generate random numbers corresponding to every row.But problem is one constraint is there while generating random numbers.If there is 60 rows,i ha... View Questions/Answers

Interfaces and Abstract Classes  July 12, 2010 at 5:54 PM
What are the Scenarios where we use Interface and Abstract Classes? ... View Questions/Answers

object oriented programming  July 12, 2010 at 2:48 PM
sir,i read in the book tat object oriented program exhibits recurring structures.i want to know "what is meant by recurring structures?" ... View Questions/Answers

JSP Code  July 12, 2010 at 2:42 PM
can i show list of uploaded files in java then view one by one and after delete it?thanks for support ... View Questions/Answers

Javascript random number  July 12, 2010 at 12:25 PM
Dear Sir, I have a table with many coloumns with one coloumn as vacant corresponding to every row.All coloumns are retreived from database.I have to generate random numbers corresponding to every row.But problem is one constraint is there while generating random numbers.If there is 60 rows,... View Questions/Answers

Difference between EJB 2 and EJB 3  July 12, 2010 at 11:43 AM
I know we dont implement home and remote interfaces. 1)Do we have ejb-jar.xml in EJB 3.0? If it is not there, do we have anuthing else?2) What is the flow in EJB3.0. That isthe clientClass using the JNDI name looks for appropriate bean and operates. where is the deploye... View Questions/Answers

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:surya.bhavanasi@gmail.com ... 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

DMCA.com