Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

java  April 25, 2010 at 2:32 PM
Explain the process of adding class to existing packeges. ... View Questions/Answers

Java  April 25, 2010 at 2:31 PM
What happens if a final keyword is applied to Class, Function and Identifier. ... View Questions/Answers

hi  April 24, 2010 at 1:15 PM
hi sir,Thanks for ur coporation,i am save the 1 image with customer data,when i am search that customer data,i want to see that image (already saved image based on the customer data previously),plz provide program sir,plzzzzzzzzzz i have a panel that allows user to enter new custo... View Questions/Answers

Ads

java-help  April 24, 2010 at 12:33 PM
hello sir, please help me.....the below given is the output.java programhere in this program am using the stmtsta. append("clustering")where ta is a textarea created in input.java file.i have designed only one form with button and textarea. on button press this output.jav... View Questions/Answers

Getting an exception  April 24, 2010 at 11:18 AM
sir i used u r code for sending a mass email by reading an excel sheet,but i am getting a following error so please help me if any changes in code .thanks in advance..java.io.IOException: Invalid header signature; read 0x6576206C6D783F3C, expected 0xE11AB1A1E011CFD0 ... View Questions/Answers

JS  April 24, 2010 at 11:17 AM
<% try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:newdsn","sa","master"); Statement stat=con.createStatement();... View Questions/Answers

Java Programming  April 24, 2010 at 10:17 AM
Write an applet that accepts a string as input and prints it in reverse order. ... View Questions/Answers

PaySlip  April 23, 2010 at 9:31 PM
package dmm.ui;import dmm.bean.Employee;import dmm.bean.Employees;import dmm.bean.FullTimeEmployee;import dmm.bean.PartTimeEmployee;import java.io.BufferedWriter;import java.io.File;import java.io.FileWriter;import java.io.IOException;impor... View Questions/Answers

Mockstrutstest case in Weblogic  April 23, 2010 at 6:15 PM
Hello All,I'm testing junits with Maven 2 using MockStrutsTestCase.The web.xml file is not loading even after I set the servlet config file with setServletConfigFile.I get the follwoing errorjunit.framework.AssertionFailedError: Received an exception w... View Questions/Answers

thread class  April 23, 2010 at 4:30 PM
Create 2 Thread classes.One Thread is Incrementor and has one variable cnt1 with initial Value 0. Incrementor threads increments value of cnt1 by 1 each time. The other thread is Decrementor which has variable cnt2 with initial value 100. Decrementor threads decrements value of cn... View Questions/Answers

Ethernet port in java  April 23, 2010 at 4:29 PM
Hello,I am new to this field. I have to make an web application in JSP in which i have to decode the packets received on ethernet port. I have no idea how to program the ethernet port in java and read packets.Please guide me.......... ... View Questions/Answers

bank management  April 23, 2010 at 4:29 PM
Assume that the bank maintains two kinds of accounts for its customers, one called savings account and the other current account. The savings account provides compound interest and withdrawal facilities but no cheque book facility. The current Account provides cheque book facility ... View Questions/Answers

computer management  April 23, 2010 at 4:26 PM
Create a class Computer that stores information about different types of Computers available with the dealer. The information to be stored about a single computer is, - Company Name - RAM size. - Hard Disk Capacity. - Processor Speed. - Processor Make. ... View Questions/Answers

why jsp pages are not working on linux but java application is working in windows  April 23, 2010 at 4:22 PM
java web application jsp pages are not showing the fileds corectly on linux server but same application is working on windows.why? ... View Questions/Answers

Read a particular column in excel sheet  April 23, 2010 at 4:21 PM
hi sir i used ur code,but where i have to put that index value ,i am calling the following methods for sending a mail please help me if any changes.Following is my code for calling methods .thanks in advanceboolean isSuccess = false; String isValid = null; MailObject ma... View Questions/Answers

hi  April 23, 2010 at 2:48 PM
hi sir,Thanks for ur coporation, i am save the 1 image with customer data,when i am search that customer data,i want to see that image (already saved image based on the customer data previously),plz provide program sir,plzzzzzzzzzzzz ... View Questions/Answers

