Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

String doubt replace function  February 10, 2011 at 7:54 PM
What is the output and why of below : String s1 = "Hello"; if(s1.replace('H','H')== "Hello") System.out.println("yes"); else System.out.println("No"); if(s1.replace("H", "H")== "Hello") System.out.println("yes"); else System.out.println("No"); ... View Questions/Answers

Wamp server error  February 10, 2011 at 7:43 PM
Whenever i am executin program of database connectivity using php i am getting error to the following statement: $q="select password from login where username=".$uid; while($row=mysqlfetcharray($q)) I am getting error as: mysqlfetcharray()expects parameter 1 to be resource,b... View Questions/Answers

Array Sizeof Function PHP  February 10, 2011 at 5:59 PM
Hi, How to count the number of elements in an array using the PHP Array sizeof() function? Please provides me online help links or example of array sizedof() PHP. Thanks ... View Questions/Answers

Advertisement

How to Using timezone_location_get() PHP  February 10, 2011 at 5:52 PM
Hi, I am trying to create an application using the timezonelocationget() in PHP to retrieve the data of country code & latitude/longitude. I need the help of PHP developer who can suggest or provides online help references. Thanks, ... View Questions/Answers

java try catch  February 10, 2011 at 5:46 PM
try{ return 1; }catch(exception e){ return 2; } finally{ Return 3; } What is the out put if any exception occurred? ... View Questions/Answers

How to customize property type conversion errors in Spring MVC 3.  February 10, 2011 at 5:45 PM
Hi, I have readed "Spring 3 MVC Validation Example" http://www.roseindia.net/tutorial/spring/spring3/web/spring-3-mvc-validation-example.html. In the validation form example, I have populated age's imput with a string "hello". After send the form, I receive a type conversion erro... View Questions/Answers

How to call Array Length for loop in PHP  February 10, 2011 at 5:41 PM
Hello, I am learner in PHP scripting Language. How can I use the array length for loop in PHP programming language? Kindly provides online help guide or reference links. Thanks, ... View Questions/Answers

Line Breaks in PHP  February 10, 2011 at 5:28 PM
Hi, I am beginner in PHP language. How to do the line-break in PHP? Does somebody help me in this regard. Thanks, ... View Questions/Answers

sum in JTable  February 10, 2011 at 5:08 PM
how to calculate sum from JTable's one field like total ... View Questions/Answers

NSMutableDictionary Example  February 10, 2011 at 5:00 PM
Hi, Provide me some examples of NSMutableDictionary. Thanks ... View Questions/Answers

which is better server for java applications? apache or jboss?  February 10, 2011 at 4:03 PM
which is better server? apache or jboss? ... View Questions/Answers

package  February 10, 2011 at 3:24 PM
by what name we can save a java file that contain a package {i.e package p;} and several public classes {i.e public class abc} but not a main method ... View Questions/Answers

PDF to Image  February 10, 2011 at 3:00 PM
Java code to convert PDF to Image ... View Questions/Answers

Using insert update and delete in the same servlet  February 10, 2011 at 2:43 PM
How to write insert, update and delete coding in the same servlet? ... View Questions/Answers

database  February 10, 2011 at 2:37 PM
Im doing my project in netbeans..swings I want to display the names of the databases present in mysql database on a Jlist that is already present on the gui and when the user selects a particular database,the tables present under that database should be displayed on another Jlist which is present... View Questions/Answers

plugins in eclipse helios  February 10, 2011 at 2:21 PM
How to add the capabilities of already builtin plugins to the project in eclipse helios ... View Questions/Answers

java  February 10, 2011 at 1:38 PM
design a class named triangle that extends geometricobject.the class comtains: * Three double data fields named side1, side2, and side3 with default values 1.0 to denote three sides of the triangle. * A no-arg constructor that creates a default triangle. * A constructor that creates a triangle wi... View Questions/Answers

