Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

java  September 10, 2010 at 2:14 PM
i need to encrypt the password and store it in databaseand while retreiving it it should b decrypt form ... View Questions/Answers

String  September 10, 2010 at 12:44 PM
i have a String s1="abc"; String s2="123";then how to get a String s3="a1b2c3"; ... View Questions/Answers

Applet  September 10, 2010 at 11:48 AM
sir, I have just started applet. Now i am going to design my resume using java. Now, if I want to attach my photo, which code will suitable for that??please help. ... View Questions/Answers

Advertisement

recursionarray  September 10, 2010 at 6:10 AM
I need to initialize a 1-D array with the values: 2,4,6,8,10,12,18,20 using recursion to test all values from 0 to 20 and see if they are contained in the array. I will have to print the results out for all the numbers 0-20Thanks Please ... View Questions/Answers

recursion numbers  September 9, 2010 at 7:06 PM
I need to use recursion to test all values from 0 to 20 and see if they are contain in a 1-D array with values: 2,4,6,8,10,12,14,16,18,20. The results of all numbers from 0-20 will be printed. ... View Questions/Answers

error in java progran at run time  September 9, 2010 at 6:14 PM
Hello sir,,, i make a servlet program in java,,but i face some problem,,so please me.. Actually this type of error are come in my all servlet programMy Servlet-- Error- package P1; import javax.Servlet.*; import java.io... View Questions/Answers

error in java progran at run time  September 9, 2010 at 6:10 PM
Hello sir,,, i make a servlet program in java,,but i face some problem,,so please me.. Actually this type of error are come in my all servlet programMy Servlet-- Error- package P1; import javax.Servlet.*; import java.io... View Questions/Answers

JComboBox Display Problem  September 9, 2010 at 10:59 AM
I am create one program that contain two combo boxes. If first combo box i am display all date. If i select one date from first combo box then the second combo box display some dates based on first combo box select date. Here is my full programimport java.awt.*;import java.awt.even... View Questions/Answers

how to check particular value is avilable in hashmap  September 9, 2010 at 10:20 AM
Hi friends,i created a hashmap,in that hashmap key is tagginglist and value is tagsname,these tags is in the form arraylist.then how i will check particular tags is available in the hashmap or not.my code is like this:Hashmap msgMap=new HashMap();String headLine=msg.getSubjec... View Questions/Answers

i have problem in that program  September 9, 2010 at 6:01 AM
1. Write a multi-threaded Java program to print all numbers below 100,000 that are both prime and fibonacci number (some examples are 2, 3, 5, 13, etc.). Design a thread that generates prime numbers below 100,000 and writes them into a pipe. Design another thread that generates fibonacci numbers ... View Questions/Answers

hibernate code  September 8, 2010 at 9:04 PM
sir, i have tried ur hibernate 3.0 firt example code, i have done as u have told in the tutorial like import all the related jar files,made asimple java project and copied the two xml files into src/bin,but when i run this it shows error i.e Exception in thre... View Questions/Answers

core java  September 8, 2010 at 5:53 PM
sir why did u declare or intilize the variables in static main method().. But non-static members are does't decalred in the static function?? we only declare the static members in static function only........... plz give clear explanation sir...... ... View Questions/Answers

SplitButton of dropdownbutton invisible when mouse clicking  September 8, 2010 at 4:49 PM
click the SplitButton of dropdownbutton, when dropdownmenu willbe displayed. but this is not disabled when mouevent performed on the jpanelhow to disabled or hide the dropdownmenu when we click the dropdown button? //the code is belowimport java.awt.*;import java.awt.ev... View Questions/Answers

jsp code  September 8, 2010 at 2:47 PM
in my table there are 3 fields named orderid ,itemname, itemqty. i want code that fetch orderid in dropdown... on select dropdown get table of item details of that orderid... there are multiple items at one orderid... ... View Questions/Answers

