Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

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

Advertisement

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

Sorting in Java  March 3, 2012 at 6:07 PM
Sorting in Java ... View Questions/Answers

HOW TO SAVE XML INTO MYSQL AND RETRIEVE IT USING JAVA  March 3, 2012 at 5:24 PM
H ello, i have an xml code, i need to save it into mysql 5.5 server database using java. i also want to be able to retrieve it as well. please note that i want it saved as xml and retrieve it the same way i saved it. SOMEONE PLEASE HELP.... this is my xml code View Questions/Answers

jquery dialog box center  March 3, 2012 at 4:56 PM
How to create dialog box with center alignment in jquery..? ... View Questions/Answers

Showing div at the center of the webpage  March 3, 2012 at 4:35 PM
Showing div at the center of the webpage ... View Questions/Answers

How to Configure Tomcat Apache in Netbeans IDE  March 3, 2012 at 3:29 PM
Can any one tell me how to add tomcat server in Netbeans IDE? With its steps ?? Thnx ... View Questions/Answers

oracle connectivity  March 3, 2012 at 2:23 PM
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","hr","hr"); i have error on above line when i tried following code Connection con; Statement stmt; try { Class.forName("oracle.jdbc.driver.Orac... View Questions/Answers

jsp_mysql  March 3, 2012 at 2:01 PM
hi,, plz help me by providing the code for displaying SELECTED columns from mysql table which are given dynamically through checkboxes.... i created dynamic page to display columns in the table but how to handle them and display ...here is the code <%-- Document : columns ... View Questions/Answers

Write a MoveFirst() for Circular Linked List  March 3, 2012 at 12:06 PM
write a MoveFirst(T elt) method to point the head at that element. Then the tail would point to the element before that one. so if i have " one two three four) and the moveFirst(two); it should read "two three four one" ... View Questions/Answers

Advaced java with Imaging  March 3, 2012 at 7:10 AM
*Sir my logic is* we have to give the two images as input to the program step1) if they are in same format k otherwise convert them in same format step2) if they are same in size k otherwise convert them int... View Questions/Answers

Library Management System  March 3, 2012 at 12:34 AM
Hello I am developing program of library management system where I need to use C++ but without class. So I am facing problem at two place, One is when there are no books information at that time it should show No books found and the other is while searching the books through ISBN number. Both th... View Questions/Answers

code for a program  March 3, 2012 at 12:12 AM
Write a program which has 2 numbers. There should be an option to add, multiply, divide and subtract these numbers a. If user opts "A" - Add the 2 numbers b. If user opts "S" - Subtract the numbers c. If user opts "M" - Multiply the numbers d. If user opts "D" - Divide the numbers e. ... View Questions/Answers

multi language  March 2, 2012 at 8:52 PM
Hello friends please help me Hi how can i do a java program using swing that changes the language like malayalam/tamil etc with languages on a drop down menu I am using netbeans IDE ... View Questions/Answers

java  March 2, 2012 at 7:39 PM
sir i need a java simple program to reverse a string using array ... View Questions/Answers

swings  March 2, 2012 at 6:10 PM
i have a JFrame, in that i want to display tabs and want to have common buttons for all that tabs, and this buttons should be placed at bottom of the JFrame. Please post me the answer Thanking You. ... View Questions/Answers

XML validation  March 2, 2012 at 2:30 PM
please tell me how to validate an XML against DTD by using servlets? ... View Questions/Answers

why java program not run with msword editor  March 2, 2012 at 2:01 PM
if java program write in MICROSOFT WORD then why they are not run with jdk ... View Questions/Answers

struts  March 2, 2012 at 9:55 AM
how to generate bar code for continuous numbers in a loop using struts ... or atleast for a given number. ... View Questions/Answers

jsp and servlry  March 2, 2012 at 9:25 AM
I want to create a login page using three buttons add,modify and delete,using mvc in jsp and servlet.How i can create this page kindly answer me fast................. ... View Questions/Answers

javascript  March 2, 2012 at 8:23 AM
how to create random question using javascript? ... View Questions/Answers

Gui plz help  March 2, 2012 at 7:51 AM
Create a Java application that would allow a person to practice math (either addition, subtraction, multiplication or division). The questions must be randomly generated ( the values for each number should be in the range from 1 to 10). In total, 10 questions should be asked. After 10 questions ... View Questions/Answers