export to word document  April 23, 2010 at 2:45 PM
hi sir,when i am click on a button under the jtable,for example (print button),then i want to print that jtable in word document,automatically,plz provide program sir ... View Questions/Answers

jtable combo  April 23, 2010 at 2:42 PM
i am using jtable (using defaulttablemodel) ,when i am click on a particular cell of jtable i want to display the combo box in that cell,plz provide program ... View Questions/Answers

Read a particular column in excel sheet  April 23, 2010 at 12:57 PM
hi sir i want to a read a excel sheet ,in that i have to take a particular column that contains a mailIds ,use that column to send a mail to all so how to do this sir give me some code to do this sirthanks in advance.. ... View Questions/Answers

Project Question No. 2B : Create 2 Thread classes.One Thread is Incrementor and has one variable cnt1 with initial Value 0. Incrementor threads increments value of cnt1 by 1 each time.  April 23, 2010 at 12:22 PM
Create 2 Thread classes.One Thread is Incrementor and has one variable cnt1 with initial Value 0. Incrementor threads increments value of cnt1 by 1 each time. The other thread is Decrementor which has variable cnt2 with initial value 100. Decrementor threads decrements valu... View Questions/Answers

thanks  April 23, 2010 at 11:56 AM
thanks sir its working... ... View Questions/Answers

JAVA PROGRAM  April 23, 2010 at 11:13 AM
TO FIND OUT MINIMUM AND MAXIMUM NUMBERS IN AN ARRAY ... View Questions/Answers

java compilation error  April 23, 2010 at 10:46 AM
package punitha;import java.util.Vector;import javax.swing.*;import javax.swing.JFrame.*;import javax.swing.JTextField.*;import javax.swing.JButton.*;import javax.swing.JFileChooser.*;import javax.swing.JOptionPane.*;import javax.swing.JTextArea.*;... View Questions/Answers

java problem  April 22, 2010 at 7:46 PM
Room.javaThis file defines a class of Room objects. The objects have the following instance variables: number of beds in the room, of type integer; guest?s name, of type String; booking status of a room ? if the room has been booked, the status is 'true', otherwise it is... View Questions/Answers

datagram  April 22, 2010 at 7:29 PM
program that sends "hello" message to a machine named "yahoo" on port"4000" using datagram ... View Questions/Answers

hi  April 22, 2010 at 5:46 PM
hi sir,thanks for providing the datepicker program but i want to create a datepicker class in my package and i want to use that datepicker class when i am want,in that type of flexibility plz provide the program sir,in my project i am using the 1 frame for total project,in that jtabbedpanes a... View Questions/Answers

How to Open Text or Word File on JButton Click in Java  April 22, 2010 at 5:30 PM
How to Open Text or Word File on JButton Click in Java ... View Questions/Answers

Open Text or Word Document on JButton Click in Java  April 22, 2010 at 4:45 PM
How to open Word document or Text File on JButton Click in java ... View Questions/Answers

Related to multiple inhetitance  April 22, 2010 at 1:11 PM
Sir,Plz help me to solve this question.Q.1. Write a Progarm to illustrate the concept of multiple inheritance using interface ... View Questions/Answers

Java  April 22, 2010 at 12:59 PM
Sir,plz help me to solve these java problems:Q.1. Write a Progarm to illustrate the concept of multiple inheritance using interfaceQ.2. Write a program to illustrate subclasses an imported classQ.3. Write a program for creating thread using thread class.... View Questions/Answers

Getting an exception  April 22, 2010 at 12:57 PM
sir i m Getting an following exception while sending a mail with attachment value ofsession is [email protected] value of mimemessage is [email protected] value of internetaddress is [email protected]** length of attachment is 1... View Questions/Answers

Getting an exception  April 22, 2010 at 12:24 PM
sir i changed to that ieInputStream myInput1 = new FileInputStream(fileName); HSSFWorkbook myWorkBook = new HSSFWorkbook(myInput1);but when i click on a browse button and attached a file and then click on a read button to read a file it is displaying a new file instead of ... View Questions/Answers

java -netbeans help  April 22, 2010 at 12:23 PM
a simple program in netbeans ide to add two numbers and display the result as ADDITION OF TWO NUMBERS IS:70 in the textareadesign containsone textarea one buttonand two text field to get inputthese GUI actions should be in input.java filewhen u press the button i... View Questions/Answers

