Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

i need help plz .... Quickly  March 17, 2011 at 10:34 PM
how can i count how many numbers enterd by the user so the output would be like this Total number of Scores = .... this is my code :- import java.util.Scanner; public class SCORES { public static void main (String [] args) { doub... View Questions/Answers

typical question  March 17, 2011 at 9:25 PM
why to use binary language for mechine code insted of this code we use english is it possible or not if yes explain otherwise give me a suggestion for implementation ... View Questions/Answers

ISAPI Filter Issue Error from Web Service  March 17, 2011 at 9:09 PM
<p>I have writen MFC application for ISAPI filter which will authenticate and authorization the request. Its working fine but when we are doing load testing we are getting error from web service.Error is "Error:- InternetOpenUrl().". This error is coming for o... View Questions/Answers

Advertisement

report  March 17, 2011 at 8:05 PM
how to take input from number of classes like order, bill,customer to another class say report to make a report on all these things ... View Questions/Answers

orderbill  March 17, 2011 at 8:04 PM
write a java code to take order of number of chocolates(bar,powder,giftbox) (use arraylistand use bufferreader to take input). Also consider exceptional cases like entering integer in name use try,catch ,throw to deal with exception. also pass this orderlist to another class where we have to calc... View Questions/Answers

JLabel  March 17, 2011 at 7:29 PM
how to give dimensions to JLabel? ... View Questions/Answers

monitoring framework for continuously moving objects  March 17, 2011 at 7:27 PM
hi i want a source code on if the object moves outt of the safe region i want to get the update to the server ... View Questions/Answers

JDBC related query  March 17, 2011 at 7:03 PM
How to merge two resultset of two different queries, wherein both the resultset(after query execution)gives an integer value as its column. ... View Questions/Answers

jQuery auto complete through database using JSP shows error  March 17, 2011 at 6:38 PM
The tutorial on jQuery titled "jQuery auto complete through database using JSP" shows error on browser when I try to select the one in the dropdown. Please help me.Thanks in advance. ... View Questions/Answers

stand alone program for text file editing  March 17, 2011 at 6:11 PM
steps 1.read a text file origi.txt from a location 2.make a copy of the text file to the same location with name as origi_copy.txt(example) 3.each line of the copy should start from 10 th position ... View Questions/Answers

give information or website address  March 17, 2011 at 5:26 PM
hi i want u r help .... i m finding code for constructing graph in java but during execting them i have problem bec of packages... has i proceed i came to know there is a jfreechart thats very useful in building graph.... and the problem is i downloaded the jfreechart and jco... View Questions/Answers

Error in jdeveloper 10G  March 17, 2011 at 5:04 PM
500 Internal Server Error javax.servlet.jsp.JspException: Exception creating bean of class view.AddressForm: {1} at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:563) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520) at _Ad... View Questions/Answers

mini project using eclipse  March 17, 2011 at 4:57 PM
please send me the steps to design online examination system using eclipse,,,,b fast,,,,, ... View Questions/Answers

Need to remove duplicated rows from excel using apache POI API  March 17, 2011 at 3:32 PM
Hi, Need help from you. I am able to generate excel sheet with data also. but that excel sheet having somany duplicated rows. So can any one suggest me how to remove duplicated rows from excel sheet by using apache poi api oe jxl api. this will help to my p... View Questions/Answers

jsp & ajax  March 17, 2011 at 3:21 PM
how to enable or disable textbox using radio buttons by using jsp and ajax? plz help me.... i m new in jsp & ajax. ... View Questions/Answers

jsp and ajax  March 17, 2011 at 3:12 PM
how to enable or disable textbox using radio buttons by using jsp and ajax? ... View Questions/Answers

program  March 17, 2011 at 2:40 PM
how to draw lines using JSP.... ... View Questions/Answers

A Java Program by using JSP  March 17, 2011 at 2:34 PM
how to draw lines by using JSP plz show me the solution by using program ... View Questions/Answers

multiple resultset in one resultset  March 17, 2011 at 1:19 PM
how to retrive multiple resultsets in one resultset in java.? plz help.. ... View Questions/Answers

problem in reading 10000 records in java  March 17, 2011 at 1:03 PM
Hi I have a huge records 10000 records ,while reading it show some error only i can able to read 2000 recds and need to display all the recods in jsper reports Thanks Gopi ... View Questions/Answers