Connection to jdbc  September 8, 2010 at 12:14 PM
I need to populate a listbox in jsp with values from Postgresql JDBC.i used the following code... but its not working... can u suggest me with the correct solution.my.jsp<%@ page import="java.sql.*" %><%@ page language="java" %>... View Questions/Answers

difference between the obj and reference  September 8, 2010 at 8:17 AM
what is the difference between object and reference ?is there any difference ? ... View Questions/Answers

how to truncate  September 7, 2010 at 3:29 PM
Dear sir , How to truncate the result of 0.5% 0.1 =0.09999999999999992 to 0.099 ,please help me.Thanks... ... View Questions/Answers

To find the reminder for a double  September 7, 2010 at 1:08 PM
Dear sir , How to find the reminder for a 0.5%0.1.When i do this it is giving 0.09999999999999998 .it is giving correct zero reminder for even numbers for odd numbers it is giving this result ,so i want a zero reminder if it is a multiple of 0.1,please help me...Thanks... ... View Questions/Answers

jsp function  September 7, 2010 at 11:25 AM
how to make function in jsp... i want example of jsp method or function in which on button click function get data fron database and print that data.. don't want javascripts.. ... View Questions/Answers

java  September 7, 2010 at 3:38 AM
i have button browse button in my applet form.when i click on browse button i have to go to file storage box(what ever files stored in my computer )i have to select the file path from that box(like attaching files in the mail).i have display that file path in my applet form.am learner please send m... View Questions/Answers

Java Memory Leak  September 7, 2010 at 1:53 AM
I am having a memory leak in my java version of the game Snake. I have narrowed the exact step of when the program memory is increased to two possible points. The last step before the my game timer runs, (this.pack()), or the first execution of the game/pregame menu timer's loops run. The actually o... View Questions/Answers

Uploading a .3gp file.  September 6, 2010 at 9:19 PM
sir, i m sending it again .i want code for java based mobile application, that can take .3GP video file and upload it to youtubeusing youtube's APIs. The video file would be located on a weblink (a direct http link to a video file).i hope u understand what i have asked. i am asking th... View Questions/Answers

HELP! Design Review & Risk Management topics (in Java projects) required  September 6, 2010 at 3:32 PM
Hi,I have to take 2 one hour sessions on the following topics:* Project Design Review* Project Risk ManagementCan you please recommend any topics/examples/case studies for the same? Any help will be much appreciated. ... View Questions/Answers

arraylist problem  September 6, 2010 at 1:22 PM
Hello....I wrote the following code for adding a string array into an array list along with other strings...and to display the string array...But there's a problem with this...import java.util.*;class TestArray{ public static void main(String arg... View Questions/Answers

arraylist  September 6, 2010 at 12:41 PM
Hi..I've an arraylist where i need to add a string array along with other string values.My string array is array[]and arraylist is ali added other string values name,time,date asal.add(name);al.add(time);al.add(date);and the string array as,... View Questions/Answers

java  September 6, 2010 at 12:01 PM
how to update database record in jsp.what is the syntax? ... View Questions/Answers

image in jsp  September 6, 2010 at 10:59 AM
i m storing path of image in my database.. but when i m trying to display image using that path image is not getting... i m storing path like c:\image\a.jpg ... and i m using <img /> tag... how to get it??? ... View Questions/Answers

Java  September 6, 2010 at 10:55 AM
How to implement Thread ... View Questions/Answers

Re:number of Files download problem in jsp  September 6, 2010 at 9:32 AM
I write code for single file downloading , but I want to download number of files at same time , means I want stored number of files in one temp zip file then it download it. please help in this case ...code :<%@ page import="java.io.FileInputStream" %><%@... View Questions/Answers

java  September 5, 2010 at 5:01 PM
why main() execution starts defaultly by jvm? ... View Questions/Answers