setbackground image to JFrame  April 22, 2010 at 11:36 AM
how to setbackground image to JFrame. ... View Questions/Answers

Create and Show Wordpad File on JButton Click  April 22, 2010 at 11:33 AM
Hello Sir I want to create wordpad or word document on JButton Click Event.which contains data which is currently on Form ie filled by User,with following format STUDENT ADMISSION FORMSTUDENT ID: (JTextField1Value currenly on Form)NAME: ... View Questions/Answers

sending a mail  April 22, 2010 at 11:23 AM
I m writing a code for send mail in jsp,i sending a mail to specified receiver but if i attach an file and send a mail then i m getting an error. Here Attachment is in String[] Attachment=null so how to convert from string to String[] here is whaString[] i have done... View Questions/Answers

Getting an exception  April 22, 2010 at 11:10 AM
thanks sir for u r reply ,but i already added that jar file sir even though i m getting an exception sir please help me sir ...thanks in advance.. ... View Questions/Answers

hi  April 22, 2010 at 10:39 AM
hi sir,create a new button and embed the datepicker code to that button sir,plzzzzzzzzzzzzzzzzzzzzzzzzzzz ... View Questions/Answers

datepick  April 22, 2010 at 10:33 AM
sir,when i am click on a submit button the datepicker is appeared sir ... View Questions/Answers

Error Opening File  April 22, 2010 at 10:33 AM
Dear,Please if help me to resolve this problem.I have an application in java that works correctly under Eclipse. But when I try to export it under Runnbale jar file on my desktop and I run this generated file, a message was displayed: Error opening file.<... View Questions/Answers

hi  April 22, 2010 at 9:46 AM
hi sir,u provide a answer for datepicker,but i don't know how to embed that datepicker to my panel This is my panel code,plz provide steps,how to embed the datepicker code to my panel. This is my panel code. package Welcome;import java.... View Questions/Answers

JSP code problem  April 22, 2010 at 6:57 AM
Hi friends, I used the following code for uploading an image file. After compilation it shows the required message, "Image successfully uploaded", but when i try to retrieve the image I'm unable to do so. The uploaded image is not getting saved anywhere. The fo... View Questions/Answers

Unicode  April 21, 2010 at 11:04 PM
hii wanna retrieve Unicode values from the database........when i do so and print the fetched values in java control (JTextArea) or IN doc or RTF or WEB page it get the UNICODE as ????? what can i do so Language JAVA platform XPdatabase SQL... View Questions/Answers

unicode  April 21, 2010 at 11:02 PM
hii wanna retrieve Unicode values from the database........when i do so and print the fetched values in java control (JTextArea) or IN doc or RTF or WEB page it get the UNICODE as ????? what can i do so Language JAVA platform XPdatabase SQL... View Questions/Answers

Getting an exception  April 21, 2010 at 5:18 PM
sir i am Getting following exception when executingjavax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/poi/poifs/filesystem/POIFSFileSystemI have used ur codeimport java.io.FileInputStream;import java.util.Iterator;import java.u... View Questions/Answers

Access Report to Java Application  April 21, 2010 at 4:30 PM
Hello Sir can I connect Access Report to Java Application when i Enter Student ID in JTextField then the Appropriate Records From the Database will Be Shown in to Access Report. plz Help Me ... View Questions/Answers

How to Create and display Reports in Java with Database connectivity  April 21, 2010 at 3:57 PM
Hello Sir ,I have Created Student Admission Form with Swing and MS Access 2007 Database Connection,when i will click on Print button it shows the report of student id which is exists in the Current JTexfield /when I give Student Id Number then it Shows the Report with that prticular id with ... View Questions/Answers

sql query  April 21, 2010 at 3:49 PM
hi sir,i have a month and year numbers,when i am enter a month and year in sql query then i want results for 1st day of month to last day of month in that year for that month plz provide a solution for me plzzzzzzzzzz ... View Questions/Answers

