Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

number pyramid  February 12, 2012 at 12:38 PM
how to get the code for the following : 1 123 12345 1234567 ... View Questions/Answers

integer to string  February 11, 2012 at 10:06 PM
i have to develop a program which convert integer into character from 1 to 10,000 if we input 1 then it give output 'one' n so on till 'ten thousand' kindly give me the codes plzplz sir........ ... View Questions/Answers

programming concept  February 11, 2012 at 8:53 PM
Write a program that allows the user to input a total dollar amount for an online shopping order and computes and outputs the shipping cost based on the following schedule ... View Questions/Answers

Ads

Swing error in code  February 11, 2012 at 8:34 PM
import java.rmi.*; import java.awt.*; import java.awt.event.*; import java.io.*; import javax.swing.*; public class SClientsr extends JFrame { TextField t1=new TextField(20); Label rs=new Label("0"); JButton b=new JButton("ANS :"); Pan... View Questions/Answers

need of code  February 11, 2012 at 3:43 PM
howto convert greyscale image to binary image in java ... View Questions/Answers

display all words containing the letter which i gave as input...  February 11, 2012 at 3:40 PM
If i enter any character,it have to display the names which having that character..write a program using java example(output) Enter any character: a Names: Abi bala Vani ... View Questions/Answers

Validation  February 11, 2012 at 2:16 PM
Hi.. How to Validate blank textfield in java that can accepts only integers? ... View Questions/Answers

Radio button Validation  February 11, 2012 at 1:18 PM
Hi.. How to validate radio button in java?if the radio button is not selected an error message should be given... Please help... ... View Questions/Answers

check condition in if-else block  February 11, 2012 at 1:16 PM
Hi, I want to update database with following query int i= st.executeUpdate("Insert into text_editor(words) values('"+words+"')"); how can I give a check option so only valid words are inserted? Thank you ... View Questions/Answers

please correct this program  February 11, 2012 at 1:00 PM
import java.util.Scanner; public class Nam { public static void main (String arg[]) { String[] name={"Aki","Karthi","Tk","Suba","Malu","Buvi","Janu","Sara","Sandy","Abi","Ani","Amu","Banu"}; System.out.println("Enter any character"); ... View Questions/Answers

editable grid in jsp  February 11, 2012 at 12:56 PM
i want to create editable grid in jsp for invoice so that i can insert multiple product at a same time.how to create that in jsap, plz reply ... View Questions/Answers

series  February 11, 2012 at 12:28 PM
series 2-4+6-8+..............-20 ... View Questions/Answers

Display set of names in array when we press the first letter  February 11, 2012 at 11:44 AM
Please help to write a program which have to display set of names in the array when we click the starting letter (like in gmail if we press the letter it will show the available names)using java ... View Questions/Answers

j2me location updates programming  February 11, 2012 at 8:42 AM
kindly please, assist me with with a j2me code for obtaining and sending GPS location updates periodicaly to the server IE; LATITUDE, LONGITUDE, SPEED, TIME. Am using netbeans IDE and PHP for the server side, for my school project. ... View Questions/Answers

servlets  February 11, 2012 at 8:05 AM
why we require wrappers in servlets? what are its uses? Please explain ... View Questions/Answers

Gross and Dozens  February 11, 2012 at 2:43 AM
Using Javascript Swing Gross And Dozens Design and implement a class called GrossAndDozens to convert a given number of eggs into the number of gross, the number of dozens, and to the number of left over eggs. If you have N eggs, then you have N/12 dozen eggs, with N%12 eggs left. Write a... View Questions/Answers

how to make use of jerry's java image processing filter in java application?is there anyway to do this?  February 10, 2012 at 11:13 PM
how to make use of jerry's java image processing filter in java application?is there anyway to do this? ... View Questions/Answers

Display set names  February 10, 2012 at 10:08 PM
If i enter the First letter of a name it will display the list of names starting with that letter in command prompt using java ... View Questions/Answers

display a list of names(when we press first letter)  February 10, 2012 at 9:36 PM
If i gave 1character the name start wth that characteer has to be displayed... using java ... View Questions/Answers

how can i use toggle button in my application  February 10, 2012 at 8:46 PM
i want a on/off toggle button by dragging left-right..not by pressing on button ... View Questions/Answers

Android Question  February 10, 2012 at 8:44 PM
how can i use pre-defined table in my application ... View Questions/Answers

website  February 10, 2012 at 6:03 PM
design and coding of first page of any forum website in jsp ... View Questions/Answers

java  February 10, 2012 at 4:40 PM
How to auto_generate string id? ... View Questions/Answers

Java  February 10, 2012 at 4:36 PM
how to set functional keys or shortcut keys for my jsp web page? ... View Questions/Answers

java  February 10, 2012 at 3:47 PM
how to run java program without using comand prompt in windows os? ... View Questions/Answers

java  February 10, 2012 at 3:46 PM
how to run java program with using comand prompt in windows os? ... View Questions/Answers

employee progarm  February 10, 2012 at 3:17 PM
Hai, I have developed a code for an employee program by using jtext fields and buttons,it has no errors but while we are compiling it it is saying that "Exception in thread "main" java.lang.NoClassDefFoundError: Emp/java".Why it is saying like this?The code which i developed is as follo... View Questions/Answers

How can i pass the valus from a JSP to the action class???  February 10, 2012 at 3:07 PM
hewllo wevryone... can anyone help me with how i can pass the value of menuId in my JSP and pass it in the action class???? ... View Questions/Answers

Changing root Password  February 10, 2012 at 3:00 PM
how do i change the root password in mysql ... View Questions/Answers

jsp -sevlet connecting to database using dropdown  February 10, 2012 at 2:29 PM
How can I get my dropdown list from oracle database and then submit it to another table in JSP. I am thinking of a form that links to a servlet and the servlet connects to the database and fetches an array of strings from a database table and then sends it to the JSP to populate the options and ... View Questions/Answers

applet is running but no display  February 10, 2012 at 1:48 PM
applet is running but no display.. its showing white screen with applet started.. ... View Questions/Answers

create a button  February 10, 2012 at 11:24 AM
i have created button inhtml but my jsp is not working,so can u guide me ... View Questions/Answers

E-R diagram  February 10, 2012 at 9:43 AM
Hi,Hw to do draw E-R diagram for online movie ticket booking ... View Questions/Answers

E-R diagram  February 10, 2012 at 9:43 AM
Hi,Hw to do draw E-R diagram for online movie ticket booking ... View Questions/Answers

java  February 10, 2012 at 7:39 AM
spring mvc web application crud operation package com.chandra.controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMa... View Questions/Answers

Java  February 10, 2012 at 5:30 AM
What is the output of the following fragment? (3 points) int i = 1; int j = 1; while (i < 5) { i++; j = j * 2; } System.out.println(j); ... View Questions/Answers

how to change file from .txt to .mat(matrix)  February 10, 2012 at 5:29 AM
i have a big file.txt and i want to change this file to file.mat(matrix) ...this is in windows not on any os ..thx if u answering quickly please ... View Questions/Answers

NFA to DFA program  February 10, 2012 at 1:38 AM
hello , please help me to write a program to convert NFA to DFA this program only print last states of DFA , thinks a lot .please answer me because i have an Exam . ... View Questions/Answers

Web Page  February 9, 2012 at 11:58 PM
Use any programming language or package to create a Project 2 .The Main menu should only be displayed, if the user is valid and uses the correct password. If the user is not in the database, then the user should be prompted to register the username and password, and then allowed to use the ... View Questions/Answers

PHP  February 9, 2012 at 11:56 PM
Use any programming language or package to create a Project 2 that uses the Project-1. The Main menu should only be displayed, if the user is valid and uses the correct password. If the user is not in the database, then the user should be prompted to register the username and password, and ... View Questions/Answers

Java Program MY NAME  February 9, 2012 at 11:27 PM
Write a class that displays your first name vertically down the screen where each letter uses up to 5 rows by 5 columns of a character input by you with a blank line between each letter. Note: each letter should have the lines of code needed to display that letter in a method with the following n... View Questions/Answers

JPA  February 9, 2012 at 10:19 PM
HOW CAN I WRITE A SIMPLE PROGRAM IN NETBEANS CONSOLE ON JPA ON CRUD APPLICATION? HOW CAN I START KINDLY HELP ME IN THAT ... View Questions/Answers

Password  February 9, 2012 at 7:39 PM
make a program which ask ask the username and password * in this format. in C language ... View Questions/Answers

Retrieve values from database using views  February 9, 2012 at 7:32 PM
hi......... I have a huge database so i have created views in database where i am selecting only the columns which are required. As my front end is java swings i want to retrieve data from that created views and display on form . I am trying to do so but its giving me error . ... View Questions/Answers

java program:scrollbar  February 9, 2012 at 7:18 PM
my program logic is that when i scrolling scrollbar according to that the oval shap is changed by fetching the value of scrollbar the oval is drawn please give me a proper code of this logic. ... View Questions/Answers

session maintain in struts 2  February 9, 2012 at 7:15 PM
hi i am new to Struts 2..... in Action class i wrote **HttpSession session = request.getSession(); session.setAttribute("name", name1);** but in jsp class String session_name=(String)session.getAttribute("name"); returing null value its returing null value when directly i... View Questions/Answers

session Maintainess  February 9, 2012 at 7:12 PM
how to maintain session in struts 2 ... View Questions/Answers

java  February 9, 2012 at 6:27 PM
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

How to download web page table data, export the table records in an excel file and save  February 9, 2012 at 4:12 PM
i have a web page(.jsp) which contains the table of 4 to 5 columns. i m displaying the table using in my jsp page. below this table i want the download link. when i click on the link download pop up box should be displayed and ask me to save the file. on clicking the save button the ... View Questions/Answers

Rmi client  February 9, 2012 at 4:04 PM
Sir i just created client and server following the RMI rule, its running properly in the localhost, when i am trying to run the program in the different machine its not working, i changed the ip also, when i copied the stub and interface file then it is working, I s there is any other option rath... View Questions/Answers

Application Programmer with Fresher  February 9, 2012 at 3:25 PM
what difference between http and httpsession? In http session connection is close after giving responce to the client? ... View Questions/Answers

Loops  February 9, 2012 at 1:03 PM
??Using for loops, Write a program to simulate a clock countdown. The program prompts the user to enter the number of seconds, displays a message at every second, and terminates when the time expires. Use method System.currentTimeMillis() which return the number of milliseconds since the e... View Questions/Answers

program on employee details  February 9, 2012 at 1:02 PM
to write a program on displaying the employee details like empid,empname,wonno,location,leave type by using the text fields in java swings. ... View Questions/Answers

Java  February 9, 2012 at 1:02 PM
Write a program that repeatedly reads an integer from the console. If the integer is odd, outputs "Odd Day" if the integer is even (and not 0), outputs ??Even now". if the integer is 0. exits program ... View Questions/Answers

Loops  February 9, 2012 at 12:59 PM
Write a program that repeatedly reads an integer from the console. If the integer is odd, outputs â??Odd Day!â?? if the integer is even (and not 0), outputs â??Even now!â??. if the integer is 0. exits program ... View Questions/Answers

HOW TO DISPLAY TABLEEEE  February 9, 2012 at 12:44 PM
Please teach me how to display table step by step like a kid who didnt know anything? please !! I try so many times but it is not working out ! S.O.S !!! HELP ME PLEASEEEE ! ... View Questions/Answers

one dimensional array using java  February 9, 2012 at 12:25 PM
design and implement a java program that will read a file containing numbers and compute the following statistics: the range(low,high) the average and the median ... View Questions/Answers

String file in to word file in java  February 9, 2012 at 12:09 PM
How to convert a String format notepad file into Ms word file in java ... View Questions/Answers

String file in to word file in java  February 9, 2012 at 12:00 PM
how to convert a String format word file into Ms Word file using java? please can anyone of you help me ? ... View Questions/Answers

WRITE A PROGRAM IN JAVA  February 9, 2012 at 11:18 AM
Write program which accepts five students id,name,age,department,courses, taken and its grade. a. calculate its GPA . display all student information in ascending order ... View Questions/Answers

Junit  February 9, 2012 at 11:05 AM
Hi.. here is my code : **Public static void setConnectionDetails(ConnectionDetails connectionDetails) { UniversalData.connectionDetails = connectionDetails; }** if i want to make a test case using Junit...how can i make it??? ma... View Questions/Answers

mail  February 9, 2012 at 10:19 AM
how to send mail using jsp ... View Questions/Answers

Array Sorter  February 9, 2012 at 4:15 AM
I need a program that will ask the user to either "Enter an Array" or to "Exit the program" If the user want to enter an array the are asked to enter ten numbers. Then those ten numbers are stored in an array and reprinted then that array is sorted by positive even, positive odd, and negative num... View Questions/Answers

Sum of integers  February 9, 2012 at 3:54 AM
A Java program that reads an integer value from the user and displays i) the sum of all even integers between 1 and the input value, both inclusive. ii) The sum of all odd integers between 1 and the input value both inclusive Example: User enters 7. Sum of even integers = 2+4+6 = 12 Su... View Questions/Answers

Read Header/Footer Margin size using Java  February 8, 2012 at 10:27 PM
Hi, Is it possible to read the "Header from Top" and "Footer from bottom" properties of a MS word document in Java? I have been searching the web for hours now, POI's and several other API's, but couldn't found any helpful solution. Any suggestions are welcome. Regards, Pa... View Questions/Answers

Read Header/Footer Margin size using Java  February 8, 2012 at 10:27 PM
Hi, Is it possible to read the "Header from Top" and "Footer from bottom" properties of a MS word document in Java? I have been searching the web for hours now, POI's and several other API's, but couldn't found any helpful solution. Any suggestions are welcome. Regards, Pa... View Questions/Answers

RMI  February 8, 2012 at 6:11 PM
What is RMI in Java ... View Questions/Answers

parallel cryptography  February 8, 2012 at 5:33 PM
how to build java code for encrypting data? ... View Questions/Answers

Local repository in Maven  February 8, 2012 at 5:02 PM
How to read the jars/plugins from local instead of online while building an application with Maven. Any detailed steps will be appreciated. ... View Questions/Answers

php functions  February 8, 2012 at 4:04 PM
hi sir, we give some egs those not produce the results those programs simply display the program on browser ... View Questions/Answers

Java at cmd  February 8, 2012 at 3:34 PM
How to display all built in methods of any java class at the cmd? using which command? For example how to Display built-in methods of String class at cmd.. help me ... View Questions/Answers

user defined styles for datetimepicker in struts2  February 8, 2012 at 1:44 PM
Hi, I am using dojo plugin for displaying datetimepicker. i want to change the colour of the date picker which is in "blue" by default . Please any one can help me in this issue. Thanks, B.Sucharitha. ... View Questions/Answers

user defined styles for datetimepicker in struts2  February 8, 2012 at 1:29 PM
Hi, sample code: <%@taglib prefix="sx" uri="/struts-dojo-tags"%> Issue: I need to have my own styles for the displyed date picker. is i... View Questions/Answers

annotation error  February 8, 2012 at 1:10 PM
class names "JdbcProjam.java "are only accepted if annotation processing is explicitly requested ... View Questions/Answers

semantic issue xcode 4.2  February 8, 2012 at 12:31 PM
I have updated xcode 4.0 to 4.2 .. but once i open any application in this new version of xcode ..it throws lots of semantic issue. Can anyone please explain why it occurs and how to resolve it. ... View Questions/Answers

java program to take the backup of folders and copy the folder in different location without deleting the existing one  February 8, 2012 at 12:20 PM
java program to take the backup of folders and copy the folder in different location without deleting the existing one ... View Questions/Answers

images upload  February 8, 2012 at 12:01 PM
I use netbeans IDE 6.8 How i upload any image from any folder to web page? ... View Questions/Answers

java program to take backup for the folders  February 8, 2012 at 11:41 AM
java program to take backup for the folders ... View Questions/Answers

java program to copy the contents of one folder to another folder  February 8, 2012 at 11:19 AM
java program to copy the contents of one folder to another folder ... View Questions/Answers

how to create a combo box in html  February 8, 2012 at 10:55 AM
<tr> <td>Number<span class=mandatory>*</span></td> <td> <select name="number" id="course" style="width:158px;"> <option value="none">----Select ----</option> <option >1</option> <option >2</opt... View Questions/Answers

how to perform a validation for the field  February 8, 2012 at 10:51 AM
hi, function checkForm() { var getBank=document.form.bname.value; var alphaExp = /^[\,\ \-0-9a-zA-Z]+$/; var message=""; if(document.form.no.value==""){ document.getElementById("error_no").innerText = "*Enter ID"; messa... View Questions/Answers

how to perform a validation for the field  February 8, 2012 at 10:51 AM
hi, function checkForm() { var getBank=document.form.bname.value; var alphaExp = /^[\,\ \-0-9a-zA-Z]+$/; var message=""; if(document.form.no.value==""){ document.getElementById("error_no").innerText = "*Enter ID"; messa... View Questions/Answers

how to create a table  February 8, 2012 at 10:38 AM
create table tablename (name varchar(10),name varchar(10)); ... View Questions/Answers

iphone retina display dimensions  February 8, 2012 at 10:34 AM
What is the dimensions for the iPhone and iPad retina display images..? ... View Questions/Answers

create dao  February 8, 2012 at 9:40 AM
code 1 package com.dao; import java.sql.*; import com.beans.*; public class DbAccess { public void createStudent(SampleBean sampleBean) throws SQLException { Connection con=null; try { con=DbConnect.createConnection(); ... View Questions/Answers

controller  February 8, 2012 at 9:38 AM
package com.controller; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import co... View Questions/Answers

ViewDetails  February 8, 2012 at 9:34 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import="com.beans.SampleBean" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html... View Questions/Answers

View jsp  February 8, 2012 at 9:33 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type... View Questions/Answers

Updaetails  February 8, 2012 at 9:31 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import="com.beans.SampleBean" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html... View Questions/Answers

update jsp  February 8, 2012 at 9:30 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type... View Questions/Answers

create main page  February 8, 2012 at 9:29 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import="java.sql.*"%> <%@page import="java.util.*"%> <%@ page session="true"%> <%@page import="java.io.*"%> <%@page import="java.... View Questions/Answers

delete jsp  February 8, 2012 at 9:27 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type... View Questions/Answers

create jsp  February 8, 2012 at 9:24 AM
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type... View Questions/Answers

create using jsp  February 8, 2012 at 9:16 AM
code 1:``<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta ... View Questions/Answers

how to create using jsp  February 8, 2012 at 9:00 AM
code 1: <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <... View Questions/Answers

how to create dao  February 8, 2012 at 8:52 AM
code1: package com.dao; import java.sql.*; import com.beans.*; public class DbAccess { public void createStudent(SampleBean sampleBean) throws SQLException { Connection con=null; try { con=DbConnect.createConnection(); PreparedSta... View Questions/Answers

how to create servlet  February 8, 2012 at 8:49 AM
package com.controller; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRe... View Questions/Answers

how to create bean using jsp and servlet  February 8, 2012 at 8:46 AM
public class SampleBean { private String fname=null; private String lname=null; private int age=0; private String gender=null; private String phone=null; } ... View Questions/Answers

pattern program  February 8, 2012 at 4:41 AM
can any 1 print the following pattern in java .plz give the code.and yes thank u so much for answering my 2 other questions.had i known that this would be so helpful i would have registered here long before.anyways the pattern goes like this abcdcba abc cba ab ba a a ab ba abc abc a... View Questions/Answers

java find the error7  February 8, 2012 at 3:52 AM
var name=document.forms["insert"]["in_username"]; var age=document.forms["insert"]["in_userage"]; var address=document.forms["insert"]["in_address"]; var phone=document.forms["insert"]["in_userphone"]; if(name.value.length == 0) { ... View Questions/Answers

DMCA.com