Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

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

Advertisement

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

Java  March 15, 2011 at 2:51 PM
single line definition of object oriented programming ... View Questions/Answers

JFarme connection  March 15, 2011 at 2:38 PM
I am making a system that requires to connect two already made J Frames such that by clicking on a button on the first J Frame, the second J Frame appears and the first one disappears.what is the code to do this? ... View Questions/Answers

railway rsrvation system  March 15, 2011 at 2:38 PM
Java coding for railway reservation system? ... View Questions/Answers

JSP  March 15, 2011 at 2:23 PM
HOW TO CREATRE STUDENT DETAILS ... View Questions/Answers

hibernate delete query :  March 15, 2011 at 2:14 PM
Hi, I m using Hibernate 3 + javadb my table is like: CREATE table APP.BIDS ( BID_ID INTEGER NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), BIDDER_ID INTEGER NOT NULL , BID_AMOUNT INTEGER NOT ... View Questions/Answers

java  March 15, 2011 at 2:05 PM
can we regain the object once it eligible for garbage collection? with ragards, praveen ... View Questions/Answers

cfstring release message sent to deallocated  March 15, 2011 at 1:17 PM
cfstring release message sent to deallocated What is this message?? i know it occurs due to memory release. But can anyone tell me how to track and rectify it. ... View Questions/Answers

my project  March 15, 2011 at 1:14 PM
how to creat a e learnig site with student information , faculty details , student queries , student feedback, course information ... View Questions/Answers

Exaples of j2me softwares  March 15, 2011 at 12:30 PM
I'm doing mobile navigator project using j2ee & j2me. So i want more exaples about j2me. so will u send to may e-mail id.........? ... View Questions/Answers

click on back button go to the login page  March 15, 2011 at 11:58 AM
now when i click on back button the page show that page on where i came from and it shows the session expired but i want when i click a back buttob then it should show a login page or a very first page. ... View Questions/Answers

Java User Input  March 15, 2011 at 11:46 AM
I am using Scanner class for user Input. Scanner s = new Scanner(System.in); String name = s.next(); but i am unable to store full name in name variable...how i can store full name plsss reply ... View Questions/Answers

same data inserted 2 times  March 15, 2011 at 11:44 AM
thanks for reply, i know the insert command. but same data inserted 2 times.where is the problem i cannot understood. ... View Questions/Answers

object oriented programming protocol  March 15, 2011 at 11:19 AM
What is object oriented programming protocol? Is it different from objective c protocol programming?? Thanks!! ... View Questions/Answers

jsp error  March 15, 2011 at 10:52 AM
<p>hi, could please help whenever i run jsp file in my eclipse i got this error.my jsp file is</p> &lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD H... View Questions/Answers

hibernate  March 15, 2011 at 10:13 AM
what is hibernate why we use it ... View Questions/Answers

Pos System in Java  March 15, 2011 at 5:44 AM
Where can I learn creating a POS system in java? ... View Questions/Answers

Error-  March 15, 2011 at 5:00 AM
Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me ... View Questions/Answers

retrieve from database........  March 15, 2011 at 2:37 AM
<p>hi i am not able to retrieve string from database to a text box in web page my code is as follows:-</p> <p>&lt;HTML> <link rel="stylesheet" type="text/css" href="format.css" > &lt;HEAD> &lt;TITLE>Modify Profile &... View Questions/Answers

Source file upload by attaching multiple files  March 15, 2011 at 2:23 AM
Hi, I am trying to develop a file upload with multiple files attached functionality in java(like in gmail or in picasa). The source I found so far will select a single file. When I un-check the file it should be removed. Due to time constraints I can not do new development to this functi... View Questions/Answers

