Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

how to drag top most images which is draw on applet.  April 28, 2012 at 5:06 PM
Please help me, I have draw 83 images one by one from g.drawImages(,,,,); now I want to drag last image from 83 images and drop it suitable place, Now please help me , how can I drag top most images ........... ... View Questions/Answers

framework in java apps  April 28, 2012 at 2:10 PM
com.scooterframework.orm.sqldataexpress.object.RowData how to import the framework got the error in normal import ... View Questions/Answers

java software  April 28, 2012 at 1:35 PM
how to install java related software in Windows7 ?(jdk,tomcat etc) ... View Questions/Answers

Advertisement

how to Insert Array Values Into Separate Rows using java?  April 28, 2012 at 11:57 AM
how to Insert Array Values Into Separate Rows using java?... View Questions/Answers

online exam  April 28, 2012 at 11:43 AM
Write a program to determine if an input string x is a substring of another input string y. For example, a "bat" is a substring of "abate" but not a substring of "beat". ... View Questions/Answers

online exam  April 28, 2012 at 11:41 AM
The Government of Byteland has decided to issue new currency notes with special protection features to commemorate their great mathematician Byteguru. Byteland has decided to issue notes using the following rules It will issue notes upto value N such that all the sums from 1 to N sh... View Questions/Answers

online exam  April 28, 2012 at 11:41 AM
The Government of Byteland has decided to issue new currency notes with special protection features to commemorate their great mathematician Byteguru. Byteland has decided to issue notes using the following rules It will issue notes upto value N such that all the sums from 1 to N sh... View Questions/Answers

online exam  April 28, 2012 at 11:41 AM
The Government of Byteland has decided to issue new currency notes with special protection features to commemorate their great mathematician Byteguru. Byteland has decided to issue notes using the following rules It will issue notes upto value N such that all the sums from 1 to N sh... View Questions/Answers

online exam  April 28, 2012 at 11:39 AM
The file geneexpr500x204.gct contains gene expression values for 500 genes (analytes) and 204 samples. (a) Extract the sample names from the file geneexpr500x204.gct. Save the list (one sample name per line) to a text file called "samples.grp" (b) Rename the sample names... View Questions/Answers

c++ program  April 27, 2012 at 8:20 PM
Write a program which reads a text from the keyboard and displays the following information on the screen in two columns: (a) Number of lines (b) Number of words (c) Number of characters Strings should be left justified and numbers should be right justified in a suitable field width. ... View Questions/Answers

c++ programs  April 27, 2012 at 8:18 PM
Write a program with the following (a) A function to read two double type numbers from keyboard (b) A function to calculate the division of these two numbers (c) A try block to throw an exception when a wrong type of data is keyed in (d) A try block to detect and throw an exception if the conditi... View Questions/Answers

c++ programs  April 27, 2012 at 8:17 PM
Write a program with the following (a) A function to read two double type numbers from keyboard (b) A function to calculate the division of these two numbers (c) A try block to throw an exception when a wrong type of data is keyed in (d) A try block to detect and throw an exception if the conditi... View Questions/Answers

How to save user interface in flex for design tool  April 27, 2012 at 7:20 PM
Hi I want to create a flex application "sticker design tool" in which i want to save all the caption/logos used with its properties like size,position,textcolor etc.,so when user want to re-customize it later on then he can able to re-customize it. please suggest me any idea to do... View Questions/Answers

security for html  April 27, 2012 at 5:26 PM
i want to set username and password for my html file for opening of another connection. ... View Questions/Answers

calculate difference between two dates  April 27, 2012 at 5:22 PM
hi, I was actually working on to calculate the number of days between two dates of dd/mm/yyyy format using javascript. can anyone suggest me how to work it outin calculating the difference between the two dates ... View Questions/Answers

how insert multiple images in mysql database with use of struts 1.3.8 or java method, with single bean,or using array  April 27, 2012 at 5:22 PM
i am using netbeans 7.0 ,with struts 1.3.8 and i want to insert multiple images in mysql database ,with use of struts 1.3.8 ,or with the help of Array methods ,like google multiple attachment method with single bean .please advise me to solve it....Thanks..Arvind Sahu ... View Questions/Answers

