Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

NOT ABLE TO MAKE A NEW FILE IN SERVLET  July 3, 2012 at 11:36 PM
What is the error in my code? It is not making a new file which contains the string values coming from a HTML page. Any help appreciated. Code is-: package myprogram; import javax.servlet.http.*; import java.io.*; import javax.servlet.*; i... View Questions/Answers

memory allocation  July 3, 2012 at 11:28 PM
class Bird { { System.out.print("b1 "); } public Bird() { System.out.print("b2 "); } } class Raptor extends Bird { static { System.out.print("r1 "); } public Raptor() { System.out.print("r2 "); } { System.out.print("r3 "); } static { System.out.print("r4 ");... View Questions/Answers

How to Synchronize the Entire collection Frame Work?  July 3, 2012 at 11:22 PM
How to Synchronize the Entire collection Frame Work? ... View Questions/Answers

Advertisement

how to display duplicate elements with out using collection Frame work?  July 3, 2012 at 11:15 PM
how to display duplicate elements with out using collection Frame work? ... View Questions/Answers

Synchronize behavior is having any method in java?  July 3, 2012 at 11:05 PM
Synchronize behavior is having any method in java? ... View Questions/Answers

getting null value in action from ajax call  July 3, 2012 at 10:32 PM
Getting null value from ajax call in action (FirstList.java)... first list is loading correctly. Need help, i am new to struts2 and hibernate. StudentRegistration.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="IS... View Questions/Answers

getting null value in action from ajax call  July 3, 2012 at 10:32 PM
Getting null value from ajax call in action (FirstList.java)... first list is loading correctly. Need help, i am new to struts2 and hibernate. StudentRegistration.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="IS... View Questions/Answers

getting null value in action from ajax call  July 3, 2012 at 10:32 PM
Getting null value from ajax call in action (FirstList.java)... first list is loading correctly. Need help, i am new to struts2 and hibernate. StudentRegistration.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="IS... View Questions/Answers

problem in array if condtion  July 3, 2012 at 6:29 PM
sir i have prblem in js...i have array drop down list i.e like when i select country it will give the list of states of that country in second drop list and same as if i select state it will give city list of particular state....now i add a go button to it...when ever i press on it it should open... View Questions/Answers

Memory Allocation  July 3, 2012 at 5:18 PM
What Is The Order Of Execution Of Statement 1) Statement Enclosed in {}. 2) Static 3) Public Static Void Main() ... View Questions/Answers

Pie chart on jsp  July 3, 2012 at 3:28 PM
how can i create a pie chart on a jsp page using jfreechart which takes values from my databaase?? ... View Questions/Answers