set a class path  April 21, 2010 at 2:49 PM
thanks u sir i got a .jar file,but while declareing a HSSFWorkbooks wb = new HSSFWorkbooks(); i m getting a error in eclipse .how to set a classpath for that please help me sir thanks in advance... ... View Questions/Answers

I want simple steps to create Jar File of Java Project  April 21, 2010 at 11:53 AM
Hello Sir How I can Create Jar File of Java Project,plz Help Me ... View Questions/Answers

How to create and Attach MS Access Reports and Crystal Reorts in Java.  April 21, 2010 at 11:35 AM
How to create and Attach MS Access Reports and Crystal Reorts in Java WITH MS Access 2007 Database, plz Help Me Sir ... View Questions/Answers

Create Reports in Java with access database  April 21, 2010 at 11:23 AM
Hello Sir How to Create Reports of Any Type using Java when i submit data is stored in the MS access database,but when I click on PRINT Button then it will display it into either Text File or any type of Report and then i want to print it.How I can Generate it plz help Me ... View Questions/Answers

i need your help  April 21, 2010 at 9:31 AM
Write a java program that:i. Allows user to enter 2 numbers from the keyboardii. Uses a method to compare the two numbers to determine which is largeriii. Print to the screen stating which number is larger than the other. ... View Questions/Answers

Data Redundancy  April 20, 2010 at 9:08 PM
Sorry for disturbing you again but there's redundancy of the selected data on this jsp u gif me. The selected data will appear twice at the drop down box. I've tried to fix it but still unable to do so. Is there anything can be done?<%@ page language="java" import=&quo... View Questions/Answers

CLOB example  April 20, 2010 at 8:09 PM
Hi everybody can u tell me the method to use CLOB in javathe CLOB is to use with database ..........it must retrieve value with resultset and display in the JTextArea that fetched text.......thanku ... View Questions/Answers

java  April 20, 2010 at 7:46 PM
i want know the basics of the struts ... View Questions/Answers

java  April 20, 2010 at 7:41 PM
why we will use the public static void main(String args[])? and explain each term in that syntax. ... View Questions/Answers

java  April 20, 2010 at 7:37 PM
what is the importance of System.out.print("");?in this why we will use System,".",out, and print? ... View Questions/Answers

question on class  April 20, 2010 at 7:07 PM
A class can act as subclass itself?if yes give me one example if no give me one example ... View Questions/Answers

How to Create any type of Reports in Java  April 20, 2010 at 6:20 PM
Hello Sir ,How I can create any type of Reports like Crystal Reports etc(Student Result Report) in Java Application,plz Help Me Sir ... View Questions/Answers

java code  April 20, 2010 at 5:41 PM
how to read an xml file in java and store its contents into a database ?i want to know the flow ... View Questions/Answers

print only Form Fillup Contents through Text File  April 20, 2010 at 5:27 PM
Hello Sir ,I have Designed Employee Details Form using java swing components Now i want to print contents which is filled by employee,How i can Print it,and also i want print it with word means when i click on print then contents which is filled in employee form(swing application) that contents wi... View Questions/Answers

PHP  April 20, 2010 at 2:42 PM
Hello,I have to check the images.If I mages found relative change it to absolute.for example ../default/test.png ---->/image/default/test.png.I have try this with str_replace("..", "/image", $vae). but its not a good idea to do it.If there is any ... View Questions/Answers

requesting for a jar file  April 20, 2010 at 12:17 PM
Sir Please send me a jar file of this sir , i need this package jar file org.apache.poi.hssf.usermodel for Excel reading /Writing in java please help me.thanks in advance.... ... View Questions/Answers

Advanced Concepts with Classes  April 20, 2010 at 11:58 AM
Advanced Concepts with Classes( Inheritance, Polymorphism, Overriding)i need help to create this application,than youEmployees in a company are divided into the classes Employee, HourlyPaid,SalesCommissioned, and Executive for the purpose of calculating their weeklywage... View Questions/Answers

SIMULATING AN ELEVATOR  April 20, 2010 at 11:55 AM
Classes, Methods, Constructorsplease i need help to create an elevator programSimulating an Elevatorwrite an Elevator class containing various methods.Then, write a program that creates Elevator objects and invokes the various methods.put comments on methods and h... View Questions/Answers