How to handle enter key in javascript  March 17, 2011 at 12:54 PM
Can any one tell me how to handle the enter key event on a Button in HTML. Like in my simple HTML page i want to submit the form even if user hits the enter key from keyboard instead of button. ... View Questions/Answers

Div file in css  March 17, 2011 at 12:37 PM
How can i indent div with outer and inner margin? ... View Questions/Answers

indent div css  March 17, 2011 at 12:37 PM
How can i indent with outer and inner margin? ... View Questions/Answers

operators  March 17, 2011 at 12:36 PM
Create a simple java program that adds, subtracts, divides and multiplies any two numbers that are entered by a user. ... View Questions/Answers

my assignment  March 17, 2011 at 12:31 PM
as programmer, you have been assigned to develop a user interface for a fats food ordering system.the interface should have various menu consist of food and drink with prices included.the user can make a selection base on the menu listed and the price will be counted.in addition, the program disp... View Questions/Answers

toolkit  March 17, 2011 at 11:54 AM
why to use Toolkit.getDefaulttoolkit.beep() ... View Questions/Answers

Web service  March 17, 2011 at 11:54 AM
webservices in JSP ... View Questions/Answers

how to display data from mysql table in text box using jsp??  March 17, 2011 at 11:23 AM
<p>hi, i have a written a code to display data from a mysql table into txtboxes..But i am getting the following error...</p> <p>An error occurred at line: 113 in the jsp file: /Cat1.jsp The local variable v_RGPC may not have been initialized 1... View Questions/Answers

How to Differenciate Main Thread and Child Thread in Java  March 17, 2011 at 10:39 AM
hi, As a beginner in Java programming, I want to know What is the difference between Java Main Thread and Java Child Thread. Please Suggest any example or online link for references. Thanks, ... View Questions/Answers

How to implement Captcha in PHP Form using GD Library  March 17, 2011 at 10:29 AM
Hi, How to show Captcha in PHP Form. So, please suggest any online reference so that i will try myself. Thanks, ... View Questions/Answers

How to Create Pop Up Boxes in JavaScript  March 17, 2011 at 10:21 AM
Hi, I am beginners in Programming language and How can i create a pop up box in JavaScript. That will ask the confirmation alert. Please any programmers who know please send me the example or provide online reference so that i will try to do myself. Thanks, ... View Questions/Answers

i want print the following out put  March 17, 2011 at 9:12 AM
Hello sir i want the following out put can u provide the program in c# o/p; HELLOLLEH HELLLEH HELEH HEH H ... View Questions/Answers

ArrayList as an argument to another class  March 17, 2011 at 5:48 AM
how do you pass arraylists as arguments to another class, and how does the method/class accept this arraylist for use? ... View Questions/Answers

embed ganttChart on JSP page  March 17, 2011 at 5:03 AM
How I can embed ganttChart on JSP page ??? Im already created ganttChart by using this example: To create a simple Gantt chart, try the following code: import java.awt.Color; import java.util.Date; import java.util.Calendar; import org.jfree.ui.ApplicationFrame; import org.jfree.... View Questions/Answers

Help with this program  March 17, 2011 at 3:24 AM
Write a program that would do the following: 1) Read a String from the user. The String will be the following: "My grade is x" (where x is an integer between 0-9) 2) Get the String to integer by creating an Integer abject and valling the .intValue() method. 4) Output the integer. ... View Questions/Answers

awt in java  March 17, 2011 at 3:05 AM
using awt in java gui programming how to false the maximization property of a frame? ... View Questions/Answers

Help with this program  March 17, 2011 at 2:32 AM
Write a program that would do the following: 1) Read two Strings from the user 2) The user should input two integer numbers. 3) Convert the Strings to integers by creating objects and calling the .intValue() method. 4) Add the two integers. 5) Output the result Do the same fir whe... View Questions/Answers

order  March 16, 2011 at 8:58 PM
write a java code to enter order of number of chocolates(bar,powder,giftbox) in arraylist. Also consider exceptional cases like entering integer in name use try,catch ,throw to deal with exception. ... View Questions/Answers

customer details  March 16, 2011 at 8:56 PM
write a java code to enter n number of persons details(name,address,phone number) in a array list. Also consider exceptional cases like entering integer in name,character in phone number. use try,catch ,throw to deal with exception. ... View Questions/Answers

