Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Pie chart Jfree create error  November 28, 2011 at 7:17 PM
hi........... thanks 4 ur help but when i am using the code which has a import file import org.jfree.chart.*; its giving me an error that " package org.jfree.chart does not exists " can u help me to resolve this problem????////// i am using jdk1.5 to run th... View Questions/Answers

Ajax example  November 28, 2011 at 6:47 PM
Java and Ajax examples. ... View Questions/Answers

Java Sorting  November 28, 2011 at 3:47 PM
Could somebody help me with this question. Implement a program to process votes for 5 candidates in a talent contest. The program should use a String array to hold the names of the 5 candidates and an integer array to record the number of votes for each contestant. ... View Questions/Answers

Advertisement

Regarding Image in Swings  November 28, 2011 at 3:25 PM
Hi, I have some requireemnt like when i click on the button in frame,it wil display the image.....plz do the needful............. ... View Questions/Answers

Ask make graph from i report and view to java Language Programming  November 28, 2011 at 2:39 PM
Dear sir, Please help me, i want to make a graph from mysql to i report and view to java. Please help me, give me example source code please. thank you. regards, hendra ... View Questions/Answers

simple team leader  November 28, 2011 at 1:30 PM
Could you please help me to write a program for a simple team leader? ... View Questions/Answers

core java  November 28, 2011 at 1:07 PM
difference between abstractclass and interface ... View Questions/Answers

Java/PHP Developer  November 28, 2011 at 11:10 AM
Hello sir, Am working on playing audio file in jframe and im not able to import javax.media into the code.. the code is as follows.. import javax.swing.*; import javax.media.*; import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; ... View Questions/Answers

About search and replace contains of .doc or .docx file using java.  November 28, 2011 at 10:41 AM
Hi , I am trying to replace contents of ms.word document in .doc or .docx format but I am unable to do it. For example word document contains name [CutomerName] Address [Cs_add] This is my template file. I want to replace CustomerName and Cs_add ... View Questions/Answers

How to put multiple predictions for one zodiac sign, Java Horoscope!  November 28, 2011 at 10:02 AM
Hey! I am doing a horoscope program and I want to put few different options for predictions that the program would tell? EXAMPLE: If I put 30.8 the program would choose: Your zodiac sign is Virgo. You're going to be lucky tomorrow OR Your zodiac sign is Virgo. Next Monday will be very romantic?... View Questions/Answers

call json object using url and represent in html tabular form  November 28, 2011 at 12:42 AM
how to call json object using url from html and represent in proper format it gives Json object after that i want to arrange the keys-values in table ... View Questions/Answers

call json object using url and represent in html tabular form  November 28, 2011 at 12:42 AM
how to call json object using url from html and represent in proper format it gives Json object after that i want to arrange the keys-values in table ... View Questions/Answers