PROBLEM IDENTIFICATION  February 10, 2011 at 1:29 PM
class MOrders { int nooforders; // Data members of the class public int getorder() { nooforders = 500; } public void displayorders() { System.out.println("The number of orders to be delivered: "+ nooforders); } public static void main(String args[]) { MOrders obj = new MOrders (); obj.getorder();... View Questions/Answers

Help  February 10, 2011 at 1:23 PM
Description: Display 3 red rectangles as indicated. Use 3 different rectangle objects, one for each rectangle. Dimensions of each rectangle: 40 x 40 pixels Starting position: The first rectangle√Ę‚?¨‚?Ęs top left hand coordinate must be at x = 50, y = 70 ... View Questions/Answers

hibernate software  February 10, 2011 at 12:52 PM
please give me the link from where i can freely download the hibernate software ... View Questions/Answers

how to use a image in background in your application form?  February 10, 2011 at 12:47 PM
how to use a image in background in your application form? ... View Questions/Answers

MVC Example  February 10, 2011 at 11:59 AM
I WANT MVC EXAMPLE PROGRAM using Jsp Servlets and Jdbc with mysql of Insert,update,delete,search. please give the answer in MVC rule ... View Questions/Answers

Servlets  February 10, 2011 at 11:08 AM
How to check,whether the user is logged in or not in servlets to disply the home page? ... View Questions/Answers

PHP Array Length  February 10, 2011 at 10:59 AM
HI, I am fresher in PHP? So, please suggest the parameters for PHP Array Lengh and how to declare the array length in PHP program. Thanks, ... View Questions/Answers

get date picker values to a textbox  February 10, 2011 at 10:56 AM
I am using DatePicker to select date in a form in asp.net using c#. I need the picked data to get in to a textbox. Please help me soon................. ... View Questions/Answers

calling a java file in java  February 10, 2011 at 10:47 AM
how to call a another java file in java ... View Questions/Answers

how to execute a file in java at regular time intrevals automattically  February 10, 2011 at 10:42 AM
how to execute a file in java at time retrievals automatically ... View Questions/Answers

PHP idate() Function  February 10, 2011 at 10:42 AM
Hi, Can anybody suggest me or provide online help related to PHP idate() Function. I waiting for your valuable suggestion. Thanks, ... View Questions/Answers

algorithm  February 10, 2011 at 10:22 AM
convert this algorithm to java code IsSample_PAS: 1.for every attribute value aj belongs to ti do begin (here aj=1,2...,ti=1,2..) 2.if(CF(aj)=null)(where CF is a function) 3.insert n(sj)=0,s(aj)=0 in to CF 4.n(aj)++; 5.if aj is not proportion preserved value 6.vi=vi U aj(vi is empty initially) 7.... View Questions/Answers

union  February 10, 2011 at 9:53 AM
how to declare union function define in single line in java(eg:like c=a+b) ... View Questions/Answers

logging in java  February 10, 2011 at 9:27 AM
Hi, Im using loggers in standalone java program.i need to store the loggers in a xxx.log file in classpath.how can i implement this using slf4j loggers or anythig else? ... View Questions/Answers

hibernate  February 10, 2011 at 9:16 AM
please give me the link where i can freely download hibernate software(with dependencies) ... View Questions/Answers

css  February 10, 2011 at 8:42 AM
Create a new external style sheet with the name exercise1.css 2.In this style sheet, define the following. Use a different element, and different properties and/or values, for each rule: * one or more simple selectors example: p { pro... View Questions/Answers

css  February 10, 2011 at 8:16 AM
Create a new external style sheet with the name exercise1.css 2.In this style sheet, define the following. Use a different element, and different properties and/or values, for each rule: one or more simple selectors example: p { property:value; } ... View Questions/Answers

css  February 10, 2011 at 8:13 AM
Create a new external style sheet with the name exercise1.css 2.In this style sheet, define the following. Use a different element, and different properties and/or values, for each rule: one or more simple selectors example: p { property:value; } ... View Questions/Answers

string to double  February 10, 2011 at 5:20 AM
So I have an assignment where we have to convert strings into double.I have to modify the method parseDouble() to fully implement the method to imitate the Double.parseDouble() method of Java. In other words, parseDouble() method takes a String as input and converts it into a double when possible... View Questions/Answers

Prompt  February 10, 2011 at 2:19 AM
I have a program that is asking for user input. It is divided into methods in the method asking for the input it uses a prompt command that I've never seen. public static int getInput(numberOfGrades) { System.out.print(**prompt** + ' '); return numberOfG... View Questions/Answers

Name  February 9, 2011 at 10:18 PM
make a program that take a input from user in alphabet and show all the name of that character E.g User give character "B". The program shows all the human names which starts from B. ... View Questions/Answers

java applet notpad  February 9, 2011 at 10:17 PM
i need Codes Or programe in java applet ; i want add this programe to my site html > please help me our ... View Questions/Answers

Flex with JSP  February 9, 2011 at 10:08 PM
i want to draw chart in jsp page using flex. how can i do that? any solution?? ... View Questions/Answers

Login page validation on ipad  February 9, 2011 at 8:23 PM
I am using userId & password labels and their corresponding textfield. Now I want to validate the details by single sign in button and want to switch on to next page. Used two labels again to display message "invalid UserId" & "invalid pa... View Questions/Answers

for loop in java  February 9, 2011 at 8:01 PM
54321 4321 321 21 1 using for loop or nested 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 using for loop or nested 1 135 1357 1359 10 8 6 4 2 0 8 6 4 2 0 6 4 2 0 2 1 0 1 2 3 3 4 5 4 5 6 7 5 6 7 8 9 6 7 8 9 10 all for loop code plz friends guide me ... View Questions/Answers

for loop in java  February 9, 2011 at 8:01 PM
54321 4321 321 21 1 using for loop or nested 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 using for loop or nested 1 135 1357 1359 10 8 6 4 2 0 8 6 4 2 0 6 4 2 0 2 1 0 1 2 3 3 4 5 4 5 6 7 5 6 7 8 9 6 7 8 9 10 all for loop code plz friends guide me ... View Questions/Answers

for loop in java  February 9, 2011 at 8:01 PM
54321 4321 321 21 1 using for loop or nested 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 using for loop or nested 1 135 1357 1359 10 8 6 4 2 0 8 6 4 2 0 6 4 2 0 2 1 0 1 2 3 3 4 5 4 5 6 7 5 6 7 8 9 6 7 8 9 10 all for loop code plz friends guide me ... View Questions/Answers

for loop in java  February 9, 2011 at 8:01 PM
54321 4321 321 21 1 using for loop or nested 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 using for loop or nested 1 135 1357 1359 10 8 6 4 2 0 8 6 4 2 0 6 4 2 0 2 1 0 1 2 3 3 4 5 4 5 6 7 5 6 7 8 9 6 7 8 9 10 all for loop code plz friends guide me ... View Questions/Answers

for loop in java  February 9, 2011 at 8:01 PM
54321 4321 321 21 1 using for loop or nested 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 using for loop or nested 1 135 1357 1359 10 8 6 4 2 0 8 6 4 2 0 6 4 2 0 2 1 0 1 2 3 3 4 5 4 5 6 7 5 6 7 8 9 6 7 8 9 10 all for loop code plz friends guide me ... View Questions/Answers

JSON with Java  February 9, 2011 at 6:59 PM
How to request Json From URI and to parse and to store the values in Java array ... View Questions/Answers

What is the microtime() Function PHP ?  February 9, 2011 at 6:37 PM
Hi, What is microtime() Function in PHP? What is the role of Microtime() Function in PHP. Please suggest me any online reference. Thanks, ... View Questions/Answers

how to get string between two characters  February 9, 2011 at 6:34 PM
hgow to get string from between two characters. ex:hareesh.arava@gmail.com from the above word i want a string between characters . and @ send the required method and give better example. ... View Questions/Answers

How to Addding 1 Year with PHP  February 9, 2011 at 6:32 PM
Hi, I am very fresh in PHP language. I trying to create a small application about how to adding 1 year in specific date. Please suggest me. Thanks, ... View Questions/Answers

JInternalFram  February 9, 2011 at 6:18 PM
how can remove title of JInternalFram in Netbeans. ... View Questions/Answers

two dimensional array  February 9, 2011 at 4:23 PM
how tow dimensional array works.How those loopes get incremented .and how every time the value of k changes? ... View Questions/Answers

java  February 9, 2011 at 3:04 PM
we compile FileName.java with command javac FileName.java. then at run time, how JVM decide that .class must be compiled(with JIT compiler) or interpreted or work both at same time.(use of JIT compiler and Interpreter). ... View Questions/Answers

intranet in java swing  February 9, 2011 at 2:00 PM
i want source code of intranet establishment in java swing ... View Questions/Answers

Learning Ajax  February 9, 2011 at 2:00 PM
How to learn Ajax? Thanks ... View Questions/Answers

jsp with database oracle  February 9, 2011 at 1:24 PM
hai i am doing one program in jsp i want to check the jsp life cycle methods so wrote one program, in which i write jspInit() method and jspDestroy() methods. but i am getting error i crate a table with the name employee i am sending sample code to u. plz help me to fix this problem <... View Questions/Answers

hi  February 9, 2011 at 1:18 PM
My program is not find java.io.File; why? help me please.. ... View Questions/Answers

profile doesn't match any valid certificate private key pair in the default keychain  February 9, 2011 at 12:39 PM
Hi, I am not able to create my application build. Following error is coming profile doesn't match any valid certificate private key pair in the default keychain and I am not able to select my certificate for building the app. Thanks ... View Questions/Answers

JQuery  February 9, 2011 at 12:27 PM
my requirement is: as i have a list of doctors in my table in the DB. a textbox is there in the browser it should display all the doctors names matching with the character typed in the textbox while typing(onkeyup event), textbox is in one jsp file, the ajax mathod call should be in another jsp f... View Questions/Answers

how to show required fields indicate as * in struts2  February 9, 2011 at 12:09 PM
how to show required fields indicate as * in struts2 ... View Questions/Answers

java  February 9, 2011 at 12:08 PM
what is purpose of UTF? ... View Questions/Answers

ABOUT Jtable  February 9, 2011 at 11:34 AM
My Project is Exsice Management in java swing Desktop Application. I M Use Netbeans & Mysql . How can retrive Data in Jtable from Mysql Database in Net Beans** ... View Questions/Answers

class NSCFString autoreleased with no pool in place - just leaking  February 9, 2011 at 11:00 AM
Hi, In my application following error is coming: class NSCFString autoreleased with no pool in place - just leaking What is the solution? Thanks ... View Questions/Answers

How to know the Sunrise time of particular date and Location.  February 9, 2011 at 10:51 AM
Hi, How to create a small application to know the sunrise time of specific date as well as the locations. So, Please provide any online help. so, that i will manipulate the application. Thanks, ... View Questions/Answers

Java: Adding Row in JTable  February 9, 2011 at 10:14 AM
how about if we already have the JTAble created earlier. And i just found nothing to get its DefaultTableModel, thus, I can't call insertRow() method. Is there any work around for this? I found that we need to re-create the table as a whole using AbstractModel, (what??)... View Questions/Answers

to upload a table from DB to the same html page  February 9, 2011 at 10:13 AM
how to make this booklist table to be opened in the same html page itself using a third frame? ... View Questions/Answers

How to Addding One Month with PHP ?  February 9, 2011 at 10:04 AM
Hi, I am very new in this php programming language. Can anybody will guide me how to add 1 month on a specific date on PHP. Please give any example or reference links. Please feel free for any suggestion. Thanks, ... View Questions/Answers

How to retrieve the ISO Date in PHP?  February 9, 2011 at 9:58 AM
Hi, I am a beginner in PHP programming language. I have a query how to retrieve the ISO Date in PHP Language. Can any one suggest any reference for this. Thanks, ... View Questions/Answers

Java  February 9, 2011 at 9:56 AM
I am using Java netbeans ide. Q 1.Every Time i execute a query My ResultSet points to zero. is there any mechanism to make my cursor point to the last row i viewed.or traveresd through.. Q 2.Whenever a new Record is created in a Database.A unique textfile is created on a host machine.But ... View Questions/Answers

multiple inheritance  February 9, 2011 at 9:05 AM
why java doesn't support multiple inheritance? we can achieve this by using interface but not with classes? what is the main reason that java community implemented like that? ... View Questions/Answers

JList Background Images..Urgent  February 9, 2011 at 8:36 AM
I has done a JList that can change background color when i selected each of it, but if i want to change background image rather than background colors, how can i do it? Please help! my previous coding as below: import java.awt.*; import javax.swing.*; import javax.swing.event.*;... View Questions/Answers

java Question  February 9, 2011 at 6:38 AM
Design a class named rectangle to represent a rectangle. The Class contain: Two double data fielda named width and heigth that specify the width and height of the rectangle.the default values are 1 for both width and height. A string data field named color that specified ... View Questions/Answers

java Question  February 9, 2011 at 6:36 AM
Design a class named rectangle to represent a rectangle. The Class contain: * Two double data fielda named width and heigth that specify the width and height of the rectangle.the default values are 1 for both width and height . *A string data field named color that specified the color of a rect... View Questions/Answers

Question on reversing word of a sentnce  February 8, 2011 at 10:21 PM
Write a function that accepts a sentence as a parameter, and returns the same with each of its words reversed. The returned sentence should have 1 blank space between each pair of words. Demonstrate the usage of this function from a main program. Example: Parameter: ?jack and jill went up a hill?... View Questions/Answers

java  February 8, 2011 at 9:58 PM
what is s.charAt(i)-'0' ... View Questions/Answers

Java  February 8, 2011 at 8:48 PM
I have written the code to query the database to retrieve the flight details and the schedule of the flights, however, when executing the code i experience an error which says Error :java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specifie... View Questions/Answers

looping through a list of methods  February 8, 2011 at 6:27 PM
I have a number of methods that do the almost same thing: public void setColorRed (int colorvalue); public void setColorYellow (int colorvalue); public void setColorBlue (int colorvalue); Is there a way to place these methods in a list and then call each one f... View Questions/Answers

HTML Upload  February 8, 2011 at 6:05 PM
Hi, I want to upload a word / excel document using the html code (web interface)need to get displayed on another webpage. Please let me the coding to display on another webpage using. ... View Questions/Answers

searching problem  February 8, 2011 at 5:17 PM
how we can make a code in core java for searching in hard disk? i have to make an antivirus as my minor project , so i have need this type code to search the virus in hard disk. ... View Questions/Answers

searching problem  February 8, 2011 at 5:16 PM
how we can make a code in core java for searching in hard disk? i have to make an antivirus as my minor project , so i have need this type code to search the virus in hard disk. ... View Questions/Answers

UIPopOverController - Open a second PopOverController over first UIPopOverController  February 8, 2011 at 4:37 PM
How can i open a second UIPopoverController over my first UIPopoverController in my iPad application? Right now my first UIPopoverController is called on UIBarButtonItem click that is placed in the UIToolBarItem. ... View Questions/Answers

Eclipse  February 8, 2011 at 4:18 PM
I am new to eclipse. I want to write a jsp program and want to connect it with mysql. What are the configurations i need to check in eclipse ... View Questions/Answers

NSZombieEnabled iPhone  February 8, 2011 at 4:13 PM
NSZombieEnabled Trouble in setting How can i set the NSZombieEnabled in iPhone application to track unmanaged memory? ... View Questions/Answers

Delete Query using HQL  February 8, 2011 at 3:50 PM
Can we write 'AND' with 'WHERE' clause in delete query using HQL? For example: delete from table name where field1 = value1 and field2 = value2 ... View Questions/Answers

Spring application in RSA 7.0.0.3  February 8, 2011 at 2:53 PM
how to build a sample spring application using RSA 7.0.0.3 ... View Questions/Answers

java  February 8, 2011 at 1:57 PM
what is the difference between Abstract class and Interface ... View Questions/Answers

email archiving  February 8, 2011 at 1:56 PM
Hi, What is email archiving? Thanks ... View Questions/Answers

hibernate projection  February 8, 2011 at 1:01 PM
why projection are used and in what situation do we need to use projections ... View Questions/Answers

how to get session object in simple java class??  February 8, 2011 at 12:49 PM
i am fallowing a simple mvc architecture. actually my problem is.... i am using 4 classes in my work. 1) GroupDetails.jsp 2) GroupPojo.java (simple pojo class which have setters and getters) 3) GroupServlet.java (a servlet class for control) 4) Gro... View Questions/Answers

