Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

c++  December 12, 2010 at 5:14 AM
Assume vector "x" of integers with values of 7, 3, 5, 8, 1, 9, 0, 4, 2, 6. Second, assume integer variables "a," "b" and "y" with values of 3, x.size()-5 and 0, respectively. Third, assume a for-loop header which: 3.1) increments its control variable; 3.2) has a control variable n... View Questions/Answers

Help me quickly plz??  December 12, 2010 at 1:44 AM
Can you help me to write code quickly this code is a java code take input as double and should use command line arguments and enhanced for statement then find the combine of the numbers plz help quickly [email protected] ... View Questions/Answers

java  December 12, 2010 at 1:03 AM
i have 3 numbers and i need to find the greatest of them howw without using arrays?? ... View Questions/Answers

Ads

Lost Using Swing Components(3)  December 12, 2010 at 1:00 AM
Hello, I sound like every other newbie but I desperately need help. I have to write an application for the WebBuy Company that allows a user to compose the three parts of a complete email message: the "To", "Subject", and "Message:" text. The "To" and "Subject:" text areas should provide a single... View Questions/Answers

how to print hello world every second till i have pressed enter key  December 12, 2010 at 12:57 AM
how to print hello world every second till i have pressed enter key ... View Questions/Answers

Lost Using Swing Components(2)  December 12, 2010 at 12:56 AM
Here is the code block corrected: //Insert missing code here. import java.awt.*; import java.awt.event.*; public class JEMail extends JFrame implements ActionListener { //Insert missing code here. private JTextField toField = new JTextField(24); private ... View Questions/Answers

Lost Using Swing Components  December 12, 2010 at 12:52 AM
Hello, I sound like every other newbie but I desperately need help. I have to write an application for the WebBuy Company that allows a user to compose the three parts of a complete email message: the "To", "Subject", and "Message:" text. The "To" and "Subject:" text areas should provide a single... View Questions/Answers

Lost Using Swing Components  December 12, 2010 at 12:50 AM
Hello, I sound like every other newbie but I desperately need help. I have to write an application for the WebBuy Company that allows a user to compose the three parts of a complete email message: the "To", "Subject", and "Message:" text. The "To" and "Subject:" text areas should provide a single... View Questions/Answers

Lost Using Swing Components  December 12, 2010 at 12:43 AM
Hello, I sound like every other newbie but I desperately need help. I have to write an application for the WebBuy Company that allows a user to compose the three parts of a complete email message: the "To", "Subject", and "Message" text. The "To" and "Subject:" text areas should provide a single ... View Questions/Answers

recursive fuction in java  December 12, 2010 at 12:25 AM
A class has a recursive method which return a boolean value. If a codition is fail & control goes to out of loop to return statement then control goes to internal method calling instead of another method which call that recursive method. ... View Questions/Answers

method overloading  December 12, 2010 at 12:15 AM
what is output of this program & why class Test { public void display(String msg) { system.out.println(msg); } public void display(Object msg) { system.out.println(msg); } } Class TestDemo { new Test().display(null); } ... View Questions/Answers

java prog  December 11, 2010 at 9:31 PM
Write a Java applet that inputs a person's date of birth (month, day, year): ? Informs the person if the year of birth is a prime number. ? Informs the person if the year of birth is a leap year. ? Computes and outputs the day of week they were born. ? Compute and output their Zodiac sign... View Questions/Answers