core java  March 16, 2011 at 8:43 PM
Create a class containing the main method and define an integer array x of length n=5 to find and display their mean. Mean=?Xi/n. ... View Questions/Answers

core java  March 16, 2011 at 8:41 PM
public static void main(String k[]) Is it possible to pass the Integer type arr instead of String type in main method?(replacing String than Integer) if possible.. how to write code? ... View Questions/Answers

Invalid console appender in JBoss console  March 16, 2011 at 8:07 PM
"ERROR: invalid console appender config detected, console stream is looping" The above is the error i am getting while starting the server after deploying the ear file into the jboss. I searched many websites for this and found may answers but couldn't find a solution or clear the issue. ... View Questions/Answers

please help me.  March 16, 2011 at 8:03 PM
I have a jsp page under that i add a list box under i get the countries through my database. so how can i do it? ... View Questions/Answers

Editing the Profile  March 16, 2011 at 7:16 PM
how to populate drop-down menu instead of text box in editing the profile? ... View Questions/Answers

Intranet Website creation - plz help me  March 16, 2011 at 7:09 PM
hi.. I have assign with the intranet website creation work..right from scratch to end..And honestly I know nothing about it.My domain is totally different .. can anybody pls help me for it ...its a corporate site and deadline is May end... ... View Questions/Answers

Java Application Server  March 16, 2011 at 7:05 PM
Java Application Server ... View Questions/Answers

Singletone utility in java  March 16, 2011 at 7:05 PM
Please provide me an example of singletone utility in java ... View Questions/Answers

java fundamental question  March 16, 2011 at 6:33 PM
public class TestVarArgs { Public void display(Double i, double ‚?¶ j) { System.out.println(‚??Double& var args‚??); } Public void display(Double i, Double j) { System.out.println(‚??Double &Double called‚??); } Public static void main(String args[]) { New TestVarArgs().display(56... View Questions/Answers

java fundamental question related to string  March 16, 2011 at 6:18 PM
public class Myclass { Public static void main(String args[]) { String s=‚??hello‚??; StringBuffer sb=new StringBuffer(s); Sb.reverse(); If(s==sb) system.out.println(‚??a‚??); If(s.equals(sb)) system.out.println(‚??b‚??); If(sb.equals(s)) system.out.println(‚??c‚??); } } Output? a) the ... View Questions/Answers

error in hibernate example  March 16, 2011 at 6:15 PM
i am getting error in this.... log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). log4j:WARN Please initialize the log4j system properly. Resource: Contact.hbm.xml not found plz help me out in this ... View Questions/Answers

java fundamental question  March 16, 2011 at 6:09 PM
equivalent to 16>>2 ? a) 16/4 b) 16/2 c) 16*2 d) 16/2^2 ... View Questions/Answers