please tell me  November 27, 2011 at 9:09 PM
class Producer extends Thread { StringBuffer sb; boolean dataprodover = false; Producer(){ sb = new StringBuffer(); } public void run(){ synchronized(sb){ for(int i=1;i<=10;i++){ try{ sb.append(i+":"); Thread.sleep(100); System.out.println("appending"); }catch(Exception e){} } sb.n... View Questions/Answers

please eslain me the flow of execution of this program  November 27, 2011 at 8:47 PM
class Producer extends Thread { StringBuffer sb; boolean dataprodover = false; Producer(){ sb = new StringBuffer(); } public void run(){ for(int i=1;i<=10;i++){ try{ sb.append(i+":"); Thread.sleep(100); System.out.println("appending"); }catch(InterruptedException ie){} } dataprodover=t... View Questions/Answers

Java Programming  November 27, 2011 at 8:40 PM
A developer wants you to develop a simple take away restaurant order service. The system reads from a file containing information about the restaurants (such as the name, place and menu). The system then allows the user to login into the system. Once the user is successfully login, a user is able... View Questions/Answers

B+ trees search  November 27, 2011 at 6:34 PM
Can anyone send the code for implementing the B+ trees searching on a oracle database? please your answer will be useful for my project. ... View Questions/Answers

B+ trees search  November 27, 2011 at 6:34 PM
Can anyone send the code for implementing the B+ trees searching on a oracle database? please your answer will be useful for my project. ... View Questions/Answers

C++  November 27, 2011 at 5:40 PM
write a prgrm tht gets five values,gets the sum,average & the product. ... View Questions/Answers

please explain me the flow of this program  November 27, 2011 at 4:03 PM
class Bticket extends Thread { Object train,comp; Bticket(Object train,Object comp){ this.train=train; this.comp=comp; } public void run(){ synchronized(train){ System.out.println("bookticket locked on train"); try{ Thread.sleep(200);} catch(Interrupted... View Questions/Answers

plese expalin the flow of this program  November 27, 2011 at 3:23 PM
class Bticket extends Thread { Object train,comp; Bticket(Object train,Object comp){ this.train=train; this.comp=comp; } public void run(){ synchronized(train){ System.out.println("bookticket locked on train"); try{ Thread.sleep(150);} catch(Interrupted... View Questions/Answers

java code to create xml document from DOM object  November 27, 2011 at 12:42 PM
Hey! After knowing the way we can create DOM objects and add elements to it-> then displaying it on the console ;is there a way I can output the same in xml document ? ... View Questions/Answers

explanation  November 27, 2011 at 11:20 AM
public int compareTo(Object Student) throws ClassCastException { if (!(Student instanceof StudentMarks)) throw new ClassCastException("Not a Student!"); int mark = ((StudentMarks) Student).getMarks(); ret... View Questions/Answers

Interface  November 27, 2011 at 3:19 AM
I need to implement the interface without overriding its method and also don't use abstract class for this. How to do this....? ... View Questions/Answers

Assigning seats on an airplane  November 27, 2011 at 3:16 AM
Hi How to write a java program (using swing classes) to assign seats on an airplane .Assume the airplane has 20 seats in first class(5 rows of 4 seats each, seperated by an aisle), and 180 seats in economy class(30 rows of 6 seats each, seperated by an aisle) ... View Questions/Answers

Create pie chart  November 26, 2011 at 11:35 PM
hi............. In my project i want to create a pie chart to display the result. i require a very simple code in java swings were i can edit the code and put my values... so plz help me ???????????????????? ... View Questions/Answers

Create Bar graph  November 26, 2011 at 11:34 PM
hi............. In my project i want to create a BAR GRAPH to display the result. I HAVE certain values that want to show in graph form. Can u help me plzzzzzzz i require a very simple code in java swings were i can edit the code and put my values... i have seen some codes... View Questions/Answers

JDialog  November 26, 2011 at 7:22 PM
hi ... please help me in creatin a JDialog box that contains two buttons of minimization and exit with simple code and comments ...? ... View Questions/Answers

creating JD ialog  November 26, 2011 at 7:03 PM
hi ... please help me in creatin a JDialog box that contains two buttons of minimization and exit ...? ... View Questions/Answers

pls tell me the difference between the run() and start() in threads in java....  November 26, 2011 at 6:49 PM
difference between the run() and start() in threads in java.... ... View Questions/Answers

Java: Some problems in given condition  November 26, 2011 at 4:35 PM
SIR, I want to get the values from the table( database), if any one of the column of the table value is 0. Then one alert should b printed in application using Java. If(att.getdata1()==0||att.getdata2()==0) If I use this code in Java.I am facing NullPointerException. Can You Help... View Questions/Answers

encryption and decryption  November 26, 2011 at 3:38 PM
how to encrypt and decrypt data in text file?? ... View Questions/Answers

looping programm of sum  November 26, 2011 at 3:30 PM
s=1+2/12+1+2+3/12*3+1+2+3+..... n ... View Questions/Answers

c++  November 26, 2011 at 2:29 PM
use a prgrm as an example to xplain-: a)class b)object c)message d)cope resolution operator. ... View Questions/Answers

c++  November 26, 2011 at 2:28 PM
differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples. ... View Questions/Answers

c++  November 26, 2011 at 2:28 PM
differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples. ... View Questions/Answers

c++  November 26, 2011 at 2:27 PM
write a prgrm tht accepts 3 integer values,then with a function to swap the values ... View Questions/Answers

c++  November 26, 2011 at 2:26 PM
.write a prgrm tht accepts 5 subjects of a student,it shld hv a function to calculate the average & another function to grade.grade shld be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70=A. ... View Questions/Answers

c++  November 26, 2011 at 2:25 PM
write a prgrm tht calculates the surface area of a cylinder.the prgrm shld find the circumfrance and have a function that calculates the fadius and another to calculate the surface area. ... View Questions/Answers

C++  November 26, 2011 at 2:20 PM
I have been asked to write a programme that gets five values,gets the sum,average and product please help me on this. ... View Questions/Answers

c++  November 26, 2011 at 2:08 PM
write a programme that calculates the area and circumference of a rectangle ... View Questions/Answers

looping  November 26, 2011 at 12:16 PM
s=1+2/12 + 1+2+3/123 + 1+2+3.....n/12*3.....n ... View Questions/Answers

c++  November 26, 2011 at 12:06 PM
write a programme that calculates the area and circumference of a rectangle ... View Questions/Answers

about .net coding  November 26, 2011 at 10:54 AM
please suggest me the code used for viewing a page in .net language ... View Questions/Answers

looping  November 26, 2011 at 10:46 AM
sum of the series s=1+2/1*2 ... View Questions/Answers

please tell me  November 25, 2011 at 10:40 PM
class Reserve extends Thread{ int available=1; int wanted; Reserve(int i){ wanted = i; } public static void run(){ System.out.println("available berths = "+ available); if(available>=wanted){ String name=Thread.currentThread().getName(); System.out.println(... View Questions/Answers

get from address using javamail api?  November 25, 2011 at 8:54 PM
i want to get from address of particular mail using the javamail api? actually i had done it in one .jsp file using the particular mail number. message[messageno].getFrom()[0] in DisplayMessage.jsp but when i click on reply and pass that message no to composereplymail.jsp using the javascript, m ... View Questions/Answers

validationrule for date as format yyyy-mm-dd in drools  November 25, 2011 at 8:41 PM
Please give idea about this one..I have two textfield. User can select the date from calender or he can write the text to it.. when user enetr text we have to follow format yyyy-mm-dd: How i write the validation rule for date as a format yyyy-mm-dd. Please give sample code for this one. Its ur... View Questions/Answers

please tell me  November 25, 2011 at 11:55 AM
import java.lang.Thread; class Current{ public static void main(String ar[]){ Thread t = Thread.CurrentThread(); System.out.println("current thread"+t); System.out.println("thread name"+t.getName()); } } i got error as Current.java:7: cannot find symbol symbol : method C... View Questions/Answers

Window Blind  November 25, 2011 at 11:16 AM
Custom built . Over 30 years of shutter experience. Free in-home consultations. ... View Questions/Answers

Open source forum software in Java/Spring  November 25, 2011 at 10:56 AM
Open source forum software in Java/Spring... View Questions/Answers

resolution for prog  November 24, 2011 at 10:13 PM
import java.lang.*; class Current{ public static void main(String ar[]){ Thread t = Thread.CurrentThread(); System.out.println("current thread"+t); System.out.println("thread name"+t.getName()); } } i got error as Current.java:6: cannot find symbol symbol : method Current... View Questions/Answers

fresher  November 24, 2011 at 8:58 PM
By placing cursor on the text link it has to display information in alert box or in popup box.. in my project when user put on faredetails..it wii display faredetails box in details,(base fare,tax,govt tax and total)in popup window..if he removes cursor from fare it will disable the box... <... View Questions/Answers

fresher  November 24, 2011 at 8:58 PM
By placing cursor on the text link it has to display information in alert box or in popup box.. in my project when user put on faredetails..it wii display faredetails box in details,(base fare,tax,govt tax and total)in popup window..if he removes cursor from fare it will disable the box... <... View Questions/Answers

fresher  November 24, 2011 at 8:58 PM
By placing cursor on the text link it has to display information in alert box or in popup box.. in my project when user put on faredetails..it wii display faredetails box in details,(base fare,tax,govt tax and total)in popup window..if he removes cursor from fare it will disable the box... <... View Questions/Answers

fresher  November 24, 2011 at 8:58 PM
By placing cursor on the text link it has to display information in alert box or in popup box.. in my project when user put on faredetails..it wii display faredetails box in details,(base fare,tax,govt tax and total)in popup window..if he removes cursor from fare it will disable the box... <... View Questions/Answers

fresher  November 24, 2011 at 8:58 PM
By placing cursor on the text link it has to display information in alert box or in popup box.. in my project when user put on faredetails..it wii display faredetails box in details,(base fare,tax,govt tax and total)in popup window..if he removes cursor from fare it will disable the box... <... View Questions/Answers

fresher  November 24, 2011 at 8:58 PM
By placing cursor on the text link it has to display information in alert box or in popup box.. in my project when user put on faredetails..it wii display faredetails box in details,(base fare,tax,govt tax and total)in popup window..if he removes cursor from fare it will disable the box... <... View Questions/Answers

java  November 24, 2011 at 8:37 PM
You've been asked to write a program that records a student's grades and calculates the average grade and the GPA. All input and output should take place on the console. To calculate the GPA, you will need to record the final grade and the credit value for each course the student has taken in the... View Questions/Answers

struts form reset  November 24, 2011 at 5:11 PM
thing is my button s working fine for first time when i run application.But in the second time it s not working (instead it takes value which i hav selected 1st time) Guys.im struck on this for past 2 days. so pls waiting for ur replies ... View Questions/Answers

system ordering food  November 24, 2011 at 4:02 PM
a developer want to develop a simple take away restaurant order service using java.The system read from a file containing information about the restaurants(such as the name,place and menu).The system then allows the user to login into the system. Once the user is successfully login,a user is able... View Questions/Answers

delete app from iphone  November 24, 2011 at 3:57 PM
How to delete an existing app from itunes? ... View Questions/Answers

dialog box size allignment  November 24, 2011 at 2:32 PM
actually i have 1 button,when clicked on it has to show dialog box containing 14 rows and 3 columns(jtextfield and jlables). i added action listener.is it working fine.but when i resized the dialog box only i am able to view the 14 rows and 3 columns of data.with out resizing how can i view the ... View Questions/Answers

asp.net calendar control  November 24, 2011 at 12:23 PM
I have used 2 text box to display calendar control... one is fromdate and another is todate... In database also fromdate and todate is displayed.... I want only fromdate and todate should be open... ie If user enters from date then next day todate should be closed.. How we can do ... View Questions/Answers

shapes  November 24, 2011 at 12:17 PM
hi pliz help me put a shape in this code such that when the answer is equal and right it shuld change the color of the background and puts a shape. pliz help its urgent import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; im... View Questions/Answers

java program for string tokenzing and parsing  November 24, 2011 at 11:45 AM
String s="height=128 weight=22 gender=male"; i need to convert this into height="128" weight="22" gender="male" normally if we print "hello" means we use System.out.println("\"Hello\" "); But how to add double quotes? ... View Questions/Answers

java program for string tokenzing and parsing  November 24, 2011 at 11:22 AM
String s="height=128 weight=22 gender=male"; i need to convert this into height="128" weight="22" gender="male" normally if we print "hello" means we use System.out.println("\"Hello\" "); But how to add double quotes? ... View Questions/Answers

database data in xml format  November 24, 2011 at 11:03 AM
HI, i want to display the database data in the xml format(not as xml file ) on the console using DOM. help will be appreciated. THANKS K.K ... View Questions/Answers

Java RMI and Threading  November 24, 2011 at 10:36 AM
Hi, We are using threading and RMI in my application. Its a continuously runing application and run it as service, We are reading some packet from the server. The issues are, 1. But some data are missing while running this. 2. When we compare string values with hashtable values it is not... View Questions/Answers

Palindromic Prime Numbers  November 24, 2011 at 3:08 AM
Write a program that finds the first palindromic prime number above 100,000. Include the value of this prime in a comment at the start of the code. ... View Questions/Answers

Create Dynamic Table using Hubernate  November 23, 2011 at 8:05 PM
Thank's for reading my Post. I am new to hibernate.all i need some clarification and explaination. Problem 1: How to create seperate table for all users they sign up for my web app. i need to create 2 table's 1.User Details - Store user mail address,username,password,etc. 2.Media - A... View Questions/Answers

odbc MS EXCEL  November 23, 2011 at 7:38 PM
hey my whole database is stored in MS Excel. so please tell me that can we connect to that database. if yes, how to do that. please help me out i am doing it in netbeans can please tell me the steps. ... View Questions/Answers

test cases problem  November 23, 2011 at 5:46 PM
what to write in the testing phase of my project. My project is a JSP project that generate graphs from the student marks in the database using jfreechart library. i have used apache tomcat and netbeans IDE 6.7.1..please help me with the test cases that could be made out of it. ... View Questions/Answers

Java/PHP Developer  November 23, 2011 at 5:12 PM
Hi, can u help me to embedd time on java frame and it should be independent of operating system time..if we change system time it should'nt be changed.. Thank you sir.. ... View Questions/Answers

Entity Relationship Diagram 3  November 23, 2011 at 4:34 PM
Task 3 Activities: Identify all entities and attributes from the given scenario. Draw entity relationship diagram of the given from scenario. Determine primary key and foreign keys from given scenario. Scenario: The University i... View Questions/Answers

how can download mobile explorer emulator  November 23, 2011 at 4:19 PM
how can download mobile explorer emulator? ... View Questions/Answers

Entity Relationship Diagram  November 23, 2011 at 3:58 PM
Draw only entity relationship diagrams for the following scenario. Include any attributes you think should be represented. . Each engineer works on a number of projects. For every engineer a record is kept of his number, name title and salary. . For every project a record is kept ... View Questions/Answers

Entity Relationship  November 23, 2011 at 3:50 PM
Draw entity relationship diagram for the following scenario. A university has many departments whereas each department belongs to that particular uni.That uni has also many buildings whereas each building belongs to that particular uni . The uni has also many employees whereas each emplo... View Questions/Answers

form validation  November 23, 2011 at 3:47 PM
<form name="form" method="post" action="process.php" onsubmit="return validate(); "> <table align="center" border="1px" bgcolor="orange" > <tr><td>username:</td><td><input type="text" name="username" /><... View Questions/Answers

invoking exe files on sound  November 23, 2011 at 3:39 PM
how to invoke .exe files on input as sound in java? ... View Questions/Answers

java  November 23, 2011 at 3:24 PM
Class A{ { Class B extends A{ m1(); class c extends B{ m2(); } B b1 = new c(); b1.m1(); b1.m2(); Will this code compile? if not what is the error? ... View Questions/Answers

Java/PHP Developer  November 23, 2011 at 3:07 PM
Hi, I need a cloak embedded in java swing frame or panel..And it should not change when system time is changed ..please ... View Questions/Answers

how to connect SQL Server 2005 using php  November 23, 2011 at 2:02 PM
i need to connect SQL Server 2005 using php. how can i connect . how to use mssql_connect function? ... View Questions/Answers

login page with mysql using jsp  November 23, 2011 at 12:15 PM
pls i need a sample of login page to check username and password in mysql database. thanks ... View Questions/Answers

php loging form connecitivity with mysql  November 23, 2011 at 10:16 AM
my loging form is not connect ... View Questions/Answers

JAVA Compiliation  November 23, 2011 at 3:21 AM
How do I code and compile in the areas that say "IMPLEMENT ME"? import java.util.Scanner; import java.util.Stack; class EvalException extends Exception{ public EvalException(String msg) { super(msg); } interface Expr { ... View Questions/Answers

what is the difference between annonationa xml anf xml file  November 22, 2011 at 9:21 PM
what is the difference between annonationa xml anf xml file? ... View Questions/Answers

what is the difference between annonationa xml anf xml file  November 22, 2011 at 9:18 PM
what is the difference between annonationa xml anf xml file... View Questions/Answers

method inside the method??  November 22, 2011 at 8:06 PM
can't we declare a method inside a method in java?? for eg: public class One { public static void main(String[] args) { One obj=new One(); One.add(); private static void add() { System.out.println("hiii..."); } } } ... View Questions/Answers

prog. using radio buttons for simple calculator  November 22, 2011 at 6:39 PM
import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; class Calculator extends JFrame { private final Font BIGGER_FONT = new Font("monspaced", Font.PLAIN, 20); private JTextField textfield; private boolean number = true; pr... View Questions/Answers

prog. using radio buttons for simple calculator  November 22, 2011 at 6:34 PM
import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; class Calculator extends JFrame { private final Font BIGGER_FONT = new Font("monspaced", Font.PLAIN, 20); private JTextField textfield; private boolean number = true; pr... View Questions/Answers

uiactionsheet in iphone  November 22, 2011 at 5:32 PM
Dynamically adding action sheet to UIViewController. ... View Questions/Answers

Jmagick  November 22, 2011 at 4:18 PM
can any one help me out ...how to use jmagick with servlets and jsp and its installation process also............ its very urgent....... thanx ina adv... ... View Questions/Answers

how to reduce width of jbutton ?  November 22, 2011 at 3:10 PM
how to reduce width of jbutton ? thanks in advancwe ... View Questions/Answers

print numbers  November 22, 2011 at 12:41 PM
1234 123 12 1234 ... View Questions/Answers

How to insert dynamic textbox values into database using Java?  November 22, 2011 at 11:52 AM
Hi I am trying to insert dynamic textbox values to database, my jsp form have 2 textboxes...Name, Address with an add button, if you click add button new set of dynamic textboxes with Name and Address will display....Now I want to Insert these dynamic textbox values to database(Oracle 11... View Questions/Answers

Java/PHP Developer  November 22, 2011 at 10:54 AM
Hi, how to create radio buttons on one pannel and should change when pressed ok... can u help me htrough this sooner... THANK U... ... View Questions/Answers

measuring Qos parameters  November 22, 2011 at 3:16 AM
Hi, is there a tool for measuring the quality of service (Qos) of an web services. Thanks. ... View Questions/Answers

measuring Qos parameters  November 22, 2011 at 3:15 AM
Hi, is there a tool for measuring the quality of service (Qos) of an web services. Thanks. ... View Questions/Answers

php mysql  November 21, 2011 at 11:46 PM
automatically insert a value in the month field at the last date of current month in mysql database. ... View Questions/Answers

php mysql  November 21, 2011 at 11:46 PM
automatically insert a value in the month field at the last date of current month in mysql database. ... View Questions/Answers

DMCA.com