why cant i close this ??  March 15, 2011 at 1:20 AM
import java.util.Scanner; public class square { public static void main ( String [] args) { Scanner keyboard = new Scanner (System.in); int N; N = keyboard.nextInt(); System.out.println(" Enter number between 1 , 10 ?? "); while ( ... View Questions/Answers

population problem plz help me befor 16 March 2011 !!  March 14, 2011 at 11:06 PM
the Q is : How can i count how many years it will take for the population of a town to go over 30.000 .. consider that it Increases 10% every year ?? And this is my code & i don't where is the mistake ?? Note : i have to use while or do while only .. import java.util.Scanner; public c... View Questions/Answers

Plagiarism System  March 14, 2011 at 10:31 PM
hello., i want to develop a plagiarism system., kindly suggest me how can i develop. i will be highly obliged. ... View Questions/Answers

searching technique  March 14, 2011 at 9:24 PM
Hi, i need any searching technique in java to search the data and give the all possible data by links. ... View Questions/Answers

JSON main question  March 14, 2011 at 8:53 PM
What is the main purpose of JSON ,in which cases can i use it? ... View Questions/Answers

JSON main question  March 14, 2011 at 7:17 PM
What is the main purpose of JSON ,in which cases can i use it? ... View Questions/Answers

Vertically center page  March 14, 2011 at 6:36 PM
I know how to center the text of the page Horizontally ..but is it possible to vertically center page in HTML or CSS? ... View Questions/Answers

JSP error: class UserForm not found in class model.UserAction  March 14, 2011 at 6:33 PM
etting the following error in the program..wat shod i do to remove this?I am using jdeveloper 10 g [code] package model; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.*; import org.apache.struts.actions.DispatchAction;... View Questions/Answers

prepare statement  March 14, 2011 at 6:16 PM
sir i want example of prepare statement ... View Questions/Answers

image on submit button  March 14, 2011 at 6:13 PM
i need to set an image on submit button. In javascript we can create a button like.. <a href="javascript:;" class="button">Sign up</a> But how will i do it from CSS? ... View Questions/Answers

jdbc  March 14, 2011 at 6:11 PM
sir i want a java code which have some method(new a/c(),update a/c(),serchUser(through id ),getuser(id , pass),changePass(id, id)); using oracle 10g thank u ... View Questions/Answers

jdbc  March 14, 2011 at 6:11 PM
sir i want a java code which have some method(new a/c(),update a/c(),serchUser(through id ),getuser(id , pass),changePass(id, id)); using oracle 10g thank u ... View Questions/Answers

jdbc  March 14, 2011 at 6:11 PM
sir i want a java code which have some method(new a/c(),update a/c(),serchUser(through id ),getuser(id , pass),changePass(id, id)); using oracle 10g thank u ... View Questions/Answers

jdbc  March 14, 2011 at 6:11 PM
sir i want a java code which have some method(new a/c(),update a/c(),serchUser(through id ),getuser(id , pass),changePass(id, id)); using oracle 10g thank u ... View Questions/Answers

jdbc  March 14, 2011 at 6:11 PM
sir i want a java code which have some method(new a/c(),update a/c(),serchUser(through id ),getuser(id , pass),changePass(id, id)); using oracle 10g thank u ... View Questions/Answers

jdbc  March 14, 2011 at 6:11 PM
sir i want a java code which have some method(new a/c(),update a/c(),serchUser(through id ),getuser(id , pass),changePass(id, id)); using oracle 10g thank u ... View Questions/Answers

jdbc  March 14, 2011 at 6:10 PM
sir i want a java code which have some method(new a/c(),update a/c(),serchUser(through id ),getuser(id , pass),changePass(id, id)); using oracle 10g thank u ... View Questions/Answers

jdbc  March 14, 2011 at 6:10 PM
sir i want a java code which have some method(new a/c(),update a/c(),serchUser(through id ),getuser(id , pass),changePass(id, id)); using oracle 10g thank u ... View Questions/Answers

jdbc  March 14, 2011 at 6:10 PM
sir i want a java code which have some method(new a/c(),update a/c(),serchUser(through id ),getuser(id , pass),changePass(id, id)); using oracle 10g thank u ... View Questions/Answers

make setup  March 14, 2011 at 5:39 PM
i've made jbuilder application how could make autorun or jar executable for this application? waiting your answers soon ... View Questions/Answers

Addin checkbox to table  March 14, 2011 at 5:33 PM
how to add checkboxes in JTable ... View Questions/Answers

how to allow table editing  March 14, 2011 at 5:30 PM
1**. hi... l've tried the method isCellEditable(int rowIndex, int colIndex) { return true but it doesn't enabled the user the editing of any cell why????????????? regards for answers** ... View Questions/Answers

jsp ouestion  March 14, 2011 at 5:27 PM
I have 1 report in my project.In that report i have used java bean.I want to make 1 more report by using data of first report. plz help me.....to get data from bean in second report ... View Questions/Answers

Dynamically adding textbox and labels  March 14, 2011 at 5:12 PM
Sir, In my application I want to insert texbox and labels dynamically and want to insert database field value in that generated label. Plz help me, Thanks in advance. ... View Questions/Answers

Formatting text in HTML  March 14, 2011 at 5:04 PM
What are the tags in HTML to format text? ... View Questions/Answers

DMCA.com