java  September 5, 2010 at 4:54 PM
why JVM executes only main method by defaultly?why not executes the user defined static method? that means,show below program class sample { public static void main(String[] args) { System.out.pri... View Questions/Answers

need to solve the below question  September 5, 2010 at 1:48 PM
I need to write an application that uses the circle class.it must read a radius of a circle from the user .create a circle object and return the object ... View Questions/Answers

java method return type :  September 5, 2010 at 11:08 AM
i have one question regarding methods,,, if we create a method with return type as class name (public employee addemp(int,int))what should be its return type.....and if any know this pls explain with more example...... ... View Questions/Answers

java  September 5, 2010 at 10:22 AM
there are four text boxes like, id, name,sal,age. if i select any one of the textbox ,remaing textbox values has to come automatically,these values stored in database.database id name age sal 1 a 10 200 2 b 20 300jsp... View Questions/Answers

java reflection  September 4, 2010 at 7:16 PM
how to save and run reflection class in java?please immediately reply sir ... View Questions/Answers

java algm  September 4, 2010 at 6:54 PM
tell me below program algorithm sir.PROGRAM:import java.util.*;class Lisp{public int car(List l){Object ob=l.get(0);String st=ob.toString();return Integer.parseInt(st);}public List cdr(List l){Object ob=l.remove(0);O... View Questions/Answers

java  September 4, 2010 at 6:51 PM
please tell me below program algorithm sir.program:import java.io.*;class Rational{ private float numerator; private float denominator; public Rational(float x, float y) { numerator=x; denom... View Questions/Answers

java  September 4, 2010 at 4:45 PM
what is Locale class? ... View Questions/Answers

j2se  September 4, 2010 at 4:14 PM
what is the difference between JVM AND JRE ? ... View Questions/Answers

javascript  September 4, 2010 at 2:23 PM
on button click get id and make session of that id and use it in query in one page.... ... View Questions/Answers

java  September 4, 2010 at 7:54 AM
where can we exactly use static keyword ... View Questions/Answers

java  September 4, 2010 at 7:53 AM
how can we perform treeview by using jsp.for example: +EMPLOYE ADD DELETE MODIFY VIEWif i click on EMPLOYEE all fields should expand and if i click perticuler field then control goes to that page ... View Questions/Answers

java  September 3, 2010 at 10:17 PM
1.Develop a simple OPAC system for library using even-driven and concurrent programming paradigms of Java. Use JDBC to connect to a back-end database.2.Develop multi-threaded echo server and a corresponding GUI client in Java.reply me sir ... View Questions/Answers

java  September 3, 2010 at 10:16 PM
[Mini-Project] Develop a programmer's editor in Java that supports syntax highlighting, compilation support, debugging support, etc.sir please tell me. ... View Questions/Answers

arrays help  September 3, 2010 at 10:05 PM
Write a program that sorts values.? The program includes readIntegers() thato reads the user inputso stores them in an array, ando returns the array&#8195;? The program includes easySort() that o sorts values in the array in the ascending order, and retu... View Questions/Answers

Read Text file from Javascript  September 3, 2010 at 7:02 PM
plz send the code How to Retrieve the data from .txt file thru Javascript? And how to find the perticular words in that file? ... View Questions/Answers

java  September 3, 2010 at 6:51 PM
1.Develop multi-threaded echo server and a corresponding GUI client in java ... View Questions/Answers

java  September 3, 2010 at 6:50 PM
1.Develop a simple OPAC system for library using even-driven and concurrent programming paradigms of java.use JDBC to connect to a back-end database. ... View Questions/Answers

how to run servlet  September 3, 2010 at 4:48 PM
pls give me comlete procedure to run the servlet on apache-tomcat 6.0.16how can i set my classpath, java_home etc.also where i have to save my servlet program and how it compile and then run on web browser. ... View Questions/Answers

send data thru parallel port  September 3, 2010 at 3:56 PM
Hi, I want to print send data to printer thru parallel port.How can it be possible thru java code ?? ... View Questions/Answers

java  September 3, 2010 at 3:29 PM
Hi sir ..Write a program in java for Password Generator that should ask from user in the format as given below. Please reply with output as well. Input the string:- Insert string of any lengthPassword Type:- Numeric/Alphabetic/Alphanumeric... View Questions/Answers

java  September 2, 2010 at 8:07 PM
1.write a multi-threaded java program to print all numbers below 100,000 that are both prime and fibonacci number(some examples are 2,3,5,13,etc).design a thread that generates prime numbers below 100,000 and writes them into a pipe.design another thread that generates fibonacci numbers and writes t... View Questions/Answers

java image converting to byte codes  September 2, 2010 at 6:19 PM
i want to convert an image to human unreadable format which is uploaded by client to server.How can i do it? ... View Questions/Answers

setting classpath of tomcat  September 2, 2010 at 5:46 PM
hello i am giri. I Installed the Tomcat6 in my system and the problem is, How to set the classpath, Please give the solution. ... View Questions/Answers

chat server  September 2, 2010 at 12:58 PM
i want to develop chat server in java using smtp and pop3 protocol.plz tell me what i have to do.what are the APIs i have to use. ... View Questions/Answers

How do i start to create Download Manager in Java  September 2, 2010 at 12:02 PM
Can you tell me from where do i start to develop Download manager in java. ... View Questions/Answers

javacode  September 1, 2010 at 9:56 PM
how to use inherritance using switch case.if suppose i use two classes named customer details and student details and i want to call either one at a time so how to use switch case in these type of situation.help me out please ... View Questions/Answers

JAVA  September 1, 2010 at 9:45 PM
Develop a template for linked-list class along with its methods in Java. ... View Questions/Answers

how to begin  September 1, 2010 at 8:59 PM
i want to know that to develope a webside in java how i start my tutoril.sir please write step to take tutorial in sequence . i want to develope webside using jsp and servlet. ... View Questions/Answers

how to save web pages in a partcular document in html format using java..  September 1, 2010 at 5:47 PM
i have to save a particular web page in a folder in html format using java.the url will be the input of the program.the program when run will first save the web page in a folder and then will parse the page.the parsing part is done..i am unable to do the former part please he... View Questions/Answers

Jasper Reports  September 1, 2010 at 5:46 PM
Hi, I'm new to Jasper Reports. Please help me by giving a simple example of Jasper report generating.Thank You,Umesh ... View Questions/Answers

jsp dropdown  September 1, 2010 at 5:38 PM
in my table there are 3 fields named orderid ,itemname, itemqty. i want code that fetch orderid in dropdown... on select dropdown get all items list of that orderid... there are multiple items at one orderid... ... View Questions/Answers

Tooltip problem  September 1, 2010 at 3:31 PM
In my project i used google map...I want show tooltip on marker when marker created not on marker event like mouseover,click..... ... View Questions/Answers

form text box connection with mysql database feild  September 1, 2010 at 10:41 AM
Respected Sir,What is the coding to connect a form text box field with mysql database table field will you explain me with simple example..thanking you.. ... View Questions/Answers

java  September 1, 2010 at 9:37 AM
design classes for currency,rupee,and doller.write a program that randomly generates rupee and doller objects and write them into a file using object serialization.write another program to read that file,convert to rupee if it reads a doller,while leave the value as it is if reads a rupee. ... View Questions/Answers

Java Calendar issue  September 1, 2010 at 9:00 AM
HiI have having weird situation with java Calendar, its driving me crazy.My requirenment is that i got a xml schema element that accepts only Calendar TypeSay element <expDtTime>2011-09-25T13:00:00</expDtTime>Say Singapore time zoneWhen i s... View Questions/Answers

sorting  September 1, 2010 at 7:14 AM
Write a program that sorts values.? The program includes readIntegers() thato reads the user inputso stores them in an array, ando returns the array&#8195;? The program includes easySort() that o sorts values in the array in the ascending order, and retu... View Questions/Answers

arrays part 2  September 1, 2010 at 7:12 AM
Question 2: Useful Array Algorithms and Operations (5 marks)Upgrade the program in Question 1 so that the program includes:? A static method search() that:o Has a parameter of integer array and another integer valueo Searches the integer value in the array, ando Returns... View Questions/Answers

arrays  September 1, 2010 at 7:11 AM
Write an application that reads user inputs and prints the largest and the smallest values in the group.? Include a static method readIntegers() that:o Reads a certain number of integers from the usero Saves them in an array, ando Returns the array&#8195;? Inc... View Questions/Answers

linked list example problem  September 1, 2010 at 2:53 AM
Q: Create your own linked list (do not use any of the classes provided in the Collections API). Implement the following two operations If you are using jdk1.4 or before: void add(Object ob); boolean find(Object ob); ... View Questions/Answers

linked list example problem  September 1, 2010 at 2:49 AM
Q: Create your own linked list (do not use any of the classes provided in the Collections API). Implement the following two operations If you are using jdk1.4 or before: void add(Object ob); boolean find(Object ob); ... View Questions/Answers

Java code  August 31, 2010 at 7:00 PM
Hello All,I need a code to convert the xml file to text file using Java ... View Questions/Answers

developing skills in java , j2ee  August 31, 2010 at 6:22 PM
How to understand or to feel the flow of java or j2ee programme what is the way to become a expert programmer can you please give me tipsthanking you.. ... View Questions/Answers

java swing jdbc  August 31, 2010 at 1:31 PM
hello, i want to populate the data(ms access) to the jtable component and want to perform some operations on it like add,edit,delete. Again i want to store the updated data to the database. can you help me out..... ... View Questions/Answers

java swing  August 31, 2010 at 1:11 PM
utlility of super.paintComponent(Graphics g) in java?what does it do actually i.e. which class it is extending or method overriding?Please clarify this with example. ... View Questions/Answers

Interfaces  August 31, 2010 at 11:59 AM
two interfaces having same method names and these two interfaces are implemented by a single class. so now i would like to generate different code of same methods of different interfaces in single class? my query is, see below interface i1{void method1();}in... View Questions/Answers

org.apache.jasper.jasperexcxeption  August 31, 2010 at 9:48 AM
how to resolve org.apache.jasper.jasperexcxeption in jsp ... View Questions/Answers

adding background image  August 31, 2010 at 8:35 AM
how do i add background image to this code:import javax.swing.*;import java.awt.*;import java.awt.event.*;public class sampleProg extends JFrame { JButton button = new JButton ("Result"); JButton button2 = new JButton ("Clear... View Questions/Answers

JAVA  August 30, 2010 at 9:42 PM
how to compile the DNA Sequence Question and what are the the files should be created while compilingbecoz it is not compiling its makes the following line to be appearedwhile compilingD:\JAVA>javac SortFileData.javaNote: SortFileData.java uses unchecked or unsafe operatio... View Questions/Answers

Java help  August 30, 2010 at 8:25 PM
I need to write an application that uses the circle class. It must read a radius of a circle from the user creates a circle object, and return the object. The program creates a circle object by using the above method.The program passes the circle object to a static method that prints the circu... View Questions/Answers

Null pointer exception in hibernate  August 30, 2010 at 7:59 PM
Hii am getting null pointer exception.while running the program in hibernate at roseindia.tutorial.hibernate.FirstExample. i copied the total files from roseindia tutorial. the program is compiled successfully but while running the program i am getting null ponter exception. SessionFact... View Questions/Answers

java multi thread  August 30, 2010 at 7:11 PM
Develop multi-threaded echo server and a corresponding GUI client in Java.please immediately reply me sir.its very urgent sir. ... View Questions/Answers

How to display data in form using aryylist in struts  August 30, 2010 at 1:38 PM
Hi,I want to display data using arraylist in struts pls help meIts urgent ... View Questions/Answers

sql exception  August 30, 2010 at 10:54 AM
Dear sir , I am working in a web-based project, In my system it is working fine but at client side getting the following exception so how to resolve this help me...java.sql.SQLException: ORA-28231: no data passed to obfuscation toolkit ORA-06512: at "SYS.DBMS_OBFUSCATIO... View Questions/Answers

java  August 30, 2010 at 10:44 AM
6. Write a Java program to read a file that contains DNA sequences of arbitrary lengthone per line (note that each DNA sequence is just a String). Your program shouldsort the sequences in descending order with respect to the number of 'TATA'subsequences present. Finally write the s... View Questions/Answers

Design pattern  August 30, 2010 at 8:19 AM
How to make a java program to check the java program is already started if started the execution then dont allow the new program to start ... View Questions/Answers

struts imagelink  August 30, 2010 at 12:38 AM
i need one dropdown menu in that i have to select imageAND i need one button when i clicks on that image will be open. ... View Questions/Answers

java to oracle code  August 29, 2010 at 11:22 PM
please suggest m calculate the database performance between scaled images and unscaled images in the database ... View Questions/Answers

JAVA  August 29, 2010 at 7:19 PM
Write a Java program to read a file that contains DNA sequences of arbitrary length one per line ... View Questions/Answers

j2me database  August 29, 2010 at 3:33 PM
hi can anyone tell is there any possibility of connecting database in j2me application..if so, how can i connect it..please help me.. ... View Questions/Answers

J2me Fonts  August 29, 2010 at 3:32 PM
hi ,i am doing my project in j2me..english to tamil dictionary is my title..i dont know how to integrate tamil fonts in j2me application..can anyone help me..i am in need of this idea very soon..please reply as soon as possible.. ... View Questions/Answers

JAVA  August 29, 2010 at 2:00 PM
1.Develop a template for linked-list class along with its methods in Java.2. Design a thread-safe implementation of Queue class. Write a multi-threadedproducer-consumer application that uses this Queue class.3. Write a multi-threaded Java program to print all numbers below 100,000 ... View Questions/Answers

JAVA  August 29, 2010 at 2:00 PM
1.Develop a template for linked-list class along with its methods in Java.2. Design a thread-safe implementation of Queue class. Write a multi-threadedproducer-consumer application that uses this Queue class.3. Write a multi-threaded Java program to print all numbers below 100,000 ... View Questions/Answers

Text To speech exception  August 29, 2010 at 1:35 PM
Sir/Madam,I want to create a application for text to speech.I am using Sysnthesizer class of speech package but it return null.Can you help me to create that.i am facing error in synth.allocate() line.import javax.speech.*;import javax.speech.syn... View Questions/Answers

java abstract class  August 28, 2010 at 6:20 PM
how to save and run abstract class program in java?please immediately reply sir. ... View Questions/Answers

java  August 28, 2010 at 1:38 PM
give me the introduction and purpose of "RANDOM PASSWORD GENERATION" and how it works ... View Questions/Answers

Email Validation code  August 28, 2010 at 12:41 PM
Can anybody tell me how to write email validation code using java ... View Questions/Answers

need to ans abt db  August 27, 2010 at 7:31 PM
helllo can you tell me m just starting to knowing abt servlet and i trying to making e-mail site so can you tell me with the java servlet wht is the backhand database to use to proper with that site with the using java servlet..whts the comfortable database is using with servlet page.. ... View Questions/Answers

Jsp Code  August 27, 2010 at 5:53 PM
Hi,I am new to java programming & as per the requirement, i need to implement a 'SEARCH' functionality which will search the database & should display a unique record.The design contains the 4 input boxes & it should satisfy at least one or two or three or all inp... View Questions/Answers

error for getting the data from an api using br.readLine  August 27, 2010 at 4:35 PM
hithe application is hanging while reading the data using readLine() function . actually the data is coming from remote using particular api call see the following code. StringBuilder sb = new StringBuilder(); String strtemp; Runtime runtime = Runtime.g... View Questions/Answers

DMCA.com