Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

binary tree  February 14, 2011 at 10:39 AM
can a binary tree be implemented with out comparing the value with root? ... View Questions/Answers

webservice  February 14, 2011 at 10:34 AM
hello deepak.... i have followed the tutorial which u have provided(http://roseindia.net/webservices/web-services-database.shtml)..... But still database is not updating... Pls look into my problem.... regards-- harish kumar... View Questions/Answers

stopwatch  February 14, 2011 at 8:40 AM
Java code for stopwatch timer which should start from zero ... View Questions/Answers

Advertisement

ASSIGN TIME LIMIT  February 14, 2011 at 12:09 AM
import java.util.*; class enter{ public static void main(String args[]){ int a; Scanner p=new Scanner(System.in); /*add some command such a time limit assign for next two commands*/ a=p.nextInt(); System.out.println(a); System.out.println("... View Questions/Answers

Help for Check availability of user  February 13, 2011 at 8:29 PM
I need the code for check availability of users in the database before login.I placed a button for Check Availability.Can it be done with this or ajax should be used? ... View Questions/Answers

sahabaj  February 13, 2011 at 7:23 PM
diamond shape pattern print of numbers 123456789101112131415987654321 ... View Questions/Answers

File Upload  February 13, 2011 at 6:44 PM
Hi I need script / string in PHP where I uploaded the file in html frontend and it should sent the uploaded file as attachment to my email address ... View Questions/Answers

match mismatch of shaadi website code in jsp  February 13, 2011 at 6:38 PM
match mismatch code in jsp ... View Questions/Answers

Declare Reference variable  February 13, 2011 at 6:14 PM
class A { int a; //instance variable static int b; // static variable A ref; static A refs; public static void main(String[] args) { // statements followed here... } } My Question is that instance v... View Questions/Answers

pointer  February 13, 2011 at 5:21 PM
CONSTRTUCT A STRUCTURE FOR EMPLOYEE RECORD THAT CONTAINS A PERSON'S NAME, AGE, EMPLOYEE AND SALARY.WRITE A STATEMENT THAT DECLARES A VARIABLE empInfo and a pointer emPtr of type EMPLOYEE.then use the pointer to display all information of imployee info ... View Questions/Answers

java  February 13, 2011 at 5:07 PM
can we write main() with private.. example--private static void main(String x[])? ... View Questions/Answers

creating a file in a directory  February 13, 2011 at 1:47 PM
hi i have tried all the file methods to create a file inside a directory but none of them r working some of them are new File ( ".", "C:/fileInRoot.txt" ) new File ( "myDir", "/otherDir" ) File( "myDir/OtherDir" ) File( "/OtherDir" ); new File ( "species/clan/individual.txt" ) can... View Questions/Answers

sahabaj gayen  February 13, 2011 at 1:43 PM
Write a program which takes a string (maximum 80 characters terminated by a full stop. The words in this string are assumed to be separated by one or more blanks. Arrange the words of the input string in descending order of their lenghts. Same length words should be sorted alphabetically... View Questions/Answers

Unable to execute JSP page  February 13, 2011 at 12:40 PM
I have written one jsp file. It contains html tags and jsp directives. I have saved the file with the extension .jsp. The tomcat server is already running onto my machine. I have saved the jsp file within demo-examples which is again within webapps folder of apache-tomcat-6.0.14 folder. B... View Questions/Answers

hava  February 13, 2011 at 11:48 AM
write a program to count the no of repeated words in a sentence by using a return statement? ... View Questions/Answers

java  February 13, 2011 at 11:47 AM
write a program to count the no of words in a sentence by using a return statement? ... View Questions/Answers

java  February 13, 2011 at 11:45 AM
tribonacci series program in java by using a return statements ... View Questions/Answers

database  February 13, 2011 at 11:17 AM
I wanted to know if it is possible to create a database in mysql by letting the user enter the name of the database in swing gui..im doing my project in netbeans...Thank You ... View Questions/Answers

online library management  February 13, 2011 at 10:16 AM
how to divert user from log in page to home page depending on their category(like student or staff in case of ol library) using java servlet? ... View Questions/Answers

prompt using  February 13, 2011 at 2:01 AM
I want examples to use prompt and how to move the item from the prompt to a cell in a table. thank you. ... View Questions/Answers

using prompt  February 13, 2011 at 1:57 AM
how to use prompt ... View Questions/Answers

A TRIAL  February 13, 2011 at 12:31 AM
Write a program for a furniture company that requests from user the type of wood, the table size, the number of drawers, the quantity of tables to order, delivery service required, and finally display the total order amount. The type of wood is Pine, Oak or Mahogany; and there are three table siz... View Questions/Answers

fresher  February 12, 2011 at 9:03 PM
why we will not move the result set object from one application to another application ... View Questions/Answers

Array  February 12, 2011 at 8:42 PM
i having problem how to make algorithm for [a][5] [a][10] [b][15] [b][10] [c][5] [c][5] . . . . sum of [a] = 15 [b] = 25 [c] = 10 . . . . ... View Questions/Answers

java basics  February 12, 2011 at 8:29 PM
Write a java program to calculate the sum of the series as given below: 1 - 2 + 3 - 4 + 5 - 6 + 7 - 8 + 9 ... View Questions/Answers

common Menu bar(toolBar) at the top of all view  February 12, 2011 at 7:26 PM
I creat on login page and after sign in I move to next page. Now I want to add menu bar at the top of my all view. Any one have any idea abt how to do it?? ... View Questions/Answers

implement microsoft office  February 12, 2011 at 6:42 PM
how implement microsoft office in my java swing project ,or when microsoft office is not install then file open in defualt text editar.please send me source code. ... View Questions/Answers

Strut  February 12, 2011 at 3:56 PM
example how to use validators in struts ... View Questions/Answers

NSNotificationCenter Example  February 12, 2011 at 3:35 PM
Hi, can anyone help me to understand NSNotificationCenter better ..? If possible then please provide me an example or tutorial of nsnotificationcenter in objective c. Thanks! ... View Questions/Answers

web page design  February 12, 2011 at 3:08 PM
Great Applianz Ltd. was established in 1985, in New York. It deals in home appliances. Initially, it manufactured home appliances and sold them through selected stores. However, with a gradual increase in their popularity and sales, the company has opened its exclusive stores in New York. In a re... View Questions/Answers

Analog clock  February 12, 2011 at 2:06 PM
how to develope analog clock using java? ... View Questions/Answers

other form  February 12, 2011 at 1:55 PM
Can I write this code in other form: if (quantity>=5) { System.out.println("Congrats!! You get a discount of 5%."); } else { System.out.println("you can avail a discount of 5% when you make a purchase of 5 items."); } ... View Questions/Answers

APLIANCE DETAILS  February 12, 2011 at 1:49 PM
I have created a package named ApplianceDetails that contains the Appliance class. Now I want to create a class named NewAppliance that stores the details of the newly launched appliances.I used the following syntax to code the NewAppliance class that inherits from the Appliance class: pu... View Questions/Answers

Java technology  February 12, 2011 at 1:42 PM
how does java technology implement security ... View Questions/Answers

check  February 12, 2011 at 1:29 PM
interface validateInfo { public void validate(String empcode, String password); } class updateInfo implements validateInfo { String empcode; String password; public void validate(String code,String pass) { this.empcode=code; this.passwor... View Questions/Answers

pattern matching - four way technique  February 12, 2011 at 12:43 PM
Hi, here's my question.. I am trying to implement pattern matching using brute force algorithm where I am trying to apply four way technique to search a given pattern in a text.in this four way technique I will be splitting text which is of length "n" into two halves i.e.from 0 to n/2 and n/2 t... View Questions/Answers

diamond print  February 12, 2011 at 12:32 PM
print the pattern 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 8 9 10 ... View Questions/Answers

MKMapView Change Red Pin Color  February 12, 2011 at 12:08 PM
MKMapView Change Pin Color Hi, in my iphone map view application, i displayed the image on annotation instead of custom pin. But however on click it changes to red color pin. Can any one please tell me how can i show the same image ever after it's taped. ... View Questions/Answers

How to set NSZombieEnabled iPhone  February 12, 2011 at 11:03 AM
Hi, In my application I have to find and fix the object release issue. How to set NSZombieEnabled iPhone to find the bugs? Thanks ... View Questions/Answers

How to Convert NSStringe into Uppercasestring iPhone  February 12, 2011 at 10:43 AM
Hi, Is there any process to make or covert the nsstrings into caps/uppercase. Please explain how to convert nsstring into uppercasestring in iphone Application. Thanks, ... View Questions/Answers

How to Make iPhone Window Application  February 12, 2011 at 10:29 AM
Hi, For Making iphone window application, what parameters i have to follow or provide example related to iphone window application. Thanks, ... View Questions/Answers

core java  February 12, 2011 at 10:28 AM
what is the max size of array? ... View Questions/Answers

How to Create Segment Application with iPhone  February 12, 2011 at 10:21 AM
Hi, i am fresher in iphone application. How can i will create segment application in iphone. So, kindly help me or provide online example reference. Thanks, ... View Questions/Answers

How to Define Text Field Validation iPhone  February 12, 2011 at 10:14 AM
Hi, Can anybody explain me how to define textfield validation iPhone program. please phone online help reference or example. Thanks, ... View Questions/Answers

validations  February 12, 2011 at 9:46 AM
How to get All Client and server side validations in spring using jsp ... View Questions/Answers

Learning Ajax  February 12, 2011 at 9:32 AM
Hi, I have experience in web web application development. But I am new in Ajax programming. How I can learn Ajax? Thanks ... View Questions/Answers

Writing a loop statement using Netbean  February 12, 2011 at 7:47 AM
Write a loop program using NetBeans. ... View Questions/Answers

need someone do it for me plz..people  February 12, 2011 at 4:36 AM
write an application that displays a menue of three items in a restaurant as follows: 1.Cheeseburger 4.99 2.Pepsi 2.00 3.Chips 0.75 prompt the user to choose an item using the number (1,2,or 3) that corresponds to the item, or to enter 0 to quit the application.aft... View Questions/Answers

How to write a loop and a while loop  February 12, 2011 at 4:20 AM
How do I write a 1 loop and a 1 while loop for the example code: public boolean isTheFirstOneBigger (int num1, int num2) { if (num1 > num2) { return true; } if (num1 <= num2) { return false; } } ... View Questions/Answers

date and time in awt(java)  February 12, 2011 at 12:53 AM
sir, do you have an example of date in awt java which can be view over a textfield. ... View Questions/Answers

time  February 12, 2011 at 12:49 AM
sir, i want to show system time on a textfield in awt(java). woulk you send me an example of time which can show time in standard format like H:M:S pls help me sir ... View Questions/Answers

php  February 11, 2011 at 10:25 PM
Whnever i am executing the following program i am getting warning as mysqlfetcharray() expects parameter 1 to be resource, boolean given . I have created table mytable which includes id,name at the backend. the program is View Questions/Answers

HTTP Status 500 -  February 11, 2011 at 10:19 PM
I've installed my Java libraries, and I am successfully able to compile and run Jave files from the command line. However, when I attempt to load a JSP file from my Apache Tomcat server I get the error below. TTP Status 500 - type Exception report message <... View Questions/Answers

jQuery  February 11, 2011 at 8:39 PM
Hi, What is jQuery and how it is used to develop Web applications? Thanks ... View Questions/Answers

jsp  February 11, 2011 at 7:50 PM
how to write a servlet and jsp program for user login form ... View Questions/Answers

jsp  February 11, 2011 at 7:50 PM
how to write a servlet and jsp program for user login form ... View Questions/Answers

webservice in Netbeans  February 11, 2011 at 6:44 PM
hi deepak.. in the tutorial which u hav provided(http://roseindia.net/webservices/web-services-database.shtml) im getting problem at 17 th step while right clicking on the source code im not getting the last two options-"Ejb methods", and "Enterprise Resources".. how can i find them.. im using ne... View Questions/Answers

form id  February 11, 2011 at 5:57 PM
sir, <form id="reg1" action="../UploadingCtrl" method="post" enctype="multipart/form-data" name="form1"> this action page can't get String tp = request.getParameter("indegrates"). i wrote article upload servlet and get articale name, i wont to this ... View Questions/Answers

form id  February 11, 2011 at 5:57 PM
sir, <form id="reg1" action="../UploadingCtrl" method="post" enctype="multipart/form-data" name="form1"> this action page can't get String tp = request.getParameter("indegrates"). i wrote article upload servlet and get articale name, i wont to this ... View Questions/Answers

how to create interfaces in java  February 11, 2011 at 5:37 PM
HI, Here is my code public interface validateInfo { public void validate(String empcode, String password); } class updateInfo implements validateInfo { public void update() { //code to update information of customer } public static void main(String a1[]) { updateInfo o= new updateInfo();... View Questions/Answers

java  February 11, 2011 at 5:25 PM
public interface validateInfo { public void validate(String empcode, String password); } class updateInfo implements validateInfo { public void update() { //code to update information of customer } public static void main(String a1[]) { updateInfo o= new updateInfo(); p.update(); Syste... View Questions/Answers

TO connect multiple database  February 11, 2011 at 5:23 PM
How to connect several database from a single application in java depending upon the user input it will connect to that database ... View Questions/Answers

ClassNotFound Exception:DispatcherServlet in spring application?  February 11, 2011 at 4:59 PM
**I have added all the jar files,even though classnotfound exception is coming? could you please tell me the resolution for this problem?** Feb 11, 2011 10:54:49 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal per... View Questions/Answers

Frame  February 11, 2011 at 4:41 PM
Michael wants to create a Java application with the following requirements: 1.Two labels representing name and age. 2.Two textboxes accepting name and age. The textbox accepting age should accept maximum 2 values. 3.A listbox representing values male and female. Write a code which will ac... View Questions/Answers

coding  February 11, 2011 at 4:27 PM
how to write a code for searching a link in another jsp file?pl give the soln soon! ... View Questions/Answers

retrieve data from mysql database  February 11, 2011 at 4:20 PM
hi am not familiar in php.....even though i want to create combobox effectively.... my query is that when i have selected value on combobox which is to be retrieve the relevant data from mysql database using php.... below my code is that.. <html> ... View Questions/Answers

unicode handling in java  February 11, 2011 at 4:16 PM
reading a unicode text file in java ... View Questions/Answers

memory management  February 11, 2011 at 3:42 PM
Why objects store in heap? ... View Questions/Answers

Why <![CDATA[ ]]> tag.  February 11, 2011 at 2:45 PM
. Why do we use this tag and what is the name of this tag. ... View Questions/Answers

Excel file wriring using java  February 11, 2011 at 2:22 PM
i have one predefined bill format in excel i want to append values in it using java apche POI or Jexcel i tried it but it overwrites file and lost previous contents what can i do ... View Questions/Answers

package  February 11, 2011 at 2:10 PM
Smith has created a package named ApplianceDetails that contains the Appliance class.Now he wants to create a class named NewAppliance that stores the details of the newly launched appliances.He uses the following syntax to code the NewAppliance class: public class NewAppliance extends Ap... View Questions/Answers

package  February 11, 2011 at 2:08 PM
Smith has created a package named ApplianceDetails that contains the Appliance class.Now he wants to create a class named NewAppliance that stores the details of the newly launched appliances.He uses the following syntax to code the NewAppliance class: public class NewAppliance extends Ap... View Questions/Answers

Buttons  February 11, 2011 at 1:59 PM
I have created a web page with radio button group with two radio buttons for accepting the home appliances categories,Kitchen appliances and other appliances.I want to check for the appliance chosen when the required radio button is selected.Which event listener do I need to implement for this ta... View Questions/Answers

i want to protect mysql database table which user can not view to table and can not copy my table till then us  February 11, 2011 at 1:55 PM
i want to protect mysql database table which user can not view to table and can not copy my table till then user do not put table password. neither user and programmer can not delete table nor take backup of database. if user and programmer want to export and import to table then they cannot that... View Questions/Answers

i want to protect mysql database table which user can not view to table and can not copy my table till then us  February 11, 2011 at 1:53 PM
i want to protect mysql database table which user can not view to table and can not copy my table till then user do not put table password. neither user and programmer can not delete table nor take backup of database. if user and programmer want to export and import to table then they cannot that... View Questions/Answers

information updations  February 11, 2011 at 1:52 PM
I have created the following interface that allows updations to customer information: public interface validateInfo { public void validate(String empcode, String password); } class updateInfo implements validateInfo { public void update() { //code to update information of customer } publi... View Questions/Answers

FILE  February 11, 2011 at 1:42 PM
There is a file named Name.txt that contains information related to appliances.I want to read the contents of this file and I used the code below: import java.io.*; public class Appliance { public static void main(String args[]) { try { File file=new File("Name.txt"); FileReader f=new Fil... View Questions/Answers

HTML  February 11, 2011 at 1:34 PM
I have created an info.html file for the applet.The class file is located in a directory different from the HTML file.The info.html file I have created is below. <HTML> <HEAD> <BODY> <APPLET Code = WelcomePage.class width=300 height=300> ... View Questions/Answers

chat message  February 11, 2011 at 1:09 PM
how to create chat server which should be similar to google talk and facebook etc. ... View Questions/Answers

For loop java  February 11, 2011 at 11:55 AM
1 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 3 4 5 4 5 6 7 5 6 7 8 9 6 7 8 9 10 ... View Questions/Answers

struts setup  February 11, 2011 at 11:46 AM
to run a struts application what are the necessary steps required i mean how to set classpath and directory structure. ... View Questions/Answers

STATIC VARIABLE DECLARATION  February 11, 2011 at 11:42 AM
why cannot the static variable declare inside the method ... View Questions/Answers

font changing  February 11, 2011 at 11:23 AM
I have created a welcome page and when I try to change the font style of the label named lblCName it does not change.Indentify the reason for this and make changess import javax.swing.border.*; import java.awt.Color; import java.awt.Image; import java.awt.Toolkit; import java.awt.Graphic... View Questions/Answers

structs doubts  February 11, 2011 at 11:20 AM
i tried the fileupload program which is published in roseindia i am getting fileupload page after that when select any file to upload then i click upload i am getting following error "java.lang.IllegalArgumentException: Cannot invoke fileupload.StructsUploadSaveForm.setTheFile - argumen... View Questions/Answers

Filters  February 11, 2011 at 11:03 AM
Where we use Filters in the project? give one example code, how to use Filters to provide security for the application? ... View Questions/Answers

struts  February 11, 2011 at 10:46 AM
we have the concept of jsp's and servlets right we can develop the web-pages each and everything then why what for struts inturdouced ... View Questions/Answers

Can you suggest any good book to learn struts  February 11, 2011 at 8:57 AM
Can you suggest any good book to learn struts ... View Questions/Answers

what is the Difference between weblogic and jboss?  February 11, 2011 at 8:55 AM
what is the Difference between weblogic and jboss? ... View Questions/Answers

booleens  February 11, 2011 at 5:45 AM
how do i write a java application to be used in a college admission to be in a college admission office?the student must have either: A grade point average of 3.0 or higher and an entrance score of 60 or higher, an entrance score of 85 or higher and any grade point avarage. Also i need to write a... View Questions/Answers

Java Pyramid of Numbers  February 11, 2011 at 5:29 AM
Hi, I want to know how the code to print the pyramid below works. It uses nested for loops. Pyramid: 1 2 1 2 3 2 1 2 3 ... View Questions/Answers

accessing data from a json file writing javascript or using jQuery  February 11, 2011 at 4:54 AM
I am trying to create a page from json objects using javascript. I have this huge json file containing several objects that contain arrays for the objects. Also, I believe it writes some html for breadcrumbs or navigation bar. The entire page is built from this json file, but I can't figure ou... View Questions/Answers

Issue with tutorial realted to insertion in middle in Linked List  February 11, 2011 at 1:01 AM
insert in middle in Linked list will take O(N) instead as displayed as O(1). ... View Questions/Answers

for loop in java  February 10, 2011 at 10:10 PM
1 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 3 4 5 4 5 6 7 5 6 7 8 9 6 7 8 9 10 using for loop in java ... View Questions/Answers

database  February 10, 2011 at 10:05 PM
I want to let the user select one of the database type(mysql,ms sql or db2) from the combo box present on the swing gui and then let him give the name of the database name that he want to create in a textfield,then the name of the table and the fields that he wants to create in the respective dat... View Questions/Answers

mvc  February 10, 2011 at 9:45 PM
I want MVC example using jsp,servlets,pojoclass,jdbc(with mysql)..operation of insert,search,delete,update. I want above web application only in "Model view controller" format. last time i asked the same question, but i get only jsp servlets web application from your website &... View Questions/Answers

java script  February 10, 2011 at 9:30 PM
hi deepak, i have small doubt in the date ranges that when i select the date range then it display on the text boxes. example:suppose i select the weekly date range then the dates are display on the text boxes up to first text box,second text box, ........up to last text box(whole days of... View Questions/Answers

database  February 10, 2011 at 8:46 PM
In my project where u helped me to display the databases present im mysql database on the Jlist and then the respective tables in that database on another jlist and then the column names on another jlist I dont want to display the 3 default databases that are present in mysql namely information_s... View Questions/Answers

database connection by using java bean  February 10, 2011 at 8:07 PM
i need a code for bean class to connect to mysql database. subsequently to use dis bean class whereever i need 2 connect 2 database. ... View Questions/Answers

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

DMCA.com