Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

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

Ads

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

forget password?  March 14, 2011 at 4:45 PM
can anyone help me? how to create a module of forget password?the password can reset by generate random password and send to user's email..i develop the php system using xampp and dreamweaver.. ... View Questions/Answers

forget password?  March 14, 2011 at 4:45 PM
can anyone help me? how to create a module of forget password?the password can reset by generate random password and send to user's email..i develop the php system using xampp and dreamweaver.. ... View Questions/Answers

Link on Image  March 14, 2011 at 3:43 PM
HTML link question mark Image can anyone please suggest how can i link the question mark image in HTML? ... View Questions/Answers

webservices in websphere server using eclipse  March 14, 2011 at 3:39 PM
can websphere server used instead of tomcat??...if so any changes to be made? Please elaborate. ... View Questions/Answers

jsp update request happens to be invoked by a link  March 14, 2011 at 2:39 PM
<tr class="bg-row1"> <td class="td-highlighted-2"> <div align="left"><a href="<%=contextPath%>/jsp/admin/UpdateProject.jsp"><%=searchList1.getProjid()%></a></div> </td> <td class="td-highlighted-2"... View Questions/Answers

php  March 14, 2011 at 2:15 PM
show the constructor overloading in php ... View Questions/Answers

java  March 14, 2011 at 2:11 PM
The following subclasses named RegularService and PremiumService are inherited from a superclass named Customer. Superclass : Customer Atributes : String name; // customer name String address; // customer address String telno; // customer mobile phone number int ... View Questions/Answers

how to upload and download images in java?  March 14, 2011 at 2:04 PM
what is the code for uploading and downloading images in java? how do I make a photo gallery through JSP? I want to create a photo gallery for each user which can be viewed by all users but can be updated and deleted by the creator. Please give me suggestions. ... View Questions/Answers

css click box  March 14, 2011 at 1:50 PM
I wanted to create a click box in CSS with a hyperlink that should appears flat. ... View Questions/Answers

paragraph height css  March 14, 2011 at 1:36 PM
How can i specify height of a paragraph in CSS? ... View Questions/Answers

paragraph height css  March 14, 2011 at 1:36 PM
How can i specify height of a paragraph in CSS? ... View Questions/Answers

writing document (.doc) file from java with format such as font type, font style  March 14, 2011 at 1:29 PM
Can anyone help me how can i write a java code to write a string with format such as font type and style to a document file? Thanks in advance. ... View Questions/Answers

what is the output?  March 14, 2011 at 12:52 PM
public class MyAr{ public static void main(String argv[]) { int[] i=new int[5]; System.out.println(i[5]); } } ... View Questions/Answers

same data inserted 2 times in database  March 14, 2011 at 12:37 PM
pls help me, i have table studentmaster(firstname,lastname,fathername,phone,address). i am inserting data into database 2 times the data will be inserted. forexample: firstname lastname fathername phone address mithu tum vinay 80055 ban mithu tum ... View Questions/Answers

servlets and struts  March 14, 2011 at 12:28 PM
wat is the diffrence between servlets and struts? ... View Questions/Answers

struts  March 14, 2011 at 12:22 PM
hi Before asking question, i would like to thank you for clarifying my doubts.this site help me a lot to learn more & more technologies like servlets, jsp,and struts. i am doing one struts application where i doing validations by using DynaVAlidatorForm in that have diffe... View Questions/Answers

iphone video sharing in facebook, email, Twitter  March 14, 2011 at 12:20 PM
Hi, I need sample video sharing iphone development codes --Thanks in advance ... View Questions/Answers

Inheritance question?  March 14, 2011 at 11:59 AM
Q3)Create a class hierarchy as Company extended by AccountsDepartment. AccountsDepartment extended by AccountsReceivable and AccountsPayables. The Company performs following operations. (1) There is an inflow and outflow of cash by the customers. (2) Whenever a customer comes the AccountsDepartme... View Questions/Answers

DMCA.com