c++ program of inheritance  April 27, 2012 at 5:08 PM
Assume that a bank maintains two kinds of accounts for customers, one called as savings account and the other as current account. The savings account provides compound interest and withdrawal facilities but no cheque book facility. The current account provides cheque book facility but no interes... View Questions/Answers

JAVA Code for Getting List of Directories and its SubDirectories from FTP server  April 27, 2012 at 4:18 PM
**Hi. I am trying to get list of all directories and sub directories and its files from "FTP" and want to show in Jtree but i am unable to do it.Please Give me some code and also explain it. Thanks** > Mayank Soni ... View Questions/Answers

getting errors  April 27, 2012 at 4:06 PM
public class positive { public static void main(String[] args) { retainPositiveNumbers(a); } private static int n; private static int j; static int a[]={-1,2,3,4,-5}; static int c[]={}; public static int[] retainPositiveNumber... View Questions/Answers

Add a file into database  April 27, 2012 at 12:37 PM
Provide the code to upload a file into oracle database? ... View Questions/Answers

Synchronization  April 27, 2012 at 10:04 AM
i want code for synchronization using in jsp and servlets? ... View Questions/Answers

calculate difference of two times and express it in terms of hours  April 27, 2012 at 9:28 AM
i need jsp code to find out the difference of two times in format hh:mm:ss and want to round off the result to a hour value.it's very urgent.plz someone help me ... View Questions/Answers

calculate difference of two times and express it in terms of hours  April 27, 2012 at 9:28 AM
i need jsp code to find out the difference of two times in format hh:mm:ss and want to round off the result to a hour value.it's very urgent.plz someone help me ... View Questions/Answers

calculate difference of two times and express it in terms of hours  April 27, 2012 at 9:28 AM
i need jsp code to find out the difference of two times in format hh:mm:ss and want to round off the result to a hour value.it's very urgent.plz someone help me ... View Questions/Answers

calculate difference of two times and express it in terms of hours  April 27, 2012 at 9:28 AM
i need jsp code to find out the difference of two times in format hh:mm:ss and want to round off the result to a hour value.it's very urgent.plz someone help me ... View Questions/Answers

calculate difference of two times and express it in terms of hours  April 27, 2012 at 9:24 AM
i need jsp code to find out the difference of two times in format hh:mm:ss and want to round off the result to a hour value.it's very urgent.plz someone help me ... View Questions/Answers

radiobutton  April 26, 2012 at 9:12 PM
how to add radiobutton in combobox in java ... View Questions/Answers

J2ME  April 26, 2012 at 2:56 PM
Dear Sir, Am beginner of j2me am asking so many times but still now i didn't get a reply for you...I want source code to scan a image and upload to server in j2me also QR Code decoding in j2me thanks and regards Senthil... ... View Questions/Answers

ActionClass-Validation  April 26, 2012 at 1:57 PM
Where should we place ActionClass-Validation.xml files.? ... View Questions/Answers

Drop Down Reloads again in IE..How to prevent this?  April 26, 2012 at 1:45 PM
Hi i was using two drop down box..One for Displaying date followed by another for Dispalying Month..If i Select/Change Month from the 2nd drop down then the 1st drop down ( which is date) automatically loads to Day 1 which is first value..This is the problem im facing in IE but it works well in F... View Questions/Answers

Null reference error in javascript function?  April 26, 2012 at 1:33 PM
?° want to use this code but when the page opens, I get a null reference error. When I open the page a second time, this error doesn't occur. I understand when the site caches, this error doesn't occur. The error comes from tb_show function. My code: ... View Questions/Answers

JSP Forward action  April 26, 2012 at 1:30 PM
Jsp forward action tag examples? ... View Questions/Answers

Selecting value from autocomplete textbox using jquery in jsp  April 26, 2012 at 1:29 PM
hello Sir, I completed ur tutorial on autocompletion textbox from database using Jquery in jsp .It worked Fine .Thank you For Ur valuable Guidance .But it does not select the suggested values in the textbox,means on clicking particular field of autosuggested value does not retrieve that value in ... View Questions/Answers

Jsp Action Tags  April 26, 2012 at 1:26 PM
how can i use jsp forward action tag?i want examples ? ... View Questions/Answers

Drop Down reload in IE  April 26, 2012 at 12:52 PM
Hi i was using two drop down box..One for Displaying date followed by another for Dispalying Month..If i Select/Change Month from the 2nd drop down then the 1st drop down ( which is date) automatically loads to 1 which is first value..This is the problem im facing in IE but it works well in Firef... View Questions/Answers

technical Que  April 26, 2012 at 11:56 AM
What is the exact use of abstract class and interface? Which one is better abstract class or interface? Thank you ... View Questions/Answers

save excel file with save and open dilog box  April 26, 2012 at 11:40 AM
following is my jsp code it is working correct.. i want to save excel file throgh jsp bt not by hard coded path as i have written in my prog(File file=new File("c:\"+fname+".xls");) user should have freedom to save the file in any location so plz give me suggestions ... View Questions/Answers

Textbox allows only numbers in java wicket  April 26, 2012 at 10:35 AM
Please provide me wicket code for text box that allows only numbers to type. Thank you. ... View Questions/Answers

Question  April 26, 2012 at 9:24 AM
Sir, which is more better and good to study in struts1 or struts2.compare these two and give me an advice to select of them.reply me as soon as possible. ... View Questions/Answers

Graphic interface java help  April 26, 2012 at 7:29 AM
A modified checkers program with class name Checkers using double buffering. Somehow the program must have two top squares and two bottom squares. There should be two checkers of different color. The two checkers always move in opposite directions. When a checker reaches the end of its path, it s... View Questions/Answers

Java Programs  April 26, 2012 at 3:43 AM
Hello. I need help with the following. Write a program that prompts the user for 2 different integers, then prints out the numbers between the 2 integers (inclusive) and their squares and the sum of their squares. Use a loop. Print out the following- be sure to use loop. ... View Questions/Answers

A Java program to simulate throwing a die  April 26, 2012 at 2:51 AM
A Java program to simulate throwing a die (singular of dice) 6000 times and store the frequency with which each face of the die is uppermost after each throw in an array. A couple of sample outputs follow: 1: 1020 2: 1015 3: 990 4: 1036 5: 941 6: 998 1: 984 2: 1016 3: 967 4: 1028... View Questions/Answers

Questiön  April 25, 2012 at 11:13 PM
Sir, please send me a simpe program to compare jsp and struts.so send me the same program in jsp,servlet and in struts ... View Questions/Answers

Interview Que  April 25, 2012 at 8:55 PM
I want to Java Interview Questions ... View Questions/Answers

Relative positioning of the child window on top based on the movement of parent window  April 25, 2012 at 8:43 PM
Relative positioning of the child window on top based on the movement of parent window ... View Questions/Answers

session object  April 25, 2012 at 5:44 PM
how to make session from one servlet to another servlet for an integer variable. ... View Questions/Answers

scan a image and upload to server  April 25, 2012 at 5:29 PM
I have code for capture image and upload to server..after capture that image decoded it going to be convert digit value....My client want to scan a image and upload to server in j2me please refer me,to send a code for to scan a image and upload to server in j2me Thanks and Regards Alag... View Questions/Answers

how to use marathi font in swing?  April 25, 2012 at 5:21 PM
I want to use marathi language on labels,buttons. ... View Questions/Answers

Change font in swing?  April 25, 2012 at 5:21 PM
I want to use marathi language on labels,buttons. ... View Questions/Answers

How to display mysql database records as per clock timing?  April 25, 2012 at 5:19 PM
I want to display database records as per clock timing. ... View Questions/Answers

Browser's back button  April 25, 2012 at 5:03 PM
how to redirect to a home page when browser's back button is pressed in jsp instead of displaying the previous page? ... View Questions/Answers

Enable Browser's back button  April 25, 2012 at 5:03 PM
how to redirect to a home page when browser's back button is pressed in jsp instead of displaying the previous page? ... View Questions/Answers

Browser's back button  April 25, 2012 at 5:03 PM
how to redirect to a home page when browser's back button is pressed in jsp instead of displaying the previous page? ... View Questions/Answers

Back button  April 25, 2012 at 5:00 PM
how to redirect to a home page when a back button is pressed in jsp instead of displaying the previous page? ... View Questions/Answers

Character encoding problem with chinese language  April 25, 2012 at 4:33 PM
I have a issue with characters in chinese locale in java. Iam using eclipse IDE My code is "java.util.Date stdDate = new SimpleDateFormat("dd/MM/yyyy").parse(10/10/2012); String formattedDate = new SimpleDateFormat("dd MMMM yyyy",Locale.CHINESE).format(stdDate);" But iam getting month name a... View Questions/Answers

should not go back to index.jsp when press on the link logout  April 25, 2012 at 4:23 PM
Hello i m having a problem in my servlet page.Actully what i m trying to do is that i made a index.jsp page in which i m having the two labels user id and password and their corrosponding text fields.now i made a servlet class i.e. SessionServlet.java in which i print the message "you havesuccess... View Questions/Answers

should not go back to index.jsp when press on the link logout  April 25, 2012 at 4:22 PM
Hello i m having a problem in my servlet page.Actully what i m trying to do is that i made a index.jsp page in which i m having the two labels user id and password and their corrosponding text fields.now i made a servlet class i.e. SessionServlet.java in which i print the message "you havesuccess... View Questions/Answers

should not go back to index.jsp when press on the link logout  April 25, 2012 at 4:22 PM
Hello i m having a problem in my servlet page.Actully what i m trying to do is that i made a index.jsp page in which i m having the two labels user id and password and their corrosponding text fields.now i made a servlet class i.e. SessionServlet.java in which i print the message "you havesuccess... View Questions/Answers

convertion  April 25, 2012 at 2:58 PM
how to convert java class to executable file using command prompt ... View Questions/Answers

convertion  April 25, 2012 at 2:56 PM
how to convert java class to executable file ... View Questions/Answers

upload the text file through html and insert those data into the table  April 25, 2012 at 12:11 PM
i want to take input form a text file.there is a table in database oracle contains lot of columns.text file also contains lot of data to insert into table.now i want to upload the text file through html and insert those data into the table.for this i want to write servlet program.can anyone helpm... View Questions/Answers

JSP  April 25, 2012 at 12:05 PM
I am selecting 'name' from database using combo-box. now how can i retrieve corresponding 'id' of name in text-box in jsp and servlet i am using mvc framework plz help.... ... View Questions/Answers

display all the values on next page  April 25, 2012 at 12:00 PM
i am inserting values in the database through textboxes and dropboxes, when i am clicking on submit button those values are inserting in the database and i am moving on another page after doing some functionality on next page i am returning on my first page and i want when i return on first page ... View Questions/Answers

I want to create a bar diagram by writing code in jsp and taking input data from the values stored in the oracle database. Can u please help me with this code?  April 25, 2012 at 11:56 AM
HI I want to create a bar diagram by writing code in jsp and taking input data from the values stored in the oracle database. Can u please help me with this code? ... View Questions/Answers

Display Tag Customization  April 25, 2012 at 11:54 AM
Hi, I am in need of using export data option in display tag open source suite in my jstl page. The pdf export should have first page with my company's logo and last page as Confidential Information of my company(Can be logo). The Inbetween pages should have the actucal export of data in pdf. Can... View Questions/Answers

general  April 25, 2012 at 10:52 AM
which technology is used in your site. ... View Questions/Answers

validation files  April 25, 2012 at 10:51 AM
If I place validation files in the folder where the action classes are present,will there any error arise..? ... View Questions/Answers

Filter/Controller  April 25, 2012 at 9:58 AM
what is the difference b/w org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter and org.apache.struts2.dispatcher.FilterDispatcher. which of the above is really used as controller and which one is filer. I have confusion with these two. Is there any d/f b/w filter and Dis... View Questions/Answers

3 Java Programs for Beginners  April 25, 2012 at 9:02 AM
Write a program that prompts the user for 2 different integers, then prints out the numbers between the 2 integers (inclusive) and their squares and the sum of their squares. Write a program that reads a string from a user and then prints it out one character at a time. Write a pr... View Questions/Answers

Generating Random Numbers to Fill array. Java Beginner needing help!  April 25, 2012 at 5:27 AM
Hello all! I am new to this site, and Java programming. My problem is: Write a program that produces random permutations of the numbers 1 to 10. eg. (1,4,7,10,2,9,8,3,6,5) or (10,7,9,2,1,3,6,5,4,8). My class needs to have the following methods: // Displays the array permutatedNumbers to the conso... View Questions/Answers

JPQL helpppppp please very important  April 25, 2012 at 1:11 AM
there are 3 tables: book: isbn title loan: isbn borrowerId borrower: borrowerId FirstName LastName I want to write a JPQL Query that show only the Available books and not loaned by anyone Could anyone help me help me please with the Query ... View Questions/Answers

Insurance  April 25, 2012 at 12:31 AM
package insu; import java.util.ArrayList; public class Customer { static int lastid=100; private String id; private String idproof; private String name; private int age; private String gender; private String address; ... View Questions/Answers

Library  April 25, 2012 at 12:26 AM
public class Book { String bookName,author; int bookId,noOfCopies; public String getBookName() { return bookName; } public void setBookName(String bookName) { this.bookName = bookName; } public String getAuthor... View Questions/Answers

Supermarket  April 25, 2012 at 12:23 AM
package com.ilp.tcs; public class Catalogue { String proName,prodesc; double price; public String getProName() { return proName; } public void setProName(String proName) { this.proName = proName; } public Str... View Questions/Answers

Hospital Patient  April 25, 2012 at 12:07 AM
import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Hospital { /** * @param args */ public static void mai... View Questions/Answers

Bank  April 24, 2012 at 11:59 PM
package com.tcs.ilp; public class BankDetails { String emp_id; String emp_role; double emp_salary; //String cust_name; //double loan_amount; //int branch_code; BankDetails(String id,String role,double salary) { e... View Questions/Answers

Bank  April 24, 2012 at 11:59 PM
package com.tcs.ilp; public class BankDetails { String emp_id; String emp_role; double emp_salary; //String cust_name; //double loan_amount; //int branch_code; BankDetails(String id,String role,double salary) { e... View Questions/Answers

Bank  April 24, 2012 at 11:59 PM
package com.tcs.ilp; public class BankDetails { String emp_id; String emp_role; double emp_salary; //String cust_name; //double loan_amount; //int branch_code; BankDetails(String id,String role,double salary) { e... View Questions/Answers

Bank  April 24, 2012 at 11:59 PM
package com.tcs.ilp; public class BankDetails { String emp_id; String emp_role; double emp_salary; //String cust_name; //double loan_amount; //int branch_code; BankDetails(String id,String role,double salary) { e... View Questions/Answers

Bank  April 24, 2012 at 11:59 PM
package com.tcs.ilp; public class BankDetails { String emp_id; String emp_role; double emp_salary; //String cust_name; //double loan_amount; //int branch_code; BankDetails(String id,String role,double salary) { e... View Questions/Answers

Bank  April 24, 2012 at 11:59 PM
package com.tcs.ilp; public class BankDetails { String emp_id; String emp_role; double emp_salary; //String cust_name; //double loan_amount; //int branch_code; BankDetails(String id,String role,double salary) { e... View Questions/Answers

hospital patient  April 24, 2012 at 11:38 PM
import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.Scanner; public class PatientFunction { Scanner s=new Scanner(System.in); public Patient updatePatient(Patient p) { int ctr=0; ... View Questions/Answers

Java code problem  April 24, 2012 at 11:25 PM
Please check the errors,if any,in this code...i am a java beginner import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Hospital... View Questions/Answers

program to enter values from one jsp page and then do calculation on some formula and that results is displayed in another jsp  April 24, 2012 at 9:27 PM
<%@ page language="java" import="java.util.*;"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> </head> <body> <form method="post" action="exp2"> <br><br><br> <tabl... View Questions/Answers

to read a file and seperate vowels and consonants to other files  April 24, 2012 at 8:44 PM
import java.io.*; public class alpha { public static void main(String[] args)throws IOException { try { FileInputStream fstream = new FileInputStream("C:/Documents and Settings/549176/Desktop/atoz.txt"); DataInputStream in = new DataInputStream(fst... View Questions/Answers

Program to count the number of unique words in a file using HashMap  April 24, 2012 at 8:00 PM
import java.io.File; import java.io.FileNotFoundException; import java.util.*; public class CountUniqueWords { public static void main(String args[]) throws FileNotFoundException { File f = new File("C:/547647/word.txt"); ArrayList a... View Questions/Answers

vowels and consonants  April 24, 2012 at 6:51 PM
import java.lang.String; import java.io.*; import java.util.*; public class Vowels{ public static void main(String args[])throws IOException{ File aa = new File("C:\\Temp1\\1.txt"); File bb = new File("C:\\Temp1\\2.txt");... View Questions/Answers

singleton program  April 24, 2012 at 5:58 PM
import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Scanner; public class Emp{ public static void main(String[] args) { System.out.println("G... View Questions/Answers

tO FIND UNIQUE WORDS IN A FILE USING HASHMAP  April 24, 2012 at 5:20 PM
import java.util.*; import java.io.*; public class countunique { private String[] splitter; private int[] counter; /* * @param String - represents the sentence to be parsed * */ public void countWords(String text){ // remo... View Questions/Answers

singleton  April 24, 2012 at 5:17 PM
import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.*; import java.util.Scanner; public class New { private static Connection connection = null; public Connection getConnection() { try { ... View Questions/Answers

resultset metadta  April 24, 2012 at 4:30 PM
import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; public class EmployeeDetails{ public static void main(String[] args) { System.out.p... View Questions/Answers

diff b/w applet and servlet  April 24, 2012 at 4:30 PM
what is the difference between applet and servlet? ... View Questions/Answers

uploading a text file into a database  April 24, 2012 at 3:54 PM
how to upload a text file into a database using jchooser ... View Questions/Answers

Question of apatten  April 24, 2012 at 2:37 PM
Welcome EveryOne , I have the progrem of apatten But have Errors within the program : public class pattern { public static void main(String[]args){ displaypattern(7); } public static void displaypattern(int n){ for(int rows=1;row <=n;row++){ //pr... View Questions/Answers

Database  April 24, 2012 at 2:08 PM
package com.ilp.tsi.um.dao; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import com.ilp.tsi.um.constants.Constant; public class Daopack { public static Connection createconnection() { Connection conne... View Questions/Answers

dao  April 24, 2012 at 1:57 PM
package com.ilp.tsi.um.dao; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import com.ilp.tsi.um.constant.BankConstant; public class BankDao { public static Connection createconnection() { Connection co... View Questions/Answers

query optimization  April 24, 2012 at 1:55 PM
hai ! i need a code in java for database query optimization.plz help ... View Questions/Answers

servlet  April 24, 2012 at 1:55 PM
package com.ilp.tsi.um.servlet; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servl... View Questions/Answers

jsp  April 24, 2012 at 1:51 PM
package com.ilp.tsi.um.constant; public class BankConstant { public static final String DRIVER = "oracle.jdbc.driver.OracleDriver"; public static final String DBURL = "jdbc:oracle:thin:@172.24.137.30:1521:ORA10g"; public static final String DBUS... View Questions/Answers

Question in Java ??  April 24, 2012 at 12:30 PM
Welcome every One ,I have Q in Java : Write aprogram that print the falewing table using SQRT method in the Math Class? Number 0 ,2, . . . ,18,20 squrfoot 00000 1.4142 5.2426 5.4721 ... View Questions/Answers

DMCA.com