java fundamental question  March 16, 2011 at 6:06 PM
public class WrapTest3 { Public static void main(String args[]) { String s="98.6"; // insert code here } } Which will cause compilation error: a) float f1=Float.floatValue(s); b) float f2=new Float(3.144).floatValue(); c) float f3=Float.valueOf(s).floatValue(); d) float f4= (f... View Questions/Answers

Hibernate Association and join  March 16, 2011 at 5:25 PM
hi, can u please tell me SQL DDL queries to create Product and Dealer table... and also tell me java code for Product and Dealer bean... ... View Questions/Answers

use of ejb 3.0  March 16, 2011 at 5:12 PM
what is use of ejb 3.0 ... View Questions/Answers

Association and join  March 16, 2011 at 4:44 PM
hi can u please add code for Product and Dealer bean .... ... View Questions/Answers

Form Validation  March 16, 2011 at 4:27 PM
Java script validation for checking special characters and white spaces and give an alert.Please help me urgent Thanks in advance. ... View Questions/Answers

.class and .tld  March 16, 2011 at 4:05 PM
how to create .class and .tld file ... View Questions/Answers

received memory warning level 1  March 16, 2011 at 4:03 PM
received memory warning level 1 and if i continue to it .. i get second warning received memory warning level 2 And then my application get crash. Can any one please explain me what is this error and how can i solve it. Thanks in Advance!! ... View Questions/Answers

pls i need help with my assignment  March 16, 2011 at 3:55 PM
how to write a code that ask the user for the height of the triangle and prints the triangle using * eg if height is 3 it prints * and also using import java.util.Scanner; ... View Questions/Answers

java program to exchange soap message  March 16, 2011 at 3:51 PM
Hi Friends, I want to developed a webservice using soap as a protocol,in this webservice the client sends a set of 15 parameters and program on web server side receives this 15 parameters and gives the response back to the client. could any one help me by guiding that how can I wr... View Questions/Answers

JSP Que.  March 16, 2011 at 3:50 PM
How to pass string one jsp to another jsp without using input tag???? ... View Questions/Answers

recursion  March 16, 2011 at 3:48 PM
Consider the following (recursive) static method and draw a recursive tree for 3(a) and 3(b). public static char mystery(String s, int n, int m) { if (n == 1) return s.charAt(m); char first = mystery(s, n / 2, m * 2); char second = mystery(s, n / 2, m * 2 + 1);... View Questions/Answers

identify the order of growth of the average running time of the method.  March 16, 2011 at 3:44 PM
public static void manypeak (int n, double size) { if (n > 0) manypeak(n/2, size/2); for (int i = 1; i <=n; i++) { drawpeak(size); //method drawpeak() takes constant time } if (n>0) manypeak(n/2, size/2); } ... View Questions/Answers

identify the order of growth of the average running time of the method.  March 16, 2011 at 3:44 PM
public static void manypeak (int n, double size) { if (n > 0) manypeak(n/2, size/2); for (int i = 1; i <=n; i++) { drawpeak(size); //method drawpeak() takes constant time } if (n>0) manypeak(n/2, size/2); } ... View Questions/Answers

identify the order of the average running time of the method  March 16, 2011 at 3:38 PM
public static double getMedian (double[] A) { // given an ordered array of length n, return the median int n = A.length; if ((n % 2) == 1) return A[n/2]; else return (A[n/2 - 1] + A[n/2]) / 2.0; } ... View Questions/Answers

data formatters temporarily unavailable xcode  March 16, 2011 at 3:00 PM
In my iPhone application when i choose to edit the captured image i get error saying... data formatters temporarily unavailable in xcode. What is this error and how can i remove it? Thanks!! ... View Questions/Answers

Getting IP address of All the machines  March 16, 2011 at 2:11 PM
Program how to fetch All the IP address on my domain(LAN) in java? ... View Questions/Answers

JSP - MySQL - Connection  March 16, 2011 at 1:54 PM
I can't connect mysql using jsp in my server.It shows some error like this. """ com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 1,300,257,595,704 milliseconds ago. The last packet sent successfu... View Questions/Answers

struts  March 16, 2011 at 1:47 PM
<p>hi here is my code in struts i want to validate my form fields but it couldn't work can you fix what mistakes i have done</p> reg.jsp &lt;%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%&gt; &lt;html&gt; &... View Questions/Answers

awt jdbc  March 16, 2011 at 1:40 PM
programm in java to accept the details of doctor (dno,dname,salary)user & insert it into the database(use prerparedstatement class&awt ... View Questions/Answers

quicksort  March 16, 2011 at 1:30 PM
public static double median (double []A) { int n = A.length; quicksort(A); //sort the elements of A using quicksort if ((n % 2) == 1)return A[n/2]; else return (A[n/2 - 1] + A[n/2])/ 2.0; } ... View Questions/Answers

java swing  March 16, 2011 at 12:19 PM
meaning of out.flush ... View Questions/Answers

how to print the server time  March 16, 2011 at 11:36 AM
i want to print database time in clintside and update time in every secound without creating connection to database for each time. how can i do it? ... View Questions/Answers

Adding photo to iPhone simulator  March 16, 2011 at 11:33 AM
Hi, there is no photo in my iPhone simulator.. how can i add one? Please suggest. Thanks! ... View Questions/Answers

how to print the server time  March 16, 2011 at 11:30 AM
how to print the server time in jsp and update time in fix interval ... View Questions/Answers

ajax code  March 16, 2011 at 11:17 AM
Explain me this code function disp_branch(val) { if(unit_branch!=val){ unit_branch=val; xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Browser does not support HTTP Request") return } ... View Questions/Answers

related to database  March 16, 2011 at 11:16 AM
how to override existing values in table? when user enters his updated data through query? ... View Questions/Answers

ajax  March 16, 2011 at 11:15 AM
if(unit_branch!=val){ unit_branch=val; xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Browser does not support HTTP Request") return } var url="index.php?q=date_format->encryption('Query','load_branchu... View Questions/Answers

learn  March 16, 2011 at 11:14 AM
how to input value in java ... View Questions/Answers

project  March 16, 2011 at 10:38 AM
how to get a parameter from the html and how to compare that retrieved parameter with database table attribute and how to insert that compared attribute value to another table. ... View Questions/Answers

rich:suggestionbox  March 16, 2011 at 9:58 AM
i need small example on rich:suggestionbox with example and complete source code for that example ... View Questions/Answers

private static final  March 16, 2011 at 7:27 AM
Why there is necessary to make a variable private static final? ... View Questions/Answers

how to store jtable value in multidimensional array?  March 16, 2011 at 12:29 AM
i want to store the value of jtable in multidimensional array,with type double. how to store jtable value in multidimensional array? ... View Questions/Answers

how to store jtable value in multidimensional array?  March 16, 2011 at 12:29 AM
i want to store the value of jtable in multidimensional array,with type double. how to store jtable value in multidimensional array? ... View Questions/Answers

Hibernate.cfg.xml loading  March 15, 2011 at 11:39 PM
when hibernate.cfg.xml loads? ... View Questions/Answers

project  March 15, 2011 at 10:09 PM
I wanted to draw scattered chart with the input value from user to y-axis co-ordinate...can you pls help by sending code ... View Questions/Answers

how to create a text box using awt  March 15, 2011 at 9:35 PM
give an example how creat multi buttons & text boxes ... View Questions/Answers

give idea  March 15, 2011 at 7:55 PM
how to plot graph in java ... View Questions/Answers

java question related to objects  March 15, 2011 at 7:34 PM
what is the output of the following code? public class objComp { Public static void main(String args[]) { Int result = 0; objComp oc= new objComp(); object o = oc; if( o==oc) result =1; if(o!=oc) result = result+10; if (o.equals(oc)) result=result+100; if (oc.equals(o)) result=result+... View Questions/Answers

Source file upload by attaching multiple files  March 15, 2011 at 7:07 PM
Thanks for the answer. The answer posted in this link I want to have a single text box and when i click on browse button it will take me to windows explorer and I can have a provision to attach multiple images/files like in gmail. Is there any solution available with struts? T... View Questions/Answers

Java and jvm related question  March 15, 2011 at 6:56 PM
What is difference between java data types and jvm data types? ... View Questions/Answers

How i can send testing mail on my id using java?  March 15, 2011 at 5:49 PM
Which packages i should use to implementing java mail service??? Thanks, ... View Questions/Answers

store dynamic generated textbox value into database  March 15, 2011 at 5:43 PM
sir, how do i store dynamically generated textbox value into the database thanks in advance. ... View Questions/Answers

STACK - WHY THE OUTPUT COMES LIKE THIS?  March 15, 2011 at 5:43 PM
//: holding/StackTest.java import net.mindview.util.*; public class StackTest { public static void main(String[] args) { Stack<String> stack = new Stack<String>(); for(String s : "My dog has fleas".split(" ")) stack.push(s); while(!stack.empty()) System.out... View Questions/Answers

Struts application by using eclipse  March 15, 2011 at 5:42 PM
Can we develop struts application by using eclipse ? If no then please provide other development tools, if yes can you mail me the tutorial or provide the same in roseindia. ... View Questions/Answers

image store in oracle using jswing  March 15, 2011 at 5:05 PM
hello ,ihave searched the image store in oracle using jswing but i did not find the code please help me? ... View Questions/Answers

Dynamic tree using textarea data  March 15, 2011 at 5:01 PM
I need to create a dynamic tree by using text area data(words) as child nodes in struts. Any body please help me. "very urgent". thanks in advance ... View Questions/Answers

Display Hello even before main get executed??  March 15, 2011 at 4:51 PM
I have a class (main method) as follow.....As I know this can be done using static method, but Q is how? **class Hello{ public static void main(String[] args){ System.out.println("Darling"); } }** I want result as Hello! Thank you!! when I run the program. Please... View Questions/Answers

interface_querry  March 15, 2011 at 4:01 PM
By using interface we have to implement all unimplemented methods into our class, even though we are not using all of methods, what is the alternative for this? ... View Questions/Answers

JQuery  March 15, 2011 at 3:50 PM
how to use jquery?? ... View Questions/Answers

DMCA.com