problem in record viewing in jsp  April 20, 2010 at 11:08 AM
hai i send the code can you please find where is the problem it is not showing any error but i cannot able to view the record after eclipse ide is closed and reopen iti have used the jsp and servlet and back end mysqlactually what is my problem is i have to everytime refresh the viewing ... View Questions/Answers

drag n drop  April 20, 2010 at 10:42 AM
I want to implement drag n drop functionality for simple HTML/JSP without using applet,flash or any heavy components.using browse button user can select one file at a time.but user needs to select multiple files using drag and drop mode.when user drag n drop file then display the complete path in te... View Questions/Answers

for store data in data base  April 20, 2010 at 10:02 AM
i want to a job site, in this site user can registered by a form..in this form there are his information...i use three form for it1)for user name and password..2)for personal detail...3)for educational details..by 1 and 2 i can move on three by continue.. button..... View Questions/Answers

ejb  April 20, 2010 at 9:31 AM
plz send me the process of running a cmp with a web application send me an example. ... View Questions/Answers

NullPointerException  April 19, 2010 at 10:26 PM
I wonder why this coding could not work since i really need to pass the selected choice inside, giving me real time data change from the database.I guess this is the structure I need to to so.The jsp just couldn't read from the parameter "name" but if i directly insert a string into the va... View Questions/Answers

airline reservation java code  April 19, 2010 at 8:37 PM
Write a program that simulates the booking of seats on board a small airplane. The layout of the aircraft is illustratedbelow. You will be required to create a menu based system with the following choices:(a) View Seating (b) Book a Seat (c) Cancel a Booking (d) Reset All (e) QuitE... View Questions/Answers

java  April 19, 2010 at 7:11 PM
a java code that takes input regular expression and a string and produces as output all lines of the string that contains a substring denoted by regular expression ... View Questions/Answers