Image retrieval in Servlet and JSP  July 3, 2012 at 12:13 PM
Sir, How should i give dynamic paths to image in JSP. EX : `<img src="C:\Users\Public\Pictures\Sample Pictures\-------.jpg" alt="" name="image5" width="980" height="320" id="" /> The user logs in with the given id. I want to retrieve t... View Questions/Answers

use of annotation.  July 3, 2012 at 10:50 AM
for concurrency which annotation can be used??? ... View Questions/Answers

database  July 3, 2012 at 10:30 AM
how to get information about database like, what are the names of tables that database includes ? what are the names of fields in corresponding tables ? in mysql database on linux environment ... View Questions/Answers

I'm getting an illgal start of expression error in my code for the public static boolean portion at the bottom... any ideas?  July 3, 2012 at 7:25 AM
heres my code import java.util.Scanner; import java.util.Random; public class numberGame { public static void main (String[] args) { Random rand = new Random (); Scanner keyboard = new Scanner(System.in); //User input int ... View Questions/Answers

JAVA Compile Question ?  July 3, 2012 at 3:18 AM
I'm unable to compile this file and not sure why? Can someone please help? import java.nio.file.*; import java.nio.file.attribute.*; import java.nio.file.attribute.Attributes; import java.io.IOException; public class FileStatistics2 { public stati... View Questions/Answers

JAVA Objectives Question?  July 3, 2012 at 3:15 AM
Write an application using the FileInputStream that opens a file that contains the name of the user's favorite book and then displays it to the user. If the file does not exist, prompt the user for the book's title and then write it to the file by using a FileOutputStream. Save the file as Displa... View Questions/Answers

Java Question Anyone need some HELP !!  July 3, 2012 at 2:26 AM
Create a file that contains your favorite movie quote. Use a text editor such as Notepad and save the file as Quote.txt. Copy the file contents and paste them into a word-processing program such as Word. Save the file as Quote.doc. Write an application that displays the sizes of the two files, as... View Questions/Answers

need to generate ID  July 3, 2012 at 1:03 AM
hai, i need to generate ID i.e when i select addemploye option and submit, it should generate a emp ID which is 1 greater than the previous highest ID value stored in database. eg: if the higest value of empID stored in database is 4, the next time after i select add employ option it should gen... View Questions/Answers

need to generate ID  July 3, 2012 at 1:03 AM
hai, i need to generate ID i.e when i select addemploye option and submit, it should generate a emp ID which is 1 greater than the previous highest ID value stored in database. eg: if the higest value of empID stored in database is 4, the next time after i select add employ option it should gen... View Questions/Answers

Write a program to design a page.use radio button?  July 2, 2012 at 10:36 PM
i would lik to know about well designed page ... View Questions/Answers

video uploading using jsp  July 2, 2012 at 9:24 PM
this is the code i hv written for uploading..but the value in dropdown list is not captured..can any 1 tell the reason html file <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ... View Questions/Answers

explain servletconfig with programiing example?  July 2, 2012 at 9:05 PM
explain servletconfig with programiing example? ... View Questions/Answers

Barcode generation  July 2, 2012 at 7:55 PM
hi, I am working on a project where there is a alias no. with symbology EAN-13 for generation of barcode... now i have to write the logic for one item no if their are two or more quantities it should genetrate the same alias no. for them. for eg:- if AB45 is the item no. and quan... View Questions/Answers

cookie and session dependency  July 2, 2012 at 12:37 PM
Hi, I am currently working on a project in travel domain. Throughout the application, we have not used cookie for session tracking but the case when browser cookie is disabled, session value differs at two different points and the application crashes. However, if the browser cookie is enabled, th... View Questions/Answers

pattern program  July 2, 2012 at 10:16 AM
13579 1357 135 13 1 pattern program in java ... View Questions/Answers

Please help me  July 2, 2012 at 9:00 AM
program for when a user enter his card number, it has to create default security pin in the database? ... View Questions/Answers

help me  July 1, 2012 at 10:34 PM
Hi I'm loges. I'm doing my final year project now, I have some problem in my project and i need some help on it. NowI'm doing a site that allow staff to key in student information such as name,age,gender,nationality,and course taking. I have problem on how to insert the value of gender and nation... View Questions/Answers

JAVA  July 1, 2012 at 9:54 PM
What does the error means when my error is class ListCharacters is public, should be declared in a file named ListCharacters.java public class ListCharacters ^**strong text** My code is : public cl... View Questions/Answers

JAVA  July 1, 2012 at 9:04 PM
print the following: * *** ***** *** * ... View Questions/Answers

Edit Distance  July 1, 2012 at 8:50 PM
I want java programming ask from user input two string and the program find the edit distance between two strings and find table and optimal solution using GUI ... View Questions/Answers

Sql aggregate function with left join wrong output  July 1, 2012 at 8:28 PM
I have three tables Stock,InwardEntry,IssueToProd. Part_no in stock is a primary key and partno in inwardEntry and IssueToProd is foreign key of stock table's column partno I ma getting wrong sum values of i.InvoiceQuantity,p.IssueQuantity column(display 600 instead of 200)... View Questions/Answers

Sql aggregate function with left join wrong output  July 1, 2012 at 8:28 PM
I have three tables Stock,InwardEntry,IssueToProd. Part_no in stock is a primary key and partno in inwardEntry and IssueToProd is foreign key of stock table's column partno I ma getting wrong sum values of i.InvoiceQuantity,p.IssueQuantity column(display 600 instead of 200)... View Questions/Answers

Sql aggregate function with left join wrong output  July 1, 2012 at 8:28 PM
I have three tables Stock,InwardEntry,IssueToProd. Part_no in stock is a primary key and partno in inwardEntry and IssueToProd is foreign key of stock table's column partno I ma getting wrong sum values of i.InvoiceQuantity,p.IssueQuantity column(display 600 instead of 200)... View Questions/Answers

insert data using drop down box in java into database postgresql  July 1, 2012 at 8:18 PM
can you help me out !!.......i wanna to know the appropriate java syntax to insert data into database using an drop down box .....as i m using eclipse as jdbc and postgresql as data base syntax which i m using is like:- java class ... View Questions/Answers

insert data using drop down box in java into database postgresql  July 1, 2012 at 8:17 PM
can you help me out !!.......i wanna to know the appropriate java syntax to insert data into database using an drop down box .....as i m using eclipse as jdbc and postgresql as data base syntax which i m using is like:- java class ... View Questions/Answers

insert data using drop down box in java into database postgresql  July 1, 2012 at 8:17 PM
can you help me out !!.......i wanna to know the appropriate java syntax to insert data into database using an drop down box .....as i m using eclipse as jdbc and postgresql as data base syntax which i m using is like:- java class ... View Questions/Answers

insert data using drop down box in java into database postgresql  July 1, 2012 at 8:17 PM
can you help me out !!.......i wanna to know the appropriate java syntax to insert data into database using an drop down box .....as i m using eclipse as jdbc and postgresql as data base syntax which i m using is like:- java class ... View Questions/Answers

static methods  July 1, 2012 at 5:40 PM
why static methods cannot read or write the instance variables? ... View Questions/Answers

Mr. Sonam  July 1, 2012 at 12:14 PM
Why does each primitive type give different range of number? ... View Questions/Answers

SQLite3  July 1, 2012 at 11:18 AM
sir, i am using linux . how to get information about database like what are the names of tables included in this database ? and what is name of fields in these tables ? type of database is SQLite3 ... View Questions/Answers

Write a program that makes use of a class called Employee that will calculate an employee's weekly paycheque.  July 1, 2012 at 5:07 AM
Write a program that makes use of a class called Employee that will calculate an employee's weekly paycheque. Design your class based on the UML diagram to the right as well as the following notes: A static field, empCount, keeps track of the number of ins... View Questions/Answers

c++  June 30, 2012 at 11:59 PM
Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo, and provide the following set of operations: 1) Display all student Info 2) Display all Student First Name & GPA 3) Display a specifi... View Questions/Answers

Retrieve all the students in the same year(Java ArrayList)?  June 30, 2012 at 10:07 PM
FoundStudents.jsp year- parameter I receive from a form search- is an object of type Student, with ID, name, year <% Student search = null; ArrayList<Student>found_list = new ArrayList<Student>(); if((request.getParameter("year") != null)||(request.g... View Questions/Answers

Web development  June 30, 2012 at 8:38 PM
Please help me formulate code for the following I have three textboxes.The first two textboxes has to carryout Addition or subtraction of two numbers entered and show the result in the third box as soon we take d cursor out of the textbox in both text boxes. If the user enters +1200 in fi... View Questions/Answers

How to get month name from date(like-25/06/2012) using java?  June 30, 2012 at 1:31 PM
How to get month name from date(like-25/06/2012) using java?... View Questions/Answers

need help pleaseee....i weak in java  June 30, 2012 at 12:38 PM
QUESTION 1 You are required to write an application called Customer Billing System. This system will calculate water usage charges for a month that has been imposed by Syarikat Air Melaka Berhad. This system will categorise users into residential users and industrial users and calculate... View Questions/Answers

highlight words in an image using java  June 30, 2012 at 12:38 PM
Hai all,In my application left side image is there and right side an application contains textboxes like name.user enter details by seeing details in the image.if user click name text box i want to highlight name in the image using java/jsp/javascript.please help me. Thanks in Advance. ... View Questions/Answers

display uiactivityindicatorview on button click through notification ios 5  June 30, 2012 at 11:49 AM
I wants to add a UIActivity Indicator view on UIView controller. Also i want to display a Activity indicator when a UIButton is click. I searched a different method including alert view and delegate method to show the indicator but nothing worked for me. Please help.... ... View Questions/Answers

pls send code  June 29, 2012 at 11:06 PM
pls send code for set database value into text box based on selected value in struts and jsp ... View Questions/Answers

Cannot assign an ArrayList to an empty ArrayList  June 29, 2012 at 11:04 PM
I have a java file, in which a method returns an ArrayList. This ArrayList is supposed to contain all the Student object which are in X year. StudentsManager.java public ArrayList<Student> studByYear(int value){ ArrayList<Student> students = StudentsManager.... View Questions/Answers

string  June 29, 2012 at 10:20 PM
just i want to a program in a short form to the given string in buffered reader for example input string: Suresh Chandra Gupta output: S. C. Gupta ... View Questions/Answers

how to connect webcam in html  June 29, 2012 at 6:31 PM
how to connect webcam in html.emphasized text ... View Questions/Answers

struts2  June 29, 2012 at 4:27 PM
sir.... i am doing one struts2 application and i have to make pagination in struts2....how can i do it...?? ... View Questions/Answers

Auto Teller Machine Emulator : (ATM Emulator)  June 29, 2012 at 2:20 PM
following functionalities : a) Create an ATM cash deliver emulator application that will have the Authentication : Ask user - Account No. and PIN for login. b) Cash Withdrawal. c) View Account Balance(from user account file) An emulator will take user amount as input through ATM machin... View Questions/Answers

Overriding methods  June 29, 2012 at 1:01 PM
How to use overriding method in the java progrem? ... View Questions/Answers

oops  June 29, 2012 at 11:56 AM
Is java 100% purely object oriented programming language ? please justify your answer ! ... View Questions/Answers

changing primary key of parent table  June 29, 2012 at 11:52 AM
I want to change one primary key from a table where primary key is auto created? How can I do that? I have tried UPDATE person SET personid=3494 WHERE personid=8483; and i get the following error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL ser... View Questions/Answers

Assignment  June 29, 2012 at 11:52 AM
N boys and M girls are learning acting skills from a theatre in Mumbai. To perform a play on ?Ramayana? they need to form a group of P actors containing not less than 4 boys and not less than 1 girl. The theatre requires you to write a program that tells them the number of ways the group can be f... View Questions/Answers

sir plz send the project on quiz system code  June 29, 2012 at 12:50 AM
sir plz send the client server based project in core java database in my sql ... View Questions/Answers

java server on linux ystems  June 28, 2012 at 11:28 PM
hi.. i use linux... i want to remotely login into another linux system using java and then execute commands over that system.....how can i do this using java..password of host is known to us for exmple in shell we use "ssh username@ipaddress" to login to a host...how can i login using java?? Th... View Questions/Answers

fetch database value to text box based on selected value my code given below pls correct my code  June 28, 2012 at 10:55 PM
my Code Given below Pls... help me send correct code for me jsp file... <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <%@ taglib uri="WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="WEB-... View Questions/Answers

fetch database value to text box based on selected value my code given below pls correct my code  June 28, 2012 at 10:55 PM
my Code Given below Pls... help me send correct code for me jsp file... <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib uri="WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %... View Questions/Answers

Count words in a string method?  June 28, 2012 at 5:57 PM
How do you Count words in a string? ... View Questions/Answers

String length without using length() method in java  June 28, 2012 at 5:52 PM
How to count length of string without using length() method in java? ... View Questions/Answers

StringBuffer related.  June 28, 2012 at 5:29 PM
how to make StringBuffer as immutable? ... View Questions/Answers

XmlParsing in Android  June 28, 2012 at 4:01 PM
how can i XmlParsing in Android ? ... View Questions/Answers

Tomcat with quartz by using eclipse ide  June 28, 2012 at 3:39 PM
Hai friends I am in a position to run a simple quartz hello job program in eclipse by using tomcat server. when i run this in tomcat server it shows 404 error that is resources not found.. Please someone help me. send any step by step procedure to do this ... View Questions/Answers

Why do the slashes change when the console gives me the error?  June 28, 2012 at 2:50 PM
The string input as the filename looks like this: String file = "http://www.queen.com/website/screenshots/" + username + createTimeStampStr() + ".PNG"; The console gives me back an error saying: java.io.FileNotFoundException: http:\www.queen.com\web... View Questions/Answers

how to print from right to left in java????  June 28, 2012 at 1:24 PM
can anyone pls tell how to print from right to left in java.. ... View Questions/Answers

collections  June 28, 2012 at 11:41 AM
why we need collections.when we will use collections in our applications ... View Questions/Answers

Problem in executing macro enabled excel sheet using java  June 28, 2012 at 11:41 AM
Hi, I have written a java code which will read a excel sheet with macro enabled. then it will write data into sheet1 and sheet2 and it will execute a VB script to generate scripts to call different procedures in database. But when i am trying to execute VB script it is unable to execute m... View Questions/Answers

Javascript matrix error  June 28, 2012 at 6:04 AM
This function blows up (without an error) whenever it is called function valid(n){ //n is a number 0-9 if(board[Math.floor(n/3)][n%3]==0){ return true; }else{ return false; } } where board is a global 3x3 Array matrix... View Questions/Answers

Java Servlet  June 28, 2012 at 4:34 AM
Java Servlet error... View Questions/Answers

Java Hello World  June 28, 2012 at 4:03 AM
HELLO World program in Java ... View Questions/Answers

Java Error in Hello World  June 28, 2012 at 4:00 AM
Java Error in Hello World ... View Questions/Answers

Difference  June 28, 2012 at 3:33 AM
What Is the difference between JDK & SDK...??? ... View Questions/Answers

Need in desperate help in writing a console program  June 28, 2012 at 2:00 AM
Write a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed). As they enter the data, assign it to a two-dimension array where the first dimension contains exactly what they type and the second dimension contains the first non-whit... View Questions/Answers

Need in desperate help in writing a console program  June 28, 2012 at 2:00 AM
Write a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed). As they enter the data, assign it to a two-dimension array where the first dimension contains exactly what they type and the second dimension contains the first non-whit... View Questions/Answers

Need in desperate help in writing a console program  June 28, 2012 at 2:00 AM
Write a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed). As they enter the data, assign it to a two-dimension array where the first dimension contains exactly what they type and the second dimension contains the first non-whit... View Questions/Answers

Program that accepts a String by your name  June 27, 2012 at 11:24 PM
Write a Program that accepts a String by your name and display it on the screen ... View Questions/Answers

jsp forward not functioning  June 27, 2012 at 8:19 PM
If the form in AddStudent.jsp was completed, StudentsList.jsp shows all the students, else the MainMenu.html is displayed. StudentsList.jsp <% if(request.getParameter("add_stud") != null){ //read par... View Questions/Answers

Integer Auto incremented ID not showing up  June 27, 2012 at 7:12 PM
SearchStudent.jsp Student to search into database <script language="javascript"> function validate2(objForm){ int k = 0; if(objForm.name.value.length==0){ ... View Questions/Answers

change frameset in HTML  June 27, 2012 at 12:41 PM
I have created a html page including two frames in it,one frame consists "search bar" and the other frame consists login page,when i click on "Sign In" button in login frame,it is displaying the results in the same frame but i need it to be displayed on a new webpage....pls help me regarding this... View Questions/Answers

How to capture screenshot in url?  June 27, 2012 at 12:20 PM
Hi, How to capture screenshot and it will store the capture image in url like this http://localhost/xxx/yyy/ it wil not sore C:\ or D:\ it should store like this http://localhost/xxx/yyy/ plz help ... View Questions/Answers

connect 3 frameset to other 3 different frameset in html  June 27, 2012 at 12:18 PM
first display the 3 frames in one html page after login it will display 3 differnt frame ... View Questions/Answers

connect 3 frameset to other 3 different frameset in html  June 27, 2012 at 12:18 PM
first display the 3 frames in one html page after login it will display 3 differnt frame ... View Questions/Answers

gmail authentication  June 27, 2012 at 8:13 AM
Hi... there... I observed that if we open gmail and in that in box then there will be some url like paste in another browser window it asks for authentication how it is possible if anybody knows plz tell me thanks yours vinod ... View Questions/Answers

gmail authentication  June 27, 2012 at 8:13 AM
Hi... there... I observed that if we open gmail and in that in box then there will be some url like ... View Questions/Answers

gmail authentication  June 27, 2012 at 8:13 AM
Hi... there... I observed that if we open gmail and in that in box then there will be some url like ... View Questions/Answers

gmail authentication  June 27, 2012 at 8:13 AM
Hi... there... I observed that if we open gmail and in that in box then there will be some url like ... View Questions/Answers

gmail authentication  June 27, 2012 at 8:13 AM
Hi... there... I observed that if we open gmail and in that in box then there will be some url like ... View Questions/Answers

gmail authentication  June 27, 2012 at 8:13 AM
Hi... there... I observed that if we open gmail and in that in box then there will be some url like ... View Questions/Answers

gmail authentication  June 27, 2012 at 8:13 AM
Hi... there... I observed that if we open gmail and in that in box then there will be some url like ... View Questions/Answers

selected radiobutton to display different page  June 27, 2012 at 7:34 AM
there are three radio button are there , in that selected button to display different page. when submit it, using struts2 framework . plz help me to how write code ... View Questions/Answers

Exception during parsing a parameter from the form in JSP  June 27, 2012 at 3:02 AM
Exception during parsing params from a form? I get parameters from a html form. I parse the integer one in the JSP file, but I get exception. Is there anyway I can get the integer, or I have to make it a String? String name = request.getParameter("nam... View Questions/Answers

create a folder in jsp page  June 26, 2012 at 10:11 PM
i want to create a folder in jsp page And it can be delete aslo........ ... View Questions/Answers

Web development  June 26, 2012 at 10:05 PM
I want to validate textbox based on dropdown menu consisting of many options. For eg Dropdown consists of option (1,2,3,4) if "1" is selected textbox should validate a value 0f "2300" through a submit button "Evaluate". Please give me the sample code for the above problem using only javascript... View Questions/Answers

Web development  June 26, 2012 at 9:36 PM
I want to validate textbox based on dropdown menu consisting of many options. For eg Dropdown consists of option (1,2,3,4) if "1" is selected textbox should validate a value 0f "2300" through a submit button "Evaluate". Please give me the sample code for the above problem using only javascript... View Questions/Answers

Student average  June 26, 2012 at 9:22 PM
you are an academic scholar.one requirement to maintain this status is to maintain an average not below 1.8. write a java program that reads student's number of subject taken, the final grade of each subject. your program should display and the number of units of each subject. your program shoul... View Questions/Answers

DMCA.com