Eclipse  February 8, 2011 at 12:48 PM
I am new to eclipse. i want to create a login page in eclipse and want to connect with mysql. what are the software and jar file i need to include in eclipse ... View Questions/Answers

LOOP-HOLE SERIES GENERATION  February 8, 2011 at 12:29 PM
QUESTION:- WRITE A PROGRAM TO GENERATE THE FOLLOWING SERIES CALLED LOOPHOLE SERIES:- 3,5,53,13,19,7,19,13,53,5,3 ... View Questions/Answers

hibernate  February 8, 2011 at 12:27 PM
why we should use hibernate projection? ... View Questions/Answers

LOOP-HOLE SERIES GENERATION  February 8, 2011 at 12:19 PM
QUESTION:- WRITE A PROGRAM TO GENERATE THE FOLLOWING SERIES CALLED LOOPHOLE SERIES:- 3,5,53,13,19,7,19,13,53,5,3 ... View Questions/Answers

closing connections in finally block  February 8, 2011 at 12:05 PM
Hi, What will happen if I close connection before closing the resultset in the finally clock? e.g. finally... { ... conn.close(); rs.Close(); } If i do as above ... what will happen? ... View Questions/Answers

Sorting arraylist without using Collection.sort()  February 8, 2011 at 12:01 PM
Hi, How can I sort an arraylist without using Collection.sort() nad also I am not allowed to use any other data structure in the program? Is there any algorithm by using which I can do this? Please help .... ... View Questions/Answers

Hibernate  February 8, 2011 at 11:42 AM
Hi i have 2 doubbts regarding Hibernate ,.. 1)Can we rename hibernate.cfg.xml? 2? can we use multiple mapping resource in hibernate.cf.xml file ? pls let me know soon ... View Questions/Answers

java servlets with database interaction  February 8, 2011 at 11:33 AM
hai friends i am doing a web application in that i have a registration page, after successfully registered it has to display a message like "you have successfully registered" and those values should be saved in to the database.but i am getting an exception like "not enough values" can you please ... View Questions/Answers

Resultset Issue in SQL  February 8, 2011 at 11:00 AM
when i call rs.next() in my code it is returning false, though im having valid query to execute and fetch a row from database.how can i resolve this issue. My code is: SELECT JOBDESCRIPTION,CATEGORY,OVERVIEW,COUNTRY,STATE,CITY FROM JOB WHERE JOBNAME=? ps.setS... View Questions/Answers

SENTINEL  February 8, 2011 at 10:44 AM
PLZ GIVE THE SUGGESTION,WHERE I MUST PUT THE SENTINEL IN THIS PROGRAME OR CODING public class DayType{ final static int SUN = 0; final static int MON = 1; final static int TUE = 2; final static int WED = 3; final static int THU = 4; final st... View Questions/Answers

JTable  February 8, 2011 at 10:30 AM
i want to delete record from JTable using a MenuItem DELETE. and values of JTable are fetched from database....please reply soon ... View Questions/Answers

DMCA.com