c programming language  April 19, 2010 at 6:44 PM
int main(){ int i = 1, c = 0, sum = 1,j ; scanf("%d", &j); while (i <= j) { sum = sum + (i /3+i/5); printf("%d\n", sum); i = ... View Questions/Answers

C++ programming language  April 19, 2010 at 6:37 PM
int main(){ int i = 1, c = 0, sum = 1,j ; scanf("%d", &j); while (i <= j) { sum = sum + (i /3+i/5); printf("%d\n", sum); i = ... View Questions/Answers

java Class  April 19, 2010 at 6:32 PM
Can anyone please explain what this code means?import java.util.TreeMap;import java.util.Iterator;//Please tell me what this class declaration means????????????public class ST<Key extends Comparable<Key>, Val> implements Iterable<Key>{... View Questions/Answers

what is the need of...  April 19, 2010 at 4:59 PM
what is the need of " return type like void ? ... View Questions/Answers

Problem in record viewing in jsp  April 19, 2010 at 4:54 PM
hai i have developed the application using jsp,servlets in eclipse idei have to insert,delete,update and view .no problem all are working but in view part alone some problem i dont knowwhat it is i cannot view the record after eclipse ide is closed and reopen itbut when... View Questions/Answers

J2EE  April 19, 2010 at 4:01 PM
I have just completed a beginners project using jsp and servlet on netbeans ide. I have adequate knowledge of core java. From where do i study the portion of JSP and Servlet in detail. What should i study after this. ... View Questions/Answers

JSP and servlet code  April 19, 2010 at 3:55 PM
I have created a JSP page for login and a servlet page which takes the parameters and performs the required processing. I'am unable to create a session from this servlet to the the page directed. How do I carry out session tracking from this page to the page directed and the further links in the pag... View Questions/Answers

question paper  April 19, 2010 at 12:23 PM
I am doing a project in jsp of creating question paper from question bank.Here we have to generate a paper based on the language like c,c++.we want to know how to generate the paper by considering two question from each area like inheritence,exception handling.the question has to be ran... View Questions/Answers

how to install the jboss application server on windows xp sp2?  April 19, 2010 at 12:18 PM
How to install and run the web application on jboss on windows xp sp2 ... View Questions/Answers

swings  April 19, 2010 at 9:41 AM
hi sir,plz write a program for the (when i am enter any text in jcombobox ,based on the key valuethe results(from database) are displayed under my jcombobox ) sir,plzzzzzzz ... View Questions/Answers

createCustomer method in Java  April 19, 2010 at 9:08 AM
I'm just trying to add a createCustomers() to an existing code. I have all of my GUIs and it compiles, but I'm kind of stuck here. My code is as follows:import java.awt.*;import javax.swing.*;import java.awt.event.*;import java.util.*;import java.io.*;impo... View Questions/Answers

object 2 string  April 18, 2010 at 6:21 PM
hi sir,how to convert object to string and how 2 compare object with null value to string with null value plz provide a program 4 this sir,plzzzzzzzzz ... View Questions/Answers

im new to java  April 18, 2010 at 12:44 PM
what is the significance of public static void main(string args[])statement ... View Questions/Answers

SQL or UNICODE  April 18, 2010 at 11:02 AM
Hi again............I have got something new that...........i was using MS Access as the database with my JAVA Japplet....In my applet i used JTextArea to display the output .....The output to display is fetched from the database which is connected using DSN... View Questions/Answers

UNICODE or SQL statement issue  April 18, 2010 at 11:01 AM
Hi again............I have got something new that...........i was using MS Access as the database with my JAVA Japplet....In my applet i used JTextArea to display the output .....The output to display is fetched from the database which is connected using DSN... View Questions/Answers

hi  April 18, 2010 at 9:29 AM
hi sir,i want to insert a record in 1 table for example sno sname sno1 i want to insert the value of sno as 1,2,3,............ when the time of insertion i want to sno1 consists the same values of sno wh... View Questions/Answers

count asterisk in a grid  April 18, 2010 at 3:22 AM
I need to write a program that uses a recursive method to count the number of asterisk in a square grid ... View Questions/Answers

multiple form with multiple function in 1 jsp  April 17, 2010 at 11:38 PM
Hi, I'm using Netbean 6.8, mysql, and tomcat for my web application.I was having problem in triggering my jsp with 2 forms as 1 for registration and 1 for log in. I need to trigger each form to call several function when user click buttons of these forms. Eventhough i put these forms into 1 fo... View Questions/Answers

Java swing code  April 17, 2010 at 5:53 PM
How to validate input data entered into the swing applications in java? ... View Questions/Answers

Java  April 17, 2010 at 5:19 PM
Sir,My code is attached here...When i run the program The gui is visible..When i click on feature button The control goes to classes ShowImage and ColorInformation From ShowImage the calculated values are showing through the method PrintTexturevalues a... View Questions/Answers

what is this..  April 17, 2010 at 4:10 PM
what is the differece between platform independant and platform dependant? ... View Questions/Answers

Java  April 17, 2010 at 3:17 PM
write a program in java to illustrate importing classes from other packages? ... View Questions/Answers

Command Button Validation in VB 6.0  April 17, 2010 at 1:11 PM
Hello Sir I want to validate at a once Click on Vb Command Button ,when User First Time Clicks on Print Button then it will print that report and after that when user click second time on that button it shows msg u can Print Report user has already get this Print ,How i can Validate in Vb 6.0 with ... View Questions/Answers

Session tracking in login jsp program  April 17, 2010 at 10:13 AM
I have using jsp technology in my project.I want to do session trackingin my login form.After logout when i press back button it should be show session is expired.Please help me.Send jsp code on my email id :[email protected] ... View Questions/Answers

Transferring values between javascript and java code in jsp  April 16, 2010 at 10:59 PM
Is there a way to transfer values between the javascripts and the java code(scriptlet, expressions etc) in a jsp page? ... View Questions/Answers

List of checkboxes  April 16, 2010 at 9:24 PM
Hi!I appreciate your effort for giving the response but now it displays only the last value of ArrayList. In other words, it is now displaying just the last time slot. Also, without clicking the checkbox that single time slot gets deleted. I'm resending the modified code=... View Questions/Answers

Passing Parameter  April 16, 2010 at 9:04 PM
Hi, it'me again. Below is the set of code that I get from your solution entitled droplist that read from database. It do read from database but in the textbox of the webpage, i need it to show something associated with the data i selected. Therefore, i've modify it into something like below which is... View Questions/Answers

DMCA.com