Layout Manager  March 1, 2012 at 9:56 PM
for compile file "Javac SApplet.java" (working fine) but, java SApplet (not compile) error message: Exception in thread "main" java.lang.NoSuchMethodError:main Please follow the program import javax.swing.*; import java.applet.*; import java.awt... View Questions/Answers

return the position of last occurrence of an element  March 1, 2012 at 6:47 PM
A method " findLast(E element) " returns the position of the last occurrence of the given element. If this element is not in the list, then the null reference should be returned. The implementation of this method should search the list from the end towards the beginning, terminating when the elem... View Questions/Answers

return the position of last occurrence of an element  March 1, 2012 at 6:47 PM
A method " findLast(E element) " returns the position of the last occurrence of the given element. If this element is not in the list, then the null reference should be returned. The implementation of this method should search the list from the end towards the beginning, terminating when the elem... View Questions/Answers

uploading a file  March 1, 2012 at 5:55 PM
When I am trying to upload a file to another system in lan at a location "http://192.168.12.5:8080/tomcat-docs/myapps",then it is giving the following error message "http://192.168.12.5:8080/tomcat-docs/myapps (The filename, directory name, or volume label syntax is incorrect)".what could be the ... View Questions/Answers

manipulating dat retrieved from the DB using php arrays  March 1, 2012 at 5:34 PM
am querying the DB as follows: $`result=mysql_query("SELECT name,itemquantity FROM mytable WHERE price='$price'");` now,i want to create an array to insert the values that are as a result of this query e'g let's say this is the resultant data: ... View Questions/Answers

manipulating dat retrieved from the DB using php arrays  March 1, 2012 at 5:33 PM
am querying the DB as follows: $`result=mysql_query("SELECT name,itemquantity FROM mytable WHERE price='$price'");` now,i want to create an array to insert the values that are as a result of this query e'g let's say this is the resultant data: ... View Questions/Answers

manipulating dat retrieved from the DB using php arrays  March 1, 2012 at 5:29 PM
am querying the DB as follows: $`result=mysql_query("SELECT name,itemquantity FROM mytable WHERE price='$price'");` now,i want to create an array to insert the values that are as a result of this query e'g let's say this is the resultant data: ... View Questions/Answers

javascript duplicate value  March 1, 2012 at 5:23 PM
In javascript how to find the duplicate or variable that contains same value for example ...two different variables contains the same URL Link. ... View Questions/Answers

manipulating dat retrieved from the DB using php arrays  March 1, 2012 at 5:23 PM
am querying the DB as follows: $`result=mysql_query("SELECT name,itemquantity FROM mytable WHERE price='$price'");` now,i want to create an array to insert the values that are as a result of this query e'g let's say this is the resultant data: ... View Questions/Answers

delete javascript object  March 1, 2012 at 5:15 PM
How to create and delete an object in JavaScript? ... View Questions/Answers

settimeout in javascript  March 1, 2012 at 5:07 PM
How to call the settimeout() function in JavaScript after a specified time? ... View Questions/Answers

switch case instead of if else  March 1, 2012 at 4:58 PM
How to write code in switch case instead of if else in Java..? ... View Questions/Answers

How to fill double array in java  March 1, 2012 at 4:43 PM
how to fill double array in java...? ... View Questions/Answers

Prometric Centers AND Examination Timing  March 1, 2012 at 1:01 PM
Please provide me list of prometric centers in mumbai for SCJP and also date & time for the examination. Thank You In Adv ... View Questions/Answers

E BOOK REQUIRED  March 1, 2012 at 12:21 PM
Wicket in Action pdf required Urgently. Thnx ... View Questions/Answers

jquery ajax and servlet  March 1, 2012 at 12:04 PM
hi.. i am using jquery,ajax and servlet in ma application.On the webpage when user selects id from the drop downbox and ckicks on "show person " button i am calling a servlet "GetPerson" through ajax inside this servlet i have set some session variables "myID" n "name"...when it returns back to t... View Questions/Answers

c programe  March 1, 2012 at 11:23 AM
12345 54321 1234 4321 123 321 12 21 1 1 ... View Questions/Answers

spring form field clearence  March 1, 2012 at 11:22 AM
hi, I have spring form application in which i have security question and answer field for answer field validation after giving wrong format validation occurs but the field remains in that text field, I want clear the text field after validation occurs ... View Questions/Answers

DMCA.com