possible loss of precision  December 11, 2010 at 6:13 PM
{ int amount=(int)depositAmount; switch (depositAmount) { case(depositAmount<=depAmount1): intrest=(depositAmount*1*rate1); break; case(depositAmount>=depAmount1 && depositAmount<=depAmount2): intrest=(depositA... View Questions/Answers

Position one element relative to other using JQuery.  December 11, 2010 at 5:54 PM
Hello Sir In my web page, i have a hidden div which contains a toolbar-like menu. Also, i have a number of divs which are enabled to show the menu DIV when the mouse hovers over them. Is there a built-in function which will move the menu DIV to the top right of the active (mouse hover) D... View Questions/Answers

Replace broken Image using JQuery  December 11, 2010 at 5:22 PM
Sir My web page contains a lot of images. But when it will not loaded properly, it shows a broken image. How can I fix it so that broken image will be replaced by error image automatically. Please Mention code. Best regards ... View Questions/Answers

program  December 11, 2010 at 5:12 PM
accepts the area of a square and will calculate its perimeter. ... View Questions/Answers

accepts the area of a square and will calculate its perimeter.  December 11, 2010 at 5:11 PM
Develop a program that accepts the area of a square and will calculate its perimeter. ... View Questions/Answers

Getting the ID of the element that fired an event using JQuery  December 11, 2010 at 4:32 PM
Hello sir I want to know-Is there any way to get the ID of the element that fires the event? Please mention the code with your reply. This will make easy for me to understand the concept. Thanks in advance ... View Questions/Answers

DBMS  December 11, 2010 at 4:18 PM
what is the difference between a procedure and a function in oracle? ... View Questions/Answers

Show spinner while loading image using JavaScript  December 11, 2010 at 3:20 PM
Hello sir I am working on a web page which has .png image in middle of it. Other part of the page contains the set of links which , when clicked, the entire page reloads and looks exactly the same as before except for the chart in the middle of the page. The problem is that when t... View Questions/Answers

Read text file to 2D array and sorting the second column  December 11, 2010 at 2:56 PM
we found that the student names with marks in a text file the marks decreases significantly. when exams conducted fast 4 times.The first column is the student name and the second column is marks in tests.What we need to find is which student marks decreases most often that is 3 times or 4 times. ... View Questions/Answers

Disabling submit button using jQuery  December 11, 2010 at 12:50 PM
Hello Sir I want to know - is there any way or approach to disable client side form's "Submit" button. Please give code also. ... View Questions/Answers

Multiple implementaion of datepicker.  December 11, 2010 at 12:37 PM
Hello Sir I am using date-picker in my web page. But i need to put date-picker on multiple text fields without using different "id" for text fields. Please help me and give me some code line also. Thanks in advance ... View Questions/Answers

Calender code ! HELP!!!  December 11, 2010 at 12:02 PM
how can i add 3 days to current date ? i am using a script from jotform which has a calender field. the system shows the current date, but i want to add 3 days to the current date for the purpose that the client is only able to select dates 3 days after the current date. eg. if today is 1... View Questions/Answers

Calender code  December 11, 2010 at 12:01 PM
hi, this is my script, where do i add your script below to? var Calendar = Class.create(); //------------------------------------------------------------------------------ // Constants //-----------------------------------------------------------------------------... View Questions/Answers

Difference between jQuery UI widget and plugin  December 11, 2010 at 11:07 AM
JQuery UI widgets and plugin are included in the same way in html page. They work like the same way as seems to me .Why their names are different ? What are differences between them ? Please explain clearly. ... View Questions/Answers

Ajax in jQuery  December 11, 2010 at 10:47 AM
How ajax can be use in JQuery? ... View Questions/Answers

how to deal with exceptions in servlet  December 11, 2010 at 10:29 AM
plz give me the reply ... View Questions/Answers

java  December 11, 2010 at 10:09 AM
WAP to calculate commison earned by a agency on the following tour pacages. trip to goa-15% trip to mumbai-25% ... View Questions/Answers

java  December 11, 2010 at 9:56 AM
WAP a program to fcalculate commisson earned by a travel agency on the following tour pacages trip to goa-15% trip to mumbai-25% ... View Questions/Answers

Sum of seris  December 11, 2010 at 9:42 AM
Program to find the sum of the following series using a function declaration. sum=x-(xxx)/3!+(xxxxx)/5!-(xxxxxxx)/7!+.....(xx....x)/n!. Where n and x are entered from the keyboard. ... View Questions/Answers

fibonacci series  December 11, 2010 at 9:27 AM
Program to print the first n fibonacci numbers using function.the program must use InputStreamReader and BufferedReader. ... View Questions/Answers

Header file  December 11, 2010 at 8:47 AM
when we use, Scanner input=new Scanner(System.in); this statement in a java program,which header filemust be imported to the program? ... View Questions/Answers

Calender code  December 11, 2010 at 12:53 AM
how can i add 3 days to current date ? i am using a script from jotform which has a calender field. the system shows the current date, but i want to add 3 days to the current date for the purpose that the client is only able to select dates 3 days after the current date. eg. if today is ... View Questions/Answers

Please help in drawing Flowchart  December 10, 2010 at 11:42 PM
we found that the student names with marks in a text file the marks decreases significantly. when exams conducted fast 4 times.THe first column is the student name and the second column is marks in tests.What we need to find is which student marks decreases most often that is 3 times or 4 times. ... View Questions/Answers

NSUserDefaults Example  December 10, 2010 at 10:56 PM
Hi, Give me code of NSUserDefaults to store and retrieve the some data. Thanks ... View Questions/Answers

MPVolumeView Example code  December 10, 2010 at 10:52 PM
Hi, Please let's know how I can add MPVolumeView control in my iPhone application? Thanks ... View Questions/Answers

Interface  December 10, 2010 at 7:59 PM
In JDBC , where are the source code of methods which are the member of recordset and other interfaces of JDBC packege. ... View Questions/Answers

JSP Project  December 10, 2010 at 7:56 PM
I want to get a code for login page with user interface in JSP for my web application. Please help me. ... View Questions/Answers

java  December 10, 2010 at 7:32 PM
where i write java programme and how do i execute the programme ... View Questions/Answers

how formBackingObject() method will work.  December 10, 2010 at 7:26 PM
How the formBackingObject method will behave ? ... View Questions/Answers

Inheritance, abstract classes  December 10, 2010 at 6:43 PM
Hi. I wish to thank you for answering my last question, but I had figured it out, but the GUI was very helpful. I could use someones help again with abstracts & a demo account. I know you will be thinking how could I write the code but not get the simplest part.I'm getting a little lost with ... View Questions/Answers

checkbox custom tag creation in jsf  December 10, 2010 at 5:32 PM
how to create check box custom tags with the following functionality: 1.there must be two checkboxes 2.when the first box is checked it must populate the names of bikes,when the second is checked names of cars must be populated in the same list 3.when both are checked names of bikes as we... View Questions/Answers

JSP,DB,SERVLET  December 10, 2010 at 5:12 PM
hi thank you for your reply.With this code i can insert the data successfully into database but In ajax.jsp once i give the name;;;age and city are not automatically fetched......instead sumthing get filled in dose textfields....can u help me?????? Name: Ram I entered dtls of ram into da... View Questions/Answers

JSP,DB,SERVLET  December 10, 2010 at 4:38 PM
I have a jsp page called page1.jsp with 3 text fields name,phone ,city.i populated these datas into a database table through servlet (page1servlet.java) and bean(page1bean.java).I have another jsp page(display.jsp) with 4 fields name, city ,phone.Once the user enter the name, city and phone shoul... View Questions/Answers

sql express connection  December 10, 2010 at 4:27 PM
Sir, I am using ms-SQL server 2005 as database. i have .mdf file and .ldf database base files with me. How to connect to these files in my web application. I am using type-4 drivers... Please let me know.... thanks, Regards, VASU. ... View Questions/Answers

Read data from Excel and insert in to DB and export data from DB to Excel  December 10, 2010 at 4:23 PM
Read data from Excel and insert in to DB and export data from DB to Excel Hi, I need to read the data from excel and I need to insert the same in to DB (vice versa). I have an Excel sheet contains 10 Telephone numbers, I have customer database in which I have stored all customer i... View Questions/Answers

JSP,DB,SERVLET  December 10, 2010 at 4:22 PM
hi thank you for your reply.With this code i can insert the data successfully into database but once i give submit button in insert.jsp it should be forwarded to ajax.jsp.In ajax.jsp once i give the name;;;age and city are not automatically fetched......can u help me?????? And can u send ... View Questions/Answers

java code  December 10, 2010 at 2:01 PM
hi any one please tell me the java code to access any link i mean which method of which class is used to open any link in java program. ... View Questions/Answers

java  December 10, 2010 at 1:35 PM
hi im new to java plz suggest me how to master [email protected] ... View Questions/Answers

JFreeChart- Display coordinate value .  December 10, 2010 at 12:06 PM
How to Mark Coordinte value on top of the bar ? ... View Questions/Answers

CLLocation latitude longitude  December 10, 2010 at 11:41 AM
Hi, I am developing an location based application. I want to get the current location in the Latitude and Longitude format. Please let's know how to get latitude longitude from CLLocation object? Give me the code example of converting CLLocation object into Latitude and Longitude.... View Questions/Answers

JSP,DB,SERVLET  December 10, 2010 at 11:31 AM
I have a jsp page with 3 text fields name,age ,city.i populated these datas into a database table.I have another jsp page with 4 fields name, city , age and phone.Once the user enter the name, city and age should be automatically populated from database throush servlet..Can u give me the code!!!!... View Questions/Answers

parse a file into primitive binary format  December 10, 2010 at 6:12 AM
Hi, I need help converting an audio file or any other file to its primitive binarty format, and when I read the inputstream I find it some integers and I don't know its binary representation. please I need any help or tip. regards thanks ... View Questions/Answers

Netbeans Question need help desperately!!  December 10, 2010 at 5:02 AM
Ok here is my code- public class RollDie2 { public static void main(String[] args) { Random randomNumber = new Random(); int[][] frequency = new int[9][9]; int die1 = 0; int die2 = 0; for (int roll = 1; roll <= 64000; roll++) { die1 = randomNumber.nextIn... View Questions/Answers

reverse words in a string(words seperated byone or more spaces)  December 10, 2010 at 2:19 AM
reverse words in a string(words separated by one or more spaces) ... View Questions/Answers

static keyword with real example  December 9, 2010 at 10:36 PM
static keyword with real examplestrong text ... View Questions/Answers

cookies  December 9, 2010 at 10:24 PM
hi, i m vishal want a simple example of cookies. ... View Questions/Answers

Matrix multiplication  December 9, 2010 at 9:45 PM
program to read the elements of the given two matrices of order n*n and to perform the matrix multiplication. ... View Questions/Answers

Standard deviation  December 9, 2010 at 9:40 PM
program to calculate the standard deviation of an array of values.the array elements are read from terminal.use function to calculate standard deviation and mean. ... View Questions/Answers

problem in validation  December 9, 2010 at 9:18 PM
sir/madam, i m using struts-1.3.10. i m getting a problem my properties file is not found.... while i hav configuired it in struts-config.xml file, like thanks n regards himanshu ... View Questions/Answers

java  December 9, 2010 at 8:58 PM
code for creating smileys ... View Questions/Answers

Import My Own Package (Automatically)  December 9, 2010 at 7:16 PM
How can I import my own package in every java program ( automatically )....? For example :- java.lang.String... automatically imported, we need not to import it.... ... View Questions/Answers

JBOSS Startup Problem - StandardWrapper.Throwable java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:394)  December 9, 2010 at 6:19 PM
Hi Gurus!!!! :D.. I am new to Rose India and also new to JBOSS. I have a problem in JBOSS Starting. I am using JBOSS -4.0.5 version, Java JDK 1.6.0_10 and connecting to Sybase database. i have downloaded the JBOSS war file and extracted in to my loc... View Questions/Answers

array ollection with in script  December 9, 2010 at 5:37 PM
my coding is ... View Questions/Answers

UIImage width and height  December 9, 2010 at 5:23 PM
Hi, How I can find the width and height of UIImage object. Let's know an example code for finding UIImage width and height. Thanks ... View Questions/Answers

iphone handle orientation change  December 9, 2010 at 4:01 PM
How can i handle the orientation change in iPhone / iPad application? Please suggest. Thank in Advance! ... View Questions/Answers

script for data  December 9, 2010 at 3:31 PM
how to write a simple script to display a selected data from list in flex applicatin?. ... View Questions/Answers

multiple file upload at a time like gmail  December 9, 2010 at 3:04 PM
I want to upload multiple files at a time like gmail. is there any possiblity/solution to do that? ... View Questions/Answers

home page  December 9, 2010 at 2:04 PM
Develop home page using applets and swings ... View Questions/Answers

Java question_Naresh  December 9, 2010 at 1:23 PM
hi I have java file and i have extracted all the comment lines present in that file using getcommentlist(AST) function. Now i have read this comment list line by line and search for any executable lines being commented in the code. Can anyone help me out to do this? I am doing all this in Java e... View Questions/Answers

hibernate and struts integration in ECLIPSE  December 9, 2010 at 12:55 PM
hi, I saw the complete tutorial of hibernate in your website... But i found nothing for hibernate and struts integration in ECLIPSE and not using ANT Can any One pls Help.. Thanks in Advance ... View Questions/Answers

how to give validation using javascript in swing  December 9, 2010 at 12:54 PM
how to give validation using javascript in swing....... can somebody give code for username and password validation using javscript and swing ... View Questions/Answers

how to move curosr from one text field to another automatically when the first textfield reaches its maximum length  December 9, 2010 at 12:51 PM
how to move curosr from one text field to another automatically when the first textfield reaches its maximum length ... View Questions/Answers

Need Jar in the JPA examples  December 9, 2010 at 12:49 PM
JPA - tutorial is good, very easy to understand and simple. But to run the examples, the jar/helping files are needed. and how Hibernates are used in the JPA example? Thnaks Abhijit Das ... View Questions/Answers

static  December 9, 2010 at 12:17 PM
when staic memory deleted ... View Questions/Answers

ipad screen resolution pixels  December 9, 2010 at 12:14 PM
Hi! Can you tell the exact size of the iPad in pixels ..including height & width. Thanks Very Much! ... View Questions/Answers

Integration  December 9, 2010 at 12:11 PM
How to integrate struts with spring in MyEeclipse in layer independent manner. Please send the screen shots. How to integrate struts with EJB in MyEeclipse in layer independent manner. Please send the screen shots. How to integrate spring with Hibernate in MyEeclipse in layer i... View Questions/Answers

How to read a log file from server location and send a mail when exception occurs.  December 9, 2010 at 12:03 PM
HI, How can i read the 2GB to 4GB log file from server. and i need to send a mail when exception occurs. Thanks Rajeev ... View Questions/Answers

object of object class  December 9, 2010 at 11:33 AM
what do u mean by "object of object class"....? ... View Questions/Answers

how can you calculate you your age in daies??  December 9, 2010 at 11:15 AM
**hi, I am beginner in java! can any one help me to write programm to calculate age in daies???** ... View Questions/Answers

radar graph in java  December 9, 2010 at 10:58 AM
Hi All I am developing a java application. In this application i need to show a radar grap.when some body assigne rating then each rating should show on x y z axis. please suggest me some good way to do this task. Thanks Yogi ... View Questions/Answers

java question  December 9, 2010 at 10:42 AM
wats dynamic dispatching?? ... View Questions/Answers

Iphone Developmnt  December 9, 2010 at 9:38 AM
i am making an application in ios, for ipad or iphone, what i want to know is that can i provide an option of changing the theme , or can i separate my code from the theme... so that when giving my product to next customer, i can change the look and feel please guide me through Re... View Questions/Answers

Java Leap Year Problem  December 9, 2010 at 3:26 AM
I need help with a writing a program in Java that creates a class Year that contains a data field that holds the number of months in a year and the number of days in a year. It should include a get method that displays the number of days and a constructor that sets the number of months to 12 and ... View Questions/Answers

Exception Handling in java  December 9, 2010 at 12:36 AM
what is advantage to catch smaller exception first and then normal exception. I mean we normally catch SQLException first and then Exception. ... View Questions/Answers

how to get data using dropdownlist, textbox and search button in jsp  December 9, 2010 at 12:08 AM
Hi, I want to display data using jsp,javascript and mysql. My Q. is If i select an entry suppose 'title' from dropdownlist and give a title name 'partial dif' in textbox and click on search button it should show me all the title names that starts with the letters '....par'. Please help me .......... View Questions/Answers

JAVA Game  December 8, 2010 at 11:19 PM
I want to make a JAVA game...in dat game...d player has to input a word in 10 secnds...4 dat m running a delay loop... but the problem is not...i am not getting any way...to make that input field(eg: String str=in.readLine();) valid only till 10 secs...or if i can calculate in any way the time ta... View Questions/Answers

servlet  December 8, 2010 at 11:11 PM
i want to use servlet application on my web page then what should i do. I have already webspace. ... View Questions/Answers

conver byte array to ByteArrayOutputStream  December 8, 2010 at 10:15 PM
Sir Can you please tell me how to convert the byte[] to ByteArrayOutputStream; One of my method will return the byte[] , i have to convert this byte array to ByteArrayOutputStream Thanks Rahul ... View Questions/Answers

Dear Sir I need to join u  December 8, 2010 at 10:04 PM
Dear Sir i am santosh Rai from Saudi Arabia please make me understood how to join u and i have one question i want to working with you what is ur process for working with u please send me document file for all details please Al-Buainain Group Software Engineer Mr. San... View Questions/Answers

Forgot password  December 8, 2010 at 9:24 PM
hi i want to develop a code for when user clicks on forgot password then the next page should be enter his mobile no then the password must be sent to his mobile no...! Thanks in advance Nag Raj ... View Questions/Answers

java swing  December 8, 2010 at 7:27 PM
iam using my project text box, label , combobox and that the same time i want menubar and popmenu. plz give me code for this. i want immediately plz send me that code. ... View Questions/Answers

java swing  December 8, 2010 at 7:27 PM
iam using my project text box, label , combobox and that the same time i want menubar and popmenu. plz give me code for this. i want immediately plz send me that code. ... View Questions/Answers

triangle output  December 8, 2010 at 7:24 PM
program to get the following output: * * ... View Questions/Answers

triangle output  December 8, 2010 at 7:23 PM
program to get the following output: * * ... View Questions/Answers

How to go about struts-2 vaidation framework/annotations with simple ui theme?  December 8, 2010 at 7:22 PM
I have tried annotations and validator.xml to have field validation in my application. But unfortunately there is no result. Server log doesn't show any error too. And with the ui theme as simple in struts.properties file, validation doesn't show any error message. Is this true? I... View Questions/Answers

number sorting  December 8, 2010 at 7:18 PM
program to sort a list of numbers in descending order where the inputs are entered from keyboard in runtime ... View Questions/Answers

Tutorial Topics
Questions by Category
DMCA.com