Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

without ;  March 30, 2011 at 8:59 PM
can u give me an example of a program without ;?? ... View Questions/Answers

without ;  March 30, 2011 at 8:59 PM
can u give me an example of a program without ;?? ... View Questions/Answers

what is wrong in this program  March 30, 2011 at 7:06 PM
import java.io.*; class Distance { int feet; int inch; void read(int feet, int inch) { System.out.println("Enter distance in feet and inches "); feet=Integer.parseInt(ob.readLine()); inch=Integer.parseInt(ob.readLine()); } void distanceDisplay() { System.out.println(... View Questions/Answers

Advertisement

Java table & list  March 30, 2011 at 6:47 PM
I am taking string elements from user in list, And I want those list elements to be added to table row one by one, The jTable & list are at different classes but under same package. How to do so? Please Help me.. ... View Questions/Answers

how to fetch values from .properties to a html file  March 30, 2011 at 5:23 PM
I have a .properties file with some key value pairs in it. I need to fetch the values from this .properties file into a html file.Please let me know how to do it. ... View Questions/Answers

what is wrong with this program  March 30, 2011 at 3:55 PM
import java.io.*; class Distance { int feet,inch; void read() { System.out.println("Enter distance in feet and inches "); feet=Integer.parseInt(ob.readLine()); inch=Integer.parseInt(ob.readLine()); } void add(int d1,int d2) { int f,i; feet=d1+d2; inch=d1+d2; ... View Questions/Answers

WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java  March 30, 2011 at 3:53 PM
WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java ... View Questions/Answers

WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java  March 30, 2011 at 3:53 PM
WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java ... View Questions/Answers

WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java  March 30, 2011 at 3:52 PM
WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java ... View Questions/Answers

Struts 2  March 30, 2011 at 3:14 PM
we can extend DispatchAction class to implement a common session validation in struts 1.x. how to do the same in the struts2...? ... View Questions/Answers

Spcl programs  March 30, 2011 at 2:36 PM
how to create a good alphabet virus program in Bluej environment???????? ... View Questions/Answers

hi  March 30, 2011 at 2:03 PM
I have connected mysql with jsp in linux and i have used JDBC connectivity but when i run the program, its not working the program is displaying . ... View Questions/Answers

getting the emplo  March 30, 2011 at 1:57 PM
I have one table "EMPLOYEEMASTER" contains 'emp id', 'employee name' for eg: emp id employee name ---- ------- 1 anil 2 kumar i want the sql statement for getting like <... View Questions/Answers

JFrame  March 30, 2011 at 1:47 PM
Hi, I have JFrames in my application and i'm developing application using NetBeans IDE 6.5. I have many jframes. Whenver i click a menu in main JFrames many windows gets open. But i want all JFrames to open within Main Jframe. How can i do it. Please help me to do it. Or what els... View Questions/Answers

user in mysql  March 30, 2011 at 1:34 PM
how to create user in mysql? ... View Questions/Answers

Horizontal scroll bar?  March 30, 2011 at 1:13 PM
Hi all, I have a HTTP Servlet and in the doGet() function I need to output a lot of data to the HTML page adressed by the HttpServletResponse object. At this moment I am using a PrintWriter to achieve this. While the browser window automatically creates a vertical scroll bar, it d... View Questions/Answers

Spring mvc  March 30, 2011 at 12:12 PM
what is spring mvc ... View Questions/Answers

update database  March 30, 2011 at 11:47 AM
hi.. i want to know how the valuesof database can be updated in the jsf-jpa framework when the drop down button is clicked the data will be displayed in the data table and if some changes has to be made that can be done there then by pressing the update buutton the value can be updated t... View Questions/Answers

BackGroundImage  March 30, 2011 at 11:09 AM
Hi I am using NetBeans IDE for developing java application and using MySQL as backend. My problem is I have JFrame in NetBeansIDE in which i want to set BackGround Image to it. I tried to put it with label. But it doesn't stretch when i watch in PC with different sized monitor.... View Questions/Answers

how to retrieve the id value itself from the access database to drop down listbox in jsp  March 30, 2011 at 11:05 AM
how to retrieves the id which is an int datatype, from access database to drop down list box in jsp...plz send the code for that.....plz ... View Questions/Answers

JComboBox  March 30, 2011 at 10:12 AM
I am using NetBeans IDE for developing application. I have jcombobox on Jframe form of IDE. In which the values are to be loaded from MySql Database. My problem is that i want to load content of the jtable whenever i change the selected item in JComboBox. Thank you. ... View Questions/Answers

Ask java count  March 30, 2011 at 8:31 AM
Good morning, I have a case where there are tables sumborrowbook fieldnya: codebook, bookname, and sumborrowbook . I want to make the results: for example: | code book | name of book | sum | | b001 | Java 1 | 10 | ... View Questions/Answers

java tools  March 30, 2011 at 2:10 AM
what is the function of job tool and javadsc tool in java ... View Questions/Answers

Package in Applet  March 30, 2011 at 12:52 AM
How do I use this technique for applets? ... View Questions/Answers

simple pgm  March 29, 2011 at 10:10 PM
a java program which uses super class ... View Questions/Answers

Use varibles from another class  March 29, 2011 at 9:43 PM
**I have two classes. class 1:** public class askfigures extends JFrame { method from class1: public void button4ActionPerformed(ActionEvent e) {String n1 = textField1.getText(); int number = Integer.parseInt(n1); System.out.println("dsf") this.dispose(); Askvalues values... View Questions/Answers

How do you add a numerical value to a regex  March 29, 2011 at 8:37 PM
how do you add a numerical value in a regex. I want to replace my pics ex: bob.jpg susan.jpg mike.jpg with 1.jpg 2.jpg 3.jpg etc. Thanks ... View Questions/Answers

Underscore b/w consecutive capatalized words  March 29, 2011 at 8:10 PM
I have a text something like this "25km from N of Rio Negro" I want to add underscore between consecutive Capatalized words having space between them. Can some one give me the solution to it. regards YJS ... View Questions/Answers

Q, 12 WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java  March 29, 2011 at 7:22 PM
Q, 12 WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java ... View Questions/Answers

what is wrong in this program......  March 29, 2011 at 7:04 PM
program to implement given inheritance import java.io.*; class Student { int rno; String name; DataInputStream ob = new DataInputStream(System.in); void getRoll() { System.out.println("Enter Name:"); name=ob.readLine(); Syst... View Questions/Answers

sorting Line in c  March 29, 2011 at 6:23 PM
Hi I need help with sorting line in programming c asking user to enter 1-10 characters and then sort them in lower case, alphabetical and ascending order. Any help will be appreciated! please help! void sortLine(char* source) { char arr[10]; } ... View Questions/Answers

detect tap on uiimageview  March 29, 2011 at 6:00 PM
detect tap on uiimageview UIScrollView. Thanks! ... View Questions/Answers

saving files  March 29, 2011 at 5:59 PM
i want to create a program that would allows me to save my file and attach data on it ... View Questions/Answers

problem in database  March 29, 2011 at 5:59 PM
thanks for web site. I want change this code to insert data into PostgreSql database using jsp,servlets. but i getting output "Record has been inserted", 1.no data in the table(sample) public class ServletUser extends HttpServlet { try { Class.forN... View Questions/Answers

link border 0 css  March 29, 2011 at 4:56 PM
Hi, What will the css for making links border 0 in image? I am looking for example code for link border 0 css. Thanks ... View Questions/Answers

I am not getting Problem (RMI)  March 29, 2011 at 4:13 PM
When i am excuting RMI EXAMPLE 3,2 I am getting error daying nested exception and Connect Exception ... View Questions/Answers

two linked combobox  March 29, 2011 at 4:12 PM
give jsp example of two combo box when i select state in one combobox in second combo box cities will display according to state which i select ... View Questions/Answers

Upload Photo to Server  March 29, 2011 at 4:08 PM
Hi I am using NetBeans IDE for developing application for java(Swings). And i am using MySQL as backend database. My Problem is I have created JFrame form in NetBeans and i have inculded label in which i am loading photo. BufferedImage image=null;... View Questions/Answers

integers  March 29, 2011 at 3:50 PM
How do I get an integer from a text field in java? ... View Questions/Answers

Eclipse  March 29, 2011 at 3:02 PM
How to develope web application servlets or jsp using eclipse id ... View Questions/Answers

Demon thread  March 29, 2011 at 2:57 PM
What is demon thread? why we need Demon thread? ... View Questions/Answers

How to get more than one value from ajax  March 29, 2011 at 2:42 PM
I have multiple select list box in php. i filled the value using ajax. how to get different value to fill the same list box Ex. option value as id option name as some string ... View Questions/Answers

Fresher-Trainee  March 29, 2011 at 2:24 PM
a java program to calculate the area of different shapes using Multilevel Inheritance ... View Questions/Answers

how to print all colors using awt  March 29, 2011 at 2:17 PM
how to print all colors using awt ... View Questions/Answers

How to capture video and then how to store it in mobile memory  March 29, 2011 at 1:35 PM
Hello there, I'm developing a mobile application where i'm capturing video from mobile camera and uploading it to my own video portal.. I'm trying many codes but they are not working properly some of them capture video but doesn't allow me to store it in mobile memory. so plz tel me ow to... View Questions/Answers

Refresh JFrame  March 29, 2011 at 1:35 PM
How to refersh a JFrame and its componets ... View Questions/Answers

i need the source code to generate id in jsp  March 29, 2011 at 1:05 PM
hai,i need the source code for generate id...which is i need to generate the new id from the maximum+1,like automatically when i click the button...as well i have several kinds of generate ids each should have some range...plz give the source code in jsp with ms access connectivity ... View Questions/Answers

java  March 29, 2011 at 1:05 PM
convert class file into javafile ... View Questions/Answers

class file  March 29, 2011 at 1:04 PM
how to convert java classfile into java sourcefile ... View Questions/Answers

retrive the data from access database to drop down list box in jsp  March 29, 2011 at 12:58 PM
hai, im new to jsp now im using the jsp along with access database.in table i load all the data's i need to retrive the data from database to dropdown list box...plz any one help to me.. thanks in advance ... View Questions/Answers

type casting  March 29, 2011 at 12:50 PM
<--bean class-->method calllist is of object type List <Object> o=bss.totalList(i); <--service class--> public List (object type) <Object> totalList(int pi){ try{ Query q= em.createQuery("select p,c,b from Boo... View Questions/Answers

Java Programming Language  March 29, 2011 at 12:06 PM
Hi, For beginner which programming concepts is important? Discuss the importance of Java programming language. In the discussion please let's know how to use Java in developing web applications? Thanks ... View Questions/Answers

MySQL replace all non alphanumeric characters  March 29, 2011 at 11:59 AM
Hi, How to replace all non alphanumeric characters in MySQL? Thanks ... View Questions/Answers

Javascript  March 29, 2011 at 11:50 AM
Dear Sir, I want your help urgently.Can please give me the code for selection in the drodown.That means,in the dropdown of items,there are checkboxes woth each item.By which user can select as many items as he/she wants to purchase.After checking more than one items,he/she saves to databa... View Questions/Answers

Tooltip Alignment  March 29, 2011 at 11:46 AM
Dear Sir, I have a code given below,which gived tooltip design.But,in one table i am getting three students' information.On putting the mouse on the roll numbers of the students i can not get the right alignment of that tooltip as desired.The Div is seen in the other position other than n... View Questions/Answers

Java replace all non alphanumeric  March 29, 2011 at 11:31 AM
Hi, In Java how to replace all non alphanumeric characters with blank? Share me the best code for java replace all non alphanumeric. Thanks ... View Questions/Answers

list boxs  March 29, 2011 at 11:27 AM
i have two list boxes first list box values from database and i want to assign selected options to the second list box using jsp is it possible to do this in jsp? ... View Questions/Answers

file read  March 29, 2011 at 11:21 AM
hi i am reaing from a file which has punjabi words. can some one help with me some code ... View Questions/Answers

browser  March 29, 2011 at 11:03 AM
hello this is saurav srivastav, thank you for sending the cvode for creating the menu item, but I want the code for file open and save frame in the swing because I am working on my project Browser and one more problem is that when I entered the URL then some page open which made in java and the p... View Questions/Answers

Database Connectivity Withe Oracle  March 29, 2011 at 9:49 AM
Develop a program to perform the database driven operation like insert, Delete, Update and select. To perform the above operations create one table named Employee. Field Name Field Type EmpId Integer Empname Varchar Emp_desig Varchar EmpJDate Varchar Emp_Salary Numeric ... View Questions/Answers

Visual studio C#  March 29, 2011 at 7:24 AM
Create a class called Employee that includes three pieces of information as instance variables√Ę‚?¨‚??a first name (type string), a last name (type string) and a monthly salary (decimal). Your class should have a constructor that initializes the three values. Provide a property with a get and set... View Questions/Answers

How to create an area chart using jfreecharts?  March 29, 2011 at 2:27 AM
i want to create an area chart that represents ip addresses of top countries. i have gone thru the area chart example using jfreechart but i am still not clear with its method. If u please explain in detail what the reaminning statements means after populating dataset? Thank you in advanc... View Questions/Answers

why get method is used?  March 29, 2011 at 1:38 AM
why get method is used in 60% commercial application while using post is more secure? ... View Questions/Answers

Creating circle inside a circle  March 29, 2011 at 12:29 AM
hi can any one give code for following output by awt/swing creating circle inside a circle ,outside cirlce and intersect a circle ... View Questions/Answers

notepad  March 28, 2011 at 11:55 PM
i want java code for notepad. ... View Questions/Answers

syntax for create a table  March 28, 2011 at 11:51 PM
syntax for create a table ? ... View Questions/Answers

conert java code to jsp... plz imm i wan...  March 28, 2011 at 11:39 PM
how to convert this java code into jsp?? Java| Frameworks| Databases| Technology| Development| Build/Test tools| OS| Servers| PHP| Books| More| What's New? More Tutorials| Bioinformatics| Open Source| Photoshop| Questions? | Software Development Search iPhone Baby Nam... View Questions/Answers

Need Help on the script  March 28, 2011 at 11:08 PM
hello there, My name is Femi and am a web developer using php. am working on a project. and am having some difficulties. i dont know if you can help me out with it. The platform am building will receive a text message and the format of the text message is "shoe, 40, bag, 5, tea,1" without... View Questions/Answers

java query  March 28, 2011 at 9:30 PM
what is the alternative of fflush(stdin) in java? ... View Questions/Answers

xml  March 28, 2011 at 9:22 PM
how to creatte html file and validate using java and finally i need get web.xml file ... View Questions/Answers

Retrieval data from database against timer  March 28, 2011 at 6:10 PM
Please send me a sample timer code which retrieve data from the database against timer in JSP. ... View Questions/Answers

write a program to evaluate the following investment equation make use of wrapper class v=p(1+r)rest to n  March 28, 2011 at 5:58 PM
write a program to evaluate the following investment equation make use of wrapper class v=p(1+r)rest to n ... View Questions/Answers

write a program to demonstrate wrapper class and its methods......  March 28, 2011 at 5:56 PM
write a program to demonstrate wrapper class and its methods...... ... View Questions/Answers

write a program to demonstrate call by value and call by reference.(pass objects as parameters)  March 28, 2011 at 5:53 PM
write a program to demonstrate call by value and call by reference.(pass objects as parameters) ... View Questions/Answers

sql  March 28, 2011 at 5:04 PM
write a query to select emplname from employees where lname of employees should be equal ... View Questions/Answers

Write a program to print using for loop  March 28, 2011 at 4:46 PM
Write a program to print using for loop * * * * ... View Questions/Answers

to jsp combobox exmple  March 28, 2011 at 4:15 PM
to jsp combobox exmple ... View Questions/Answers

how to refresh my GUI page  March 28, 2011 at 4:05 PM
how to refresh a GUI in java? ... View Questions/Answers

unable to import class com.opensymphony.xwork2.ActionContext not found  March 28, 2011 at 2:24 PM
Imported class com.opensymphony.xwork2.ActionContext not found gettin the above error, ... View Questions/Answers

com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Communications link failure due to underlying exception  March 28, 2011 at 1:20 PM
Hi, In my application following error is coming: com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Communications link failure due to underlying exception: Tell me how to solve this problem? Thanks ... View Questions/Answers

browser  March 28, 2011 at 1:14 PM
how to add menu items in the menu in java swing through java coding ... View Questions/Answers

how to connect client to server using Sockets  March 28, 2011 at 12:47 PM
how to connect client to server using Sockets ... View Questions/Answers

How to write a rsa algorithm using thread  March 28, 2011 at 12:43 PM
Hi... This my **rsa algorithm sequential code..can u anyone plz change/convert to concurrent java or parallel this code.. print("code sample"); import java.security.KeyPairGenerator; import java.security.KeyPair;... View Questions/Answers

Finding MAX value from emp_id column using SQL query?  March 28, 2011 at 12:26 PM
I need to select maximum of the Emp_id values from SQL server 2005 table.I was using the command which selects max value till 10 but after that it fails to pick max value of emp id from the table.(Actually it picks up Max value using by looking at 1st digit only,so till 9 its fine, but after that... View Questions/Answers

Frame query  March 28, 2011 at 11:58 AM
Hi, I am working on Images in java. I have two JFrame displaying same image. We shall call it outerFrame and innerFrame.In innerFrame i am rotating the image.After all the rotations i need to display this image on outerFrame. Can you please help me. ... View Questions/Answers

Total Hours Calculation.  March 28, 2011 at 11:30 AM
Hi,How to calculate the total hours by startime and endtime.not railway time just only normal time.please help. Thanks. ... View Questions/Answers

ADT ,data structure (ArrayList), sorting  March 28, 2011 at 11:27 AM
Write a program to calculate a bonus for 10 employees of WAFA Supermarket. The program consists of an abstract class Employee. Each employee contains IC number, name, basicSalary, noOfYearService, set methods for each attributes and an abstract method calculateBonus(). Cashier and Supervisor are ... View Questions/Answers

Developer discussion forums  March 28, 2011 at 11:08 AM
Hi, What is discussion forums? Is there any good forum for discussion programming technologies? Thanks ... View Questions/Answers

answer this qs in 5 mins plss  March 28, 2011 at 10:30 AM
Create an Web Application, which allows a user to search a book as follows: Based on ISBN code, if he is aware of the code (or) Based on the Book Categories The results of the search has to be displayed in a new Web page. If no books are available appropriate message shou... View Questions/Answers

JAVA TOTAL LOST DATA IN HARD DRIVE  March 28, 2011 at 9:45 AM
please help me, i need java source code about total lost data in hard drive. how to find the total deleted data ih hard drive using java programming... this my project...pls help me.. ... View Questions/Answers

java total lost data in hard drive  March 28, 2011 at 9:38 AM
please help me, i need java source code about total lost data in hard drive. how to find the total deleted data ih hard drive using java programming... this my project...pls help me.. ... View Questions/Answers

java total lost data in hard drive  March 28, 2011 at 9:38 AM
please help me, i need java source code about total lost data in hard drive. how to find the total deleted data ih hard drive using java programming... this my project...pls help me.. ... View Questions/Answers

java total lost data in hard drive  March 28, 2011 at 9:38 AM
please help me, i need java source code about total lost data in hard drive. how to find the total deleted data ih hard drive using java programming... this my project...pls help me.. ... View Questions/Answers

hi.. please give me a java coding for the following question  March 28, 2011 at 9:20 AM
Write a function called ChangeToNext that take in an uppercase character parameter ch. The function returns the next uppercase character if ch is between 'A' and 'Y'. If ch == 'Z', the function returns 'A'. You may assume that the character parameter ch is always an uppercase alphabetic character... View Questions/Answers

hi.. please give me a java coding for the following question  March 28, 2011 at 9:20 AM
Write a class that contains the following two methods: /* converts from inches to centimeters */ Public static double inchToCentimeter(double in) /* converts from centimeters to inches */ Public static double CentimetertoInches (double cm) The formula for the conversion is... View Questions/Answers

hi.. please give me a java coding for the following question  March 28, 2011 at 9:19 AM
Write a program that prompts the user to enter the number of students and each student‚??s name and score, and finally displays the name of the students with the highest score. ... View Questions/Answers

hi.. please give me a java coding for the following question  March 28, 2011 at 9:18 AM
Suppose that the tuition for a university is RM10,000 this year and increases 5% every year. Write a program that computes the tuition in ten years and the total cost of four years‚?? worth of tuition starting ten years from now. ... View Questions/Answers

hi.. please give me a java coding for the following question  March 28, 2011 at 9:18 AM
Write a program that displays the following table (note that 1 mile is 1.609 kilometers). Miles Kilometers 1.609 3.218 ‚?¶‚?¶‚?¶. 10 ... View Questions/Answers

hi.. please give me a java coding for the following question  March 28, 2011 at 9:17 AM
Body Mass Index(BMI) is a measure of health on weight. It can be calculated by taking your weight in kilograms and dividing by the square of your height in meters. The interpretation of BMI for people 16 years or older is as follows: BMI Interpretation Bel... View Questions/Answers

hi.. please give me a java coding for the following question  March 28, 2011 at 9:16 AM
Write a program that reads in investment amount, annual interest rate, and number of years, and displays the future investment value using the following formula: futureInvestmentvalue = investmentAmount x (1 + monthlyInterestRate)numberOfyears *12 ... View Questions/Answers

DMCA.com