Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

java  March 6, 2011 at 1:22 PM
Write a Java program that prompts the user to enter an integer through the command line interface. The program will then compare the given integer with a list of integers from a file named data.txt. The program will keep count of the number of integers in the file that are smaller than, equals to... View Questions/Answers

java  March 6, 2011 at 1:20 PM
Write a Java applet that draws a rectangle or an oval based on the width and height given by the user. Provide two text fields for the user to enter the object width and height. The program will have two buttons labeled ‚??Rectangle‚?? and ‚??Oval‚?? which let the user to click to produce the res... View Questions/Answers

java  March 6, 2011 at 1:18 PM
Write a Java program that prompts the user to enter an integer. The program will then read a list of integers from a file named numbers.txt. Next, it will sum up all the numbers in the file which are larger than the integer value given by the user earlier, and display the sum of all those numbers... View Questions/Answers

Advertisement

servlet sendredirect  March 6, 2011 at 1:13 PM
how to write html file code for this program. ... View Questions/Answers

exam  March 6, 2011 at 1:13 PM
Write a Java applet that that takes in a sentence from the user through a text field and append the sentence to a text area in individual line when the button labeled APPEND is clicked. When the sentence is appended to the text area, the program will also count the number of the word "the" or "Th... View Questions/Answers

java question  March 6, 2011 at 1:07 PM
Create a class called Complex to perform arithmetic operations with complex numbers. 1- Use double variables to represent the fields of the class. 2- Provide a no-argument constructor with default values in case no initializers are provided. 3- Provide a constructor that enables an object of th... View Questions/Answers

problem i coding  March 6, 2011 at 12:42 PM
i have a problem in coding a combobox containing a number of *.java program on click one of them that program should compile and run and display the result in other window ... View Questions/Answers

project  March 6, 2011 at 11:27 AM
does hostel management system project contain any dynamic web pages ... View Questions/Answers

chocolate manufacturing  March 6, 2011 at 11:00 AM
CDA Company is in the business of manufacturing chocolates. The company delivers various chocolate products like- chocolate bars ,chocolate powder ,chocolate gift box and chocolate tins/packets. Their main product is the chocolate bar which comes in various categories which in turn is based on th... View Questions/Answers

html  March 6, 2011 at 10:58 AM
i want a registration page in html with good background ... View Questions/Answers

JVM  March 6, 2011 at 9:53 AM
what is bytecode ? describe the JVM indetail? ... View Questions/Answers

hi  March 6, 2011 at 7:33 AM
we can create animated line graph in javascript ... View Questions/Answers

create and use an array variable in a java program  March 6, 2011 at 7:03 AM
how do i write a program that will prompt the user for a list of 5 prices, once the user has entered all values , your program should compute and display the following: The sum of all the prices, The average of the prices, All prices that higher than the calculated average ... View Questions/Answers

create table in mysql of split file created in java  March 6, 2011 at 6:55 AM
i have created splite file in java. now i want to create table from splited data how to do it? ... View Questions/Answers

array variable in a java program  March 6, 2011 at 6:51 AM
How do i write a program that will prompt the user for a list of 5 prices, that cosist of the sum of all the prices, the average of the prices, and all prices that are higher than the calculated average ... View Questions/Answers

UML case tools  March 6, 2011 at 4:02 AM
Research available UML case tools. Test one of the UML case tools that you researched. Select one of the free tools, or one that is currently used in your workplace. Install the tool and try to input at least one class diagram and one interaction diagram. Describe the ease of use of the tool. ... View Questions/Answers

Html form that auto fills outlook to,subject,body  March 6, 2011 at 3:13 AM
I want to have a webpage that will automatically fill in the users to:email address Subject info and body message. The user will fill out a form on-line when they click send it will open there outlook or groupwise with the info from the for already posted in it. Below is a working example. My pro... View Questions/Answers

Mouse Listener  March 5, 2011 at 11:29 PM
how to move any object with help of mouse but not drag it in an applet?? ... View Questions/Answers

Is catch(){} block synchronized?  March 5, 2011 at 11:25 PM
The code in catch(){} block behaves synchronized. In one block, if I do {write to file1; write to file2}, and in another {write to file2; write to file1}, they deadlock. Is this implicit sync defined in the language spec? ... View Questions/Answers

Java i/o opearations  March 5, 2011 at 9:18 PM
"FOLLOWING IS MY LAST QUESTION ON JAVA I/O OPERATIONS the ANSWER WAS POSTED THANKS FOR POSTING IT WORKS WELL WITH BUFFERED STREAM BUT IT IS NOT WORKING WELL WITH RANDOM ACCESS FILE" i.e.,how to WRITE integer data to the file using random access file. ""how to write integer data to a file ... View Questions/Answers

java  March 5, 2011 at 8:40 PM
what do you mean by static in java? ... View Questions/Answers

How to store data entered in JSP page by a user in XML file & later retrieval of data using id at other page  March 5, 2011 at 8:09 PM
I have made a form in JSP having emp id, projectname and emp name.I want to store data related to employee in xml file.How can i store data entered by user in XML file and later retrieve data in another jsp page using retrieve submit button.Please tell step by st... View Questions/Answers

printing hollow square  March 5, 2011 at 8:04 PM
Write an application (PrintingSquares.java) that prompts the user to enter the size of the side of a square, then displays a hollow square of that size made of asterisks. Your program should work for squares of all side lengths between 1 and 20. For example, if a user enters 5 you should display ... View Questions/Answers

help me..  March 5, 2011 at 7:59 PM
Design and write a class named Person and its two subclasses named Student and Employee. Make Lecturer and Admin subclasses of Employee. A person has a name, address, phone number and email address. A student has a matric number and status (year 1, year 2 or year 3). An employee has a department,... View Questions/Answers

help me..  March 5, 2011 at 7:09 PM
Write a program that inputs four words and them displays all possible permutations of the words. So, for example, if the words mad, dog, bites and man are entered, then the following are output : man bites mad dog mad man bites dog mad bites man dog etc... ... View Questions/Answers

java/j2ee source code  March 5, 2011 at 7:08 PM
java/j2ee source code for online food purchasing service with my sql database? ... View Questions/Answers

how to display?  March 5, 2011 at 6:18 PM
How to write a select query for displaying data where i have author as multivalued attribute? ... View Questions/Answers

how to display?  March 5, 2011 at 6:18 PM
How to write a select query for displaying data where i have author as multivalued attribute? ... View Questions/Answers

how to display?  March 5, 2011 at 6:18 PM
How to write a select query for displaying data where i have author as multivalued attribute? ... View Questions/Answers

non static variable cannot be referenced from static context  March 5, 2011 at 4:52 PM
public class Add{ int foo=7; int bar=8; public int add(int x,int y){ int z=x+y; System.out.println(z); return z; }//add public static void main(String []s){ Add a1=new Add(); a1.add(7,8); Add a2=new Add(); a2.add(foo,bar)... View Questions/Answers

non static variable cannot be referenced from static context  March 5, 2011 at 4:49 PM
public class Add{ int foo=7; int bar=8; public int add(int x,int y){ int z=x+y; System.out.println(z); return z; }//add public static void main(String []s){ Add a1=new Add(); a1.add(7,8); Add a2=new Add(); a2.add(foo,bar)... View Questions/Answers

Handle Null Pointer Exception while text file upload  March 5, 2011 at 4:00 PM
I want the code for handling null pointer exception in jsp page. That is I need an error page for null pointer exception. The cause for null pointer exception is while uploading text file into database if a different text file is selectedi.e...,my db contents are olnumber,newnumber,startdate,endd... View Questions/Answers

portability vs platform independent  March 5, 2011 at 3:51 PM
sir, pls tell me 1.the differences between platform independent and portability related to java technology 2.how java provides security 3.how can i prove servlet is a single instance multiple thread based serverside technology? ... View Questions/Answers

How to play radio station on iPhone  March 5, 2011 at 3:32 PM
how to play radio station on iphone? ... View Questions/Answers

java  March 5, 2011 at 3:02 PM
If there is Emp name, Emp sal, ..Emp id, In those value How to sort the Emp sal value? what data structure we use? ... View Questions/Answers

java  March 5, 2011 at 2:59 PM
In the Webpage if we click submit Button What happen? Explain Technically? ... View Questions/Answers

sql  March 5, 2011 at 1:23 PM
how to get first row in sql with using where condition in sql? how to get last row in sql with using where condition in sql? ... View Questions/Answers

SQUANDER CRPTOGRAPHY  March 5, 2011 at 1:21 PM
In Dorothy Sayers' novel "Have His Carcass", Lord Peter Wimsey describes a cryptography technique that is simple for encoding and decoding, yet relatively hard to crack. Your job is to implement this technique. Here's how it works, in Sayers' (edited) words: You choose a key-word of six letters o... View Questions/Answers

SQUANDER CRPTOGRAPHY  March 5, 2011 at 1:21 PM
In Dorothy Sayers' novel "Have His Carcass", Lord Peter Wimsey describes a cryptography technique that is simple for encoding and decoding, yet relatively hard to crack. Your job is to implement this technique. Here's how it works, in Sayers' (edited) words: You choose a key-word of six letters o... View Questions/Answers

TDD  March 5, 2011 at 12:57 PM
Q: Use TDD to write the following class, or classes: Single linked circular list. With methods: Insert method will insert a new node following the node passed as a parameter to the method. Delete the node passed as a parameter Get the next node Get the first node. Create an empty list... View Questions/Answers

Attachement in Web Service + EJB 3 + Jboss  March 5, 2011 at 11:47 AM
How to send attachements in Web Service using EJB3 with JBoss Application Server? ... View Questions/Answers

Java basic  March 5, 2011 at 10:53 AM
How can I Use Eclipse to create a project and write a hello world java application ? ... View Questions/Answers

PHP and jQuery Tutorial  March 5, 2011 at 10:46 AM
Hi, I have to develop web application using PHP programming language. In my program I have to add Ajax support with the help of jQuery. Let's know which Ajax framework is very good? Shall I learn and use jQuery for creating my application? Or suggest some else to my client? <... View Questions/Answers

input using scanner and add/sub/mul/div of a matrix  March 5, 2011 at 10:16 AM
hiiii...... performe matrix add/sub/mul/div using scanner. ... View Questions/Answers

job submission in cloud computing using gui representation  March 5, 2011 at 10:10 AM
job submission in grid computing using gui representation ... View Questions/Answers

job submission in cloud computing  March 5, 2011 at 10:10 AM
job submission in grid computing using gui representation ... View Questions/Answers

job submission in cloud computing  March 5, 2011 at 10:09 AM
job submission in grid computing ... View Questions/Answers

job submission in cloud computing  March 5, 2011 at 10:08 AM
job submission in cloud computing ... View Questions/Answers

implementation of two level scheduler in cloud computing environment  March 5, 2011 at 10:05 AM
job submission in cloud computing ... View Questions/Answers

dom to xml string  March 5, 2011 at 9:40 AM
Hi, I am writing a program in java that reads the xml file from a webservice. The Document object is returned in my program. I have save the dom document into xml file. How to convert dom to xml string and then save into a file? Thanks ... View Questions/Answers

PHP and MySQL BETWEEN dates with different years  March 5, 2011 at 9:10 AM
I have a database which holds a bunch of events. Each event has a start date and an end date, so they should only show on the site when the date chosen falls between those dates. I thought it made sense to make use of the SQL BETWEEN statement, but it does not work. When a user ch... View Questions/Answers

Java App - Add, Delete, Reorder elements of the buttons  March 5, 2011 at 8:57 AM
Hello, I'm developing a Java application. I created this interface with MockupScreens. Please look at these pictures. At first time, there's only one element, the user have to enter informations (title and description) then he starts adding elements as he needs. He ... View Questions/Answers

sql  March 5, 2011 at 8:54 AM
returning value from a store procedure in sql with example ... View Questions/Answers

search  March 5, 2011 at 8:53 AM
how to develop search box and how to retrive data from database.. ... View Questions/Answers

Is it modify Object data? Generally Object data can't modify............but in this program it modifies.......... Why?  March 5, 2011 at 1:07 AM
import java.io.*; public class Conversions { public static void main(String args[]) throws Exception { int a,b; DataInputStream dis=new DataInputStream(System.in); //String to Fundamental conversion System.out.print("Enter any ... View Questions/Answers

how to read values from java in xml?  March 4, 2011 at 10:13 PM
how to read values from java in xml? ... View Questions/Answers

expression and flow control  March 4, 2011 at 9:17 PM
write the program calculate and print the bill of communication telephone mobile company the company offer 2 types of services is regular (r) and premium (p) the rates are computed as follow - Regular services $ 10.00 plus first 50 minutes are free .Charges over 50 minutes are $ 0.20 per mi... View Questions/Answers

multivalued attribute?  March 4, 2011 at 8:16 PM
edit.jsp <% String accno=request.getParameter("acc"); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); java.sql.Connection con=java.sql.DriverManager.getConnection("jdbc:odbc:dms","smartlib","smartlib"); ... View Questions/Answers

multivalued attribute?  March 4, 2011 at 8:16 PM
I have a problem in editing the database through form because of multivalued attribute it is creating the error and also how to write code for displaying the data when there is multivalued attribute? edit.html edit.jsp <% String accno=request.getParameter(&qu... View Questions/Answers

how to display?  March 4, 2011 at 8:10 PM
I have to write a code for searcing books in library and i have written but it is not displaying the result.I don't know where i have gone wrong.Also i want to know if there is any better idea then this and what type of validations i can give.I have written code as shown below. search.... View Questions/Answers

How to put text file numbers to array and check the position of numbers?  March 4, 2011 at 6:08 PM
I have numbers in text file data.txt 12 9 8 3 1 ... View Questions/Answers

sql q's  March 4, 2011 at 5:49 PM
Find out the job that was filled in the first half of 1983 and same job that was filled during the same period on 1984? Display the department where there are no employees? Display those emp who joined the company before 15th of the month? For the above Q's please respond ... View Questions/Answers

Converting XML to string  March 4, 2011 at 5:31 PM
Hi Friends, I had an requirement in which a java program receives an xml messages from external web application such as (jsp, php) and then it converts the received xml message into a string. could some one suggest how can I go about it or could some one provide me with sample cod... View Questions/Answers

how to add panel inside frame?  March 4, 2011 at 4:27 PM
I prepared a Frame with two labels and text fields and one button.when ever user clicks on the button two text fields should be appear(those text fields should be added to the panel) .I want to add panel after those components.but while compilation its showing errors.how to write the logic? ... View Questions/Answers

Jcombo box  March 4, 2011 at 4:27 PM
I want To add ittem in JComboBox which is stored in Mysql Database. Database Column name -Course Items -MBA,MCA,MBA IT,MBA FINANCE I want Load Database records in to my JComboBox. ... View Questions/Answers

hibernate insert image  March 4, 2011 at 4:02 PM
Sir, Today I hadposted question regarding upload image, th answer you had given is using SQL, but I am using Hibernate to insert data in the same table where I want to insert image. Plz hlp me. Thanks ... View Questions/Answers

insert image using hibernate  March 4, 2011 at 3:59 PM
Sir, Today I hadposted question regarding upload image, th answer you had given is using SQL, but I am using Hibernate to insert data in the same table where I want to insert image. Plz hlp me. Thanks ... View Questions/Answers

retrive data from oracle to jsp  March 4, 2011 at 3:26 PM
i am a beginer in jsp so please help me out..... in file create project i am entering proj details such as id name cost and manager name and storing it in the data base. in search proj fiel if user enters any one of the feild such as id name cost and manager the full details of the project should... View Questions/Answers

UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath  March 4, 2011 at 3:24 PM
HI, What is the solution of UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath error? Thanks ... View Questions/Answers

dual control  March 4, 2011 at 3:04 PM
how to get two controls on a single program at the same time ... View Questions/Answers

upload image using JSP Hibernate  March 4, 2011 at 2:51 PM
sir, I want to take image from user and save to database(MYSQL) using Hibernate and JSP Thanks in advance. ... View Questions/Answers

here we r getting the problem with ut data and get data????????????  March 4, 2011 at 2:26 PM
private ArrayList keys; private ArrayList values; public Menus() { keys = new ArrayList(); values = new ArrayList(); } public java.util.Set keySet() { return new TreeSet(keys); } Hashtable<String,String> hash = new Hashtab... View Questions/Answers

java i/o operations  March 4, 2011 at 2:06 PM
how to write integer data to a file in java using random access file object or file writer or data outputstream i have already tried the write and writeInt methods....plz help ... View Questions/Answers

ExecuteScalar in java  March 4, 2011 at 1:58 PM
Hello Greetings I am developing web application in java using JSP and servlets. I would like to know one thing that is there any way to extract one value from database just like executescalar in .NET. Ex. select count(*) from userdetails i want to get count without using resultset... View Questions/Answers

array ADT  March 4, 2011 at 1:21 PM
Write a program using array_ADT to retrieve a list of elements from a file ... View Questions/Answers

array ADT  March 4, 2011 at 1:16 PM
Write a program using array_ADT to retrieve a list of elements from a file ... View Questions/Answers

take variables in text file and run in java  March 4, 2011 at 1:08 PM
I have a text file which have variables 17 10 23 39 13 33 How to take "17"in java code? ... View Questions/Answers

array ADT  March 4, 2011 at 1:03 PM
Write a program using array_ADT to retrieve a list of URLs from a file. In your program take an array index as the input and delete the entry corresponding to that index. ... View Questions/Answers

json  March 4, 2011 at 12:23 PM
how to get data in json object from database ... View Questions/Answers

jsp program related  March 4, 2011 at 11:57 AM
how to run jsp program ... View Questions/Answers

how to set size of button,textfield.  March 4, 2011 at 11:52 AM
how we set size of button textfield etc and reduce problem when click maximize button the text or textfield get large how to set as a preferd size in the panel or frame .when we click maximize button not effect on text or button to their of size the set on the prefered size ... View Questions/Answers

LOGIN PAGE  March 4, 2011 at 11:45 AM
A java program with "login" as title,menus added, and a text field asking for firstname, lastname, and displaying current date and time ... View Questions/Answers

Android  March 4, 2011 at 11:02 AM
how to read input values from a dialog box to hash table and put those values to another dialog box in android???? ... View Questions/Answers

URGENT !!!!! Any PERL language Expert .  March 4, 2011 at 10:51 AM
I have input 50 amino acid sequences in NetPhos 2.0 server to know position of phosphorylation sites. I want to extract or parse the position of phosphorylated serine, tyrosine and threonine residues from result table of NetPhos 2.0 server (ExPASy tool) in MS EXCEL sheet. Can this be d... View Questions/Answers

Mobile Communication  March 4, 2011 at 10:42 AM
how two mobiles communicates? ... View Questions/Answers

error in driver  March 4, 2011 at 10:27 AM
i have done connection settings for oraclethin driver in netbeans ide 6.9.1. and i was able to view tables of my database.but when i am trying to access tables from my java class i was getting error in the driver.could you please help me. ... View Questions/Answers

TextField on the Image  March 3, 2011 at 11:47 PM
how we set label or textfield etc. on the Image ... View Questions/Answers

javascript validation  March 3, 2011 at 11:42 PM
How to do javascript validations to check whether the entered primary key is present in the database or not .Iam using jsp language ... View Questions/Answers

javascript validation  March 3, 2011 at 11:42 PM
How to do javascript validations to check whether the entered primary key is present in the database or not .Iam using jsp language ... View Questions/Answers

help with JDateChooser to insert date into sql  March 3, 2011 at 11:32 PM
TextField3 = new com.toedter.calendar.JDateChooser(); TextField3.setDateFormatString("MM-d-y‚?¶ private void buttonActionPerformed(java.awt.event.Act‚?¶ evt) { try{ DateFormat df = new SimpleDateFormat("MM/dd/yyyy"); String value1=TextField1.getText(); String value2=TextField2.getText(); ... View Questions/Answers

JavaBean tutorials  March 3, 2011 at 10:08 PM
JavaBean tutorials ... View Questions/Answers

java script  March 3, 2011 at 9:29 PM
how to write a Java script program to enter number in two text fields and then automatically display the total in another text field.. ... View Questions/Answers

multivalued attribute  March 3, 2011 at 9:22 PM
I have a author as multivalued attribute and i have inserted values for it in database but now how to insert values in the database through form .I have written query as shown below and iam getting error . String query4="INSERT INTO author_det(accno,isbn,author) VALUES ('"+accno+"','"+is... View Questions/Answers

what is the difference between pop and oop  March 3, 2011 at 9:12 PM
what is the difference between pop and oop? ... View Questions/Answers

program for default constructor in java  March 3, 2011 at 8:55 PM
class Box { double l; double b; double h; Box() { l=2.3; b=3.4; h=4.5; ... View Questions/Answers

please tell me  March 3, 2011 at 7:48 PM
i have created one table,when i close and again login, table name will be there, but its content not displayed, showing as no rows selected, please tell me the reason ... View Questions/Answers

Wt is easy way to learn UML  March 3, 2011 at 7:31 PM
Hello Friends, Please guide me,How to learn UML in easy way and efficent way. Thanks in Adavance Thanks, Abiram ... View Questions/Answers

How to trim string till indexof the string  March 3, 2011 at 6:22 PM
how to trim string till indexof the string ... View Questions/Answers

loyality application  March 3, 2011 at 6:12 PM
Loyalty Application XYZ Bank is a leading public sector bank in India and has recently launched a credit card in alliance with Visa. The credit card industry in India is currently cluttered with many cards and the senior management wanted to create an attractive Loyalty Application for its custom... View Questions/Answers

logistic case study  March 3, 2011 at 6:11 PM
Logistics Case ABC is an upcoming logistics company .The company offers air cargo services from Bangalore Airport office to 10 international locations and vice versa. They can handle cargo up to 40 kilos in a single consignment. The company offers three kinds of services-normal, express & pla... View Questions/Answers

DMCA.com