Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

database connectivity using mysql  March 10, 2012 at 2:31 PM
java file: eg1.java package eg; import java.sql.*; public class eg1 { public static void main(String arg[]) throws SQLException { try { String connectionURL = "jdbc:mysql://loaclhost:1522/mydb"; Connection connection = null; Statement statement = nul... View Questions/Answers

NoughtsAndCrossesGame play button doesn't work  March 10, 2012 at 1:35 PM
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package test; import java.awt.*; import java.awt.event.*; import javax.swing.*; /** * * @author 000621812 */ public class NoughtsAndCrossesGamev2 { /** * @param... View Questions/Answers

NoughtsAndCrossesGame play button doesn't work  March 10, 2012 at 1:35 PM
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package test; import java.awt.*; import java.awt.event.*; import javax.swing.*; /** * * @author 000621812 */ public class NoughtsAndCrossesGamev2 { /** * @param... View Questions/Answers

Advertisement

java palindrome  March 10, 2012 at 1:32 PM
sir i need java program to print 1)integer palindrome 2)string palindrome ... View Questions/Answers

code for a simple java program which performs basic arithmetic operation addition,subtraction,multiplication,division........  March 10, 2012 at 12:22 PM
code for a simple java program which performs basic arithmetic operation addition,subtraction,multiplication,division ... View Questions/Answers

CSS problem height from top  March 10, 2012 at 12:21 PM
here i wrote a code but can you tell me how to increase height from top <html> <head> <style type="text/css"> .hello img { height : 100px; width :100px; margin-top: 84... View Questions/Answers

add new package java  March 10, 2012 at 11:31 AM
How to add new package in Java ... View Questions/Answers

Encryption Decryption In Scriptlets/Java  March 10, 2012 at 7:21 AM
I have this code in my scriptlet, when I use the Encryption code to encrypt my data it executes successfully, now when I get my encrypted data from my DB, specifically MSSQL.. I traced where the program stopped working and it stopped in the decryption part and I get this error.. "Given Final Bloc... View Questions/Answers

md5 in jsp  March 9, 2012 at 8:01 PM
want code for encryption and decryption of password usind MD5 in jsp ... View Questions/Answers

data tyape  March 9, 2012 at 1:41 PM
please give me data type of Date. ... View Questions/Answers

data type of Date  March 9, 2012 at 1:41 PM
please give me data type of Date. ... View Questions/Answers

data type of date in mysql  March 9, 2012 at 1:41 PM
please give me data type of Date. ... View Questions/Answers

What data tyape a date field req in SQL  March 9, 2012 at 1:41 PM
please give me data type of Date. ... View Questions/Answers

data tyape  March 9, 2012 at 1:41 PM
please give me data type of Date. ... View Questions/Answers

data tyape  March 9, 2012 at 1:41 PM
please give me data type of Date. ... View Questions/Answers

collections2  March 9, 2012 at 9:26 AM
when exactly we go for Comparator and when exactly we go for Comparable while sorting? ... View Questions/Answers

collections  March 9, 2012 at 9:25 AM
could you please explain about WeahHashMap and IdentityHashMap ? For what purpose they have been introduced? ... View Questions/Answers

viewstate in jsp  March 8, 2012 at 8:25 PM
**how to implement viewstate(from asp.net) in jsp? or any other method to retain the state of a jsp page??** ... View Questions/Answers

Unable to connect servet, jsp to oracle 10g database.. Unable to retrieve data..  March 8, 2012 at 7:50 PM
I have a class file AbstractDataAccessObject with the below code. package com.dts.core.dao; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.... View Questions/Answers

javascript  March 8, 2012 at 5:54 PM
Hi, I want to open a new window using window.open()(in ie6 and above),and i want to make the window to stay on top of other windows.I don't want to use showModalDialoge.Is there any way to do this,kindly help me . shyam, thanks in advance ... View Questions/Answers

Running problem with NoughtsAndCrossesGame in blank  March 8, 2012 at 4:58 PM
Hi i was having problem created NoughtsAndCrossesGame in end the it works but i runs the gui in blank. Its another way to solve it /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package test; imp... View Questions/Answers

need project  March 8, 2012 at 4:44 PM
hi im new on this site so dnt knw actual procedure . but i need a project on banking system in java with sql database. which should contain following attributes create new account for new customer retrieve the data of existing customer having two accounts saving and current account deposit and ... View Questions/Answers

clearing text field in spring form  March 8, 2012 at 3:27 PM
hi, I have spring form in that i have security question dropdown field and security answer text field ,when i submitted form with errors the answers text field value should be clear, for this i am using controller at back end and one jsp as front end at backend i am able to clear but in jsp i am ... View Questions/Answers

unreported exception parseException  March 8, 2012 at 3:27 PM
Here is my code import java.io.* ; import java.util.*; import java.text.*; /*class QS1 { String[] buf = new String[50]; // String[]buf={"select * from emp;"}; }*/ class QS2 { String type; String contents; QS2 neste... View Questions/Answers

how to convert doc file into html using java swing  March 8, 2012 at 3:26 PM
i want to convert doc file into html and display it on jtextarea please help me and give the sample code ... View Questions/Answers

code for sending email using j2me  March 8, 2012 at 1:23 PM
could someone tell me why when i try to compile this line using netbeans 7.1 Properties property= System.getProperties(); Sessionsession=session.getdefaultinstance (property); i get an error. What does the smtpclient.java code look like? ive checked to see if all libs a... View Questions/Answers

phonegap  March 8, 2012 at 12:44 PM
How can i retrieve recently dallied call list in phonegap? Thank you so much for your support and answer..... ... View Questions/Answers

Query  March 8, 2012 at 12:13 PM
hw to transfer a file from one client machine to another client machine using java socket programming???? plz rpy soon..want to do project ... View Questions/Answers

java  March 8, 2012 at 11:36 AM
sir it is possible to compile a java program with errors but itcannot be shown.i need all javac commands used to compile java ... View Questions/Answers

audio video conferencing  March 8, 2012 at 11:14 AM
how to develop a chat application in peer to peer setup?? ... View Questions/Answers

How would you read in and add all this into a list?  March 8, 2012 at 9:05 AM
FYI this is all stacked. 0 " " " " " " " " " " 1 "48" "111" "Dallam" "06" "County" 2 "48" "421" "Sherman" "06" "County" 3 "48" "295" "Lipscomb" "06" "County" 4 "48" "357" "Ochiltree" "06" "County" 5 "48" "195" "Hans... View Questions/Answers

xml document parsing  March 8, 2012 at 1:16 AM
Hi Guys, Xml document has been inserted into the database,how do i parse the xml document stored in database,so that xml document can be retrieved on to JSP file using jdbc/odbc connection. Please help me in this regard Madhu ... View Questions/Answers

Flex-Question  March 8, 2012 at 1:01 AM
Hi, i have to take a DOB(date of birth) field and from here i have to calculate age. i am tryin but i am not getting the result......... pls help me ........... ... View Questions/Answers

retrive data from data base and print it in every page until logout  March 8, 2012 at 12:14 AM
suppose that a user login your website through user name & password. now after completion of login he goto home page.inside home page i want to print the USER NAME through retriving from database.suppose from home page he go to next page that page also contain the USER NAME until he logout.... View Questions/Answers

date print  March 7, 2012 at 11:56 PM
how can i print the date in jsp page in the following formate month-date-year. (example. march 8 2012). ... View Questions/Answers

date print  March 7, 2012 at 11:56 PM
how can i print the date in jsp page in the following formate month-date-year. (example. march 8 2012). ... View Questions/Answers

pdf generate from jsp  March 7, 2012 at 11:19 PM
how do i generate a pdf using jsp that should query the data from the database and write it into a pdf and download the same? ... View Questions/Answers

MyQuestion  March 7, 2012 at 9:10 PM
can we add 2 no by using bit wise operators ... View Questions/Answers

directives  March 7, 2012 at 8:59 PM
#include "stdafx.h" #include<conio.h> # define PRODUCT(x)(x*x) int _tmain(int argc, _TCHAR* argv[]) { int i=3,j,k,l; j=PRODUCT(i+1); k=PRODUCT(i++); l=PRODUCT(++i); printf("%d %d %d %d\n",i,j,k,l); getch(); return 0; } Output : 7 7 9 4... View Questions/Answers

How to get Output for a Bean problem  March 7, 2012 at 7:24 PM
Hello Kindly tell me a simple Program on Bean to get the Output using JSP code. ... View Questions/Answers

form to java script conversion  March 7, 2012 at 3:35 PM
I am using a form one more form cotain a piece of code . how to convert it to java script to function it properly? code is shown below <form action="http://www.google.com" id="cse-search-box" target="_blank"> <div> <input type="hi... View Questions/Answers

draw a sine wave using jsp  March 7, 2012 at 12:13 PM
hai frds.. i need to draw a sine wave by using jsp.. the values X and Y co-ordinate is present in database i have fetch those values from that then display the sine wave graph according to the fetched x and y values.. pls help me frds.. this my id sunilkumarbs05@gmail.com ... View Questions/Answers

Program showing Calendar  March 7, 2012 at 11:09 AM
package chapter6; import java.util.Calendar; import java.util.Date; import java.util.Locale; /** * * @author Dell */ public class dateCurr { public static void main(String[] args) { Date d=new Date(1331096367952L); ... View Questions/Answers

java program  March 7, 2012 at 10:29 AM
voter or non voter display ... View Questions/Answers

DOUBT  March 7, 2012 at 7:55 AM
JAVA IS PLATFORM INDEPENDENT BUT U HAVE ALSO WRITTEN THAT JAVA RUN ON ANY JAVA PLATFORM. SO, WHAT DOES THIS ACTUALLY MEAN THAT WHETHER JAVA CAN RUN ANYWHERE OR CAN RUN ANYWHERE WHERE JAVA PLATFORM IS THERE ... View Questions/Answers

How to change the color of a base64-encoded png image JQuery?  March 7, 2012 at 4:42 AM
I am going to change the colors of the pixels of a png image(which is in base64 format). This is my source code: var myImg = new Image(); myImg.src = <...>; //"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAABQklEQVR4nO3bC27CMBAFQ"; myImg.o... View Questions/Answers

How to use AT Commands with J2ME?  March 6, 2012 at 11:22 PM
How to use AT Commands with J2ME? Thank you for your answer.... ... View Questions/Answers

generate pdf using jsp  March 6, 2012 at 8:30 PM
how do i generate a pdf using jsp that should query the data from the database and write it into a pdf and download the same? ... View Questions/Answers

generate pdf in spring  March 6, 2012 at 8:10 PM
HOw do i generate pdf in a spring application, so that my click should query the database and a pdf should be generated and downloaded to the client side ... View Questions/Answers

generate pdf in spring  March 6, 2012 at 8:10 PM
HOw do i generate pdf in a spring application, so that my click should query the database and a pdf should be generated and downloaded to the client side ... View Questions/Answers

calculati marks for objective question set?  March 6, 2012 at 8:03 PM
how to calculate marks for objective question set? ... View Questions/Answers

Moving projects from tomcat-6.0 to jboss 5.0.1 GA  March 6, 2012 at 7:37 PM
Now i am using tomcat server version6.0 for my project. Now i want to change the server from tomcat to jboss 5.0.1 GA. What are the things i have to do for using jboss instead of tomcat? Also while using tomcat i had a pom.xml file. Should i change any thing in that file for going to jbos... View Questions/Answers

supermarket Automation software  March 6, 2012 at 7:25 PM
Hello RoseIndia , I want to build a supermarket Automation software that has the features of stock taking and receipt prniting.i want information about supermarket Automation software,can u help me with this.. ... View Questions/Answers

wifi with java  March 6, 2012 at 4:57 PM
i want to connect wifi\wireless connection with java (not midlet or android) i fount code for android and midlet but not for core java . can anyone help me..plzz ... View Questions/Answers

how to move records from one table to other based on its creation time  March 6, 2012 at 4:40 PM
Hi all,, As part of my requirement ,the records in one table have to move to second table based on the record creation time means the records should not be present in first table after creation of two days,and it has to move to the second table,has to delete from first table.. I am using oracle... View Questions/Answers

Wicket Framework DropDownChoice  March 6, 2012 at 4:23 PM
I am trying to get selected value of dropdownchoice in wicket framework , but i am unable to get it. How can i get selected value of DropDownChoice on the change event of dropdownchoice ??? Thanks. ... View Questions/Answers

forget password  March 6, 2012 at 2:41 PM
codding for forget password using spring framework ... View Questions/Answers

E-Mail header extractor  March 6, 2012 at 2:36 PM
i want to extract email header with using of java so please show the code of email extractor as result all the field show different color and or it extract ip where the email came ... View Questions/Answers

E-Mail header extractor  March 6, 2012 at 2:36 PM
i want to extract email header with using of java so please show the code of email extractor as result all the field show different color and or it extract ip where the email came ... View Questions/Answers

java  March 6, 2012 at 1:35 PM
Declare two (2) dimensional arrays to store a name and grade. The program will not stop in accepting array elements until the user entered ?N?. Sample Run: Enter name: Richard Enter grade: 100 Add new record (Y/N) ? : Y Enter name... View Questions/Answers

java  March 6, 2012 at 1:33 PM
Declare two (2) dimensional arrays to store a name and grade. The program will not stop in accepting array elements until the user entered ?N?. Sample Run: Enter name: Richard Enter grade: 100 Add new record (Y/N) ? : Y Enter name: Mengvi Enter grade: 80 Add new record (Y/N) ? ... View Questions/Answers

jquery href onclick event  March 6, 2012 at 1:20 PM
jquery href onclick event ... View Questions/Answers

convert char to string objective c  March 6, 2012 at 1:05 PM
Converting char to string in objective c ... View Questions/Answers

back button in jquery  March 6, 2012 at 12:36 PM
Creating a back button in JQuery ... View Questions/Answers

setting web page size  March 6, 2012 at 12:29 PM
How to set the webpage size in Java? ... View Questions/Answers

How to store JComboBox item into database  March 6, 2012 at 11:58 AM
import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; import javax.swing.DefaultComboBoxModel; import javax.swing.JComboBox; import javax.swing.JOptionPane; import javax.swing.JPanel; /* import java.sql.Connection; import java.sql.DriverManager; import java... View Questions/Answers

Enjoying Web Development with Wicket  March 6, 2012 at 10:10 AM
Wanted e book Enjoying Web Development with Wicket 3rd edition ... View Questions/Answers

MySqlQueryBrowser  March 6, 2012 at 9:53 AM
How we can connect MySql QueryBrowser database using java code?????????? Is it like " Class.forName("org.gjt.mm.mysql.Driver"); cn = DriverManager.getConnection("jdbc:mysql://localhost/snackdb", "root", "");" ???? Can u help me????? ... View Questions/Answers

how to create own tld and use it in jspx file  March 5, 2012 at 8:14 PM
I wanted to add fmt as own tag and internationalize add.title=Add. please help me solve the problem. <!-- Document : add Created on : Mar 4, 2012, 7:00:38 PM Author : Administrator --> <... View Questions/Answers

how to create own tld and use it in jspx file  March 5, 2012 at 8:14 PM
I wanted to add fmt as own tag and internationalize add.title=Add. please help me solve the problem. <!-- Document : add Created on : Mar 4, 2012, 7:00:38 PM Author : Administrator --> <... View Questions/Answers

photo uploading  March 5, 2012 at 6:31 PM
i want the code upload the image in oracle database. ... View Questions/Answers

pdf to database  March 5, 2012 at 5:28 PM
Hi, I want to read the data from pdf(pdf file is having 50 fields) which is placed in database file and store that into MySQL database. I want this process untill the rows completed in the database file with automation process Thanx sandeep ... View Questions/Answers

get absolute time java  March 5, 2012 at 5:07 PM
How to get absolute time in java? ... View Questions/Answers

html-jsp  March 5, 2012 at 4:44 PM
If i want to get dynamic value in html textbox or in jsp,then how can I get the value,how the value will be transfered from servlet page to the html textbox.Thanx in advance.....Kindly help me........... ... View Questions/Answers

date example with database  March 5, 2012 at 3:24 PM
i want to insert date in database(oracle) through jsp. thanx in advance... ... View Questions/Answers

ONLINE EXAM CODE SPLIT  March 5, 2012 at 1:39 PM
hi.. im developing online exam for c programming in jsp.. i read the question from database as a string suppose String ques="#include<stdio.h>main(){int i;for(i=0;<100;i++){printf("hai");}}"; i want to print the string in h... View Questions/Answers

Java Inheritance Concept.  March 5, 2012 at 12:35 PM
Yesterday i got confused with following question in an aptitude exam. Question:Class A,B,C have method named doit(). Class B extends Class A,Class C extends Class B.How will you call method doit() in Class A from Class C. ???? Options:1.super.doit()2.super.super.doit()3.A.this.doit()4.this.doit()... View Questions/Answers

uploading file to tomcat server  March 5, 2012 at 12:09 PM
please tell me how to upload a file to the URL "http://192.168.12.7:8000/tomcat-docs/" ? thanks ! ... View Questions/Answers

Pay Pal  March 5, 2012 at 12:00 PM
Hi i am new to paypal integration plese give me idea how to implement Regards Renuka ... View Questions/Answers

Can u print in turbo C  March 5, 2012 at 9:49 AM
Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print ++a in the same printf() command ten times) ... View Questions/Answers

JSP EL  March 5, 2012 at 12:53 AM
hi! i am developing web app of online exam system. I want to retrive question one by one as the user clicks "next/privious" button.I tried to get questions in arraylist in servlet and than set that arraylist as request attribute and than i wrote EL for that attribute on jsp page.But somehow i don... View Questions/Answers

Project Doubght  March 5, 2012 at 12:26 AM
What is meant by server monitoring in java enterprise application.? ... View Questions/Answers

retrieving xml document from database  March 4, 2012 at 11:42 PM
Hi Guys, I want to retrieve the xml document stored in the database on to a jsp page using jdbc/odbc connnection.Please help me in implementing this feature. Thank You Madhu ... View Questions/Answers

java jtextfield  March 4, 2012 at 8:29 PM
how to validate jTextField which accept only number or alphabets from keyboard....plez do help me.... ... View Questions/Answers

connection  March 4, 2012 at 10:54 AM
sir i have created a web page for login form and i have also created the related data base in both ms access and oracle 10g now how to store those values in form to databases can u plz hlp me ... View Questions/Answers

connectivity  March 4, 2012 at 10:53 AM
sir i have created a web page for login form and i have also created the related data base in both ms access and oracle 10g now how to store those values in form to databases can u plz hlp me ... View Questions/Answers

Display Configurations  March 4, 2012 at 9:29 AM
The year is 2136. A lot of things have changed but BITS Pilani still exists. The display technology used now is a WASDLED screen. This display technology consists of a configuration matrix containing a row of N cells each of which can display K different symbols. These K symbols are parti... View Questions/Answers

Java Application for Health Care Management  March 4, 2012 at 8:41 AM
Hi, I want the Java Application for Health Care Management.Thanks!... View Questions/Answers

servlet  March 4, 2012 at 8:31 AM
hi sir,this is ashok.i installed tomcat 6.0 and jdk-150.i checked the server it's working but when execute servlet program for the .class file it shows the errors javax.servlet is not exist.what can i do,please tell me sir hoew to resolve this problem ... View Questions/Answers

Uploading file in servlet from a html form  March 4, 2012 at 7:08 AM
Sir, I want to upload a picture from my html file and save it to my database as BLOB,but what JAR should i use for this purpose i am really confused about.And also is it possible to do this process without using a third party JAR, just using Java API. please help me with this.... View Questions/Answers

Palindromaniac  March 4, 2012 at 1:29 AM
Ever wondered about strings full of palindromes? The strange folks in the magical world of mamamam speak in such strings. You might have noticed that every sub-string of length three in "mamamam" is a palindrome. You have been given a task by the half-lion half-goat king of mamama... View Questions/Answers

socket programing  March 4, 2012 at 12:44 AM
how can u pass data from 1-another system by socket class? ... View Questions/Answers

Convert Miles To Kilometers program in java  March 3, 2012 at 11:23 PM
Write a program to compute a table of distance conversions between miles and kilometres. You should create a main method which accepts three numbers on the command line as user input: these numbers will be the smallest, largest and step size for constructing the table. The program should then pri... View Questions/Answers

Please help me??  March 3, 2012 at 10:26 PM
Question_1: Using one-dimension array of primitive type elements. Objective: The purpose of this lab exercise is to practice how to declare, create and manipulate a one-dimension array of primitive type elements. Instructions: 1. Create a new file ArrayDemo.java 2. Declare two int... View Questions/Answers

operators  March 3, 2012 at 8:54 PM
class A{ public static void main(String[]args){ int i=2,k; k=i++ + ++i + +i; System.out.println(k+" "+i); } } ... View Questions/Answers

change content of cell javascript  March 3, 2012 at 6:52 PM
change content of cell javascript ... View Questions/Answers

java properties serialized  March 3, 2012 at 6:32 PM
How to serialize properties in Java ... View Questions/Answers

java get file permission  March 3, 2012 at 6:27 PM
How to check the get file permission in Java..? ... View Questions/Answers

pass method reference in java  March 3, 2012 at 6:20 PM
How to pass method reference in Java..? ... View Questions/Answers

JavaScript Form Validation  March 3, 2012 at 6:15 PM
JavaScript Form Validation ... View Questions/Answers

DMCA.com