Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

sum  October 28, 2011 at 6:46 PM
s=1/(1+2)+1/(1+2+3)+1/(1+2+3+4)+.....+1/(1+2+3+....n terms) ... View Questions/Answers

sum  October 28, 2011 at 6:44 PM
s=(1+2)/(1x2)+(1+2+3)/(1x2x3+)+.......+(1+2+3+......n terms)/(1x2x3x..........n terms) ... View Questions/Answers

sum  October 28, 2011 at 6:41 PM
s=1x2x3x4+2x3x4x5+3x4x5x6+4x5x6x7+5x6x7x8 ... View Questions/Answers

Advertisement

sum  October 28, 2011 at 2:02 PM
s=1+12+123+1234+............+123....n terms ... View Questions/Answers

Acrobat Javascript  October 28, 2011 at 12:46 PM
i want to know about complete tutorial of Acrobat javascript in brief. ... View Questions/Answers

Complaint Management System  October 28, 2011 at 12:34 PM
Hi......i have to create a complaint management system where the user calls a toll free number and a computerized voice guides the user to register complaint and then a message is sent to the user with the complaint number. I have no idea as to how I should go about this system. Please tell me if... View Questions/Answers

jUSB api  October 28, 2011 at 12:13 PM
How can i access the USB using jUSB api and also hw to add this api to the netbeans? ... View Questions/Answers

how to print the following pattern  October 28, 2011 at 6:56 AM
Hello hEllo heLlo helLo hellO pls reply soon its an emergency ... View Questions/Answers

junit  October 27, 2011 at 9:41 PM
Explain about junit? ... View Questions/Answers

CVS  October 27, 2011 at 9:39 PM
Explain about control version system? ... View Questions/Answers

log4j  October 27, 2011 at 9:38 PM
explain about log4j with example ? ... View Questions/Answers

method  October 27, 2011 at 9:30 PM
can you tell me how to write an abstract method called ucapan() for B2 class class A2{ void hello(){ system.out.println("hello from A2"); }} class B2 extends A2{ void hello(){ system.out.println("hello from B2"); }} ... View Questions/Answers

full coding  October 27, 2011 at 5:50 PM
class IdentifyMyParts { public static int x=7; public int y=3;} IdentifyMyParts a = new IdentifyMyParts(); IdentifyMyParts b = new IdentifyMyParts(); a.y = 5; b.y = 6; a.x = 1; b.x = 2; System.out.println("a.y = " +a.y); System.out.println("b.y = " +b.y); System.out.println("IdentifyMyParts.x = "... View Questions/Answers

flowchart and algorithm  October 27, 2011 at 4:28 PM
import java.util.Scanner; public class StudentMarks { double totalMarks; String grade; public void setTotalMarks(double totalMarks) { this.totalMarks = totalMarks; } public double getTotalMarks() { return totalMarks; } public void setGrade(String g... View Questions/Answers

barcode reader using java script  October 27, 2011 at 3:36 PM
Hai all, I need code for one application in java and java script my requirement is, Scanning data directly into a field is the easiest of all implementations. The cursor is placed in the appropriate field that is to receive the data from the scan and the trigger is pressed on the ... View Questions/Answers

Java swing  October 27, 2011 at 1:09 PM
If i am login to open my account the textfield,textarea and button are displayed. if i am entering the time of the textfield and the activities of the textarea then click the button the time and activities are displayed in the table..I need the source code in java swing.. ... View Questions/Answers

SERIES PROGRAMMING  October 27, 2011 at 11:48 AM
WAP to print the followin series till n terms: S = 1-4+9-16+25.............n ... View Questions/Answers

explaination  October 26, 2011 at 10:54 PM
can you give me the explaination of this coding. import java.util.*; public class StudentMarks{ double totalMarks; String grade; public void setTotalMarks(double totalMarks){ this.totalMarks=totalMarks; } public double getTotalMarks(){ return totalMarks; } public v... View Questions/Answers

java  October 26, 2011 at 6:25 PM
Why we didnot write constructors in interfaces ... View Questions/Answers

Display Information  October 26, 2011 at 3:06 PM
I have a listbox having many names and I have a button "display". I select some names and when I click the button , the names along with the address(they are in database) should be displayed. I am using php for doing this process. Plz help me out. ... View Questions/Answers

Class and Instance  October 26, 2011 at 2:30 PM
class IdentifyMyParts { public static int x=7; public int y=3;} What are the class variable? What are the instance variables? What is the output from the following code: IdentifyMyParts a = new IdentifyMyParts(); IdentifyMyParts b = new IdentifyMyParts(); a.y = 5; b.y ... View Questions/Answers

verfication of user login and then redirecting it to user defined page  October 26, 2011 at 2:19 PM
hi, i have a login page that..calls the servlet..and i have used redirect() to redirect to a user defined page..but..wen i press the submit button,the html page calls teh servlet..but..the servlet.is not redirecting to a user defined page.. after i press the submit button..in the logi... View Questions/Answers

html and servlet file  October 26, 2011 at 2:05 PM
where to place the html and the servlet class files..in tomcat.. I have placed the html file under root and the class files in class folder..n WEB-INF. but..i want to access the servlet file through ..the html file.. its showing 404 error.help me pls ;THANK YOU!! ... View Questions/Answers

student  October 26, 2011 at 1:09 PM
There is only 1 player. Use JAVA Random toolkit to generate random number between 1 to 10. Once user has entered in a number, checked whether the number match with the generated number. There should be a telling the user how many times has the user guessed a number. The program should display use... View Questions/Answers

Trouble with array manipulation  October 26, 2011 at 11:57 AM
For this project I have to print 10 random numbers from (0-99), print the max value, the average of the ten numbers, print the first index at which the maximum of the array occurs, and create an array b which has the same values as a only in reverse order, and print out the first 10 values of b. ... View Questions/Answers

execution of a jdbc program  October 26, 2011 at 9:40 AM
how to execute a servlet program that..uses a jdbc driver (i.e. using mysql-connector -java )to connect to mysql in windows *PLS provid the execution steps in detail THANK YOU!! ... View Questions/Answers

how can you say java is secure  October 26, 2011 at 8:04 AM
we are using notepad editor for Java programming which is an Microsoft product, then how can you say Java is secure when you are using Microsoft product as an editor? ... View Questions/Answers

Very new to Java  October 25, 2011 at 8:55 PM
hi I am pretty new to java and am wanting to create a programe for the rhyme 10 green bottles. 10 green bottles standing on the wall 10 green bottles standing on the wall and if 1 green bottle should accidently fall there'd be.. all the way to 1 green bottle. If anyon... View Questions/Answers

Toedter JDateChooser JSpinner change day value by default in java  October 25, 2011 at 6:14 PM
i have a question, by default the JSpinner when you press up or down buttons it changes the month value. There is a way to change the day value, instead of the month value by default? ... View Questions/Answers

Android  October 25, 2011 at 5:29 PM
How to create Android sample program? ... View Questions/Answers

how I do select from select in hql  October 25, 2011 at 5:28 PM
select RN from ( select rownum RN, dbid from ( select * from profile p where type = 1912 and name like 'a%' order by globalid ) ) where db_id = 259; this is the sql The below hql doesn't work select RN from ( select rownum RN, DBId from (... View Questions/Answers

jsp- database dependent dropdown list  October 25, 2011 at 4:36 PM
i want 2 dropdown list 1- CLASS 2-SECTION both are should come from database. and if i select a class suppose class a the corresponding section dropdown list should retrieve the section respective to that class from database. please help by providing the code in jsp as soon as possible.its urge... View Questions/Answers

how to calculate the price on the option box  October 25, 2011 at 3:01 PM
How i calculate the value when i using a option box with 2 option..first option i used for product name and for the second i used for the quantity..which function should i used to calculate this value??... ... View Questions/Answers

Hiya!  October 25, 2011 at 2:57 PM
Write a program to input an integer and output whether or not it is a valid percentage if anyone could help that would be great Thanks in advance! ... View Questions/Answers

not able to connect to mysql using.. jdbc  October 25, 2011 at 2:20 PM
i am not able to connect to mysql using jdbc .. is there any classpath that i need to set..because i am using mysql-connector-java jar file..to connect to mysql.. Pls provide the steps in detail..THANK YOU!! ... View Questions/Answers

Hi  October 25, 2011 at 1:15 PM
I need some help I've got my java code and am having difficulty to spot what errors there are is someone able to help import java.util.Scanner; public class Post { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter the le... View Questions/Answers

How can we save a data list in jsf?  October 25, 2011 at 1:03 PM
I have a code in jsf that fires a query in Data Base each time it is called, i have added a validation check to fire query only if list is not-empty but the list gets empty each time it is called again. I tried using save State but it did not help as other functions got hampered.. some one sugges... View Questions/Answers

unable to retrive the data from mysql using servlet using jdbc driver  October 25, 2011 at 12:30 PM
Hi, i have a servlet program..to verify the login and redirect to correct html page on verification. public class LoginServlet extends HttpServlet implements javax.servlet.Servlet { public void doPost (HttpServletRequest request, HttpServletResponse response) thr... View Questions/Answers

Java swing  October 25, 2011 at 12:20 PM
I create 2 text field f1,f2 and 2 button b1,b2.If i enter some text in the text field and click the button b1 the text field f1 text will be shown in the Message dialog box and if i click the button b2 the text field f2 text will be shown in another one Messagedialog box.I Need the code of this p... View Questions/Answers

Problem in accessing data from Database  October 25, 2011 at 12:07 PM
hi..... i'm making a project on servlet and jsp with ms access 2007 at the backend. One field in my database is text and all others are of currency data type. If i enter 0 or null value in currency column and then try to retrieve data using my servlet coding the result is not displayed.......the ... View Questions/Answers

would you please help me?  October 25, 2011 at 3:59 AM
Write a class Amount which stores sums of money given in pounds and pence. Your con- structor should take two ints, for pounds and pence seperately. The class should also provide methods to add and withdraw money, again in pounds and pence, and a toString method that returns the balance in the fo... View Questions/Answers

jsp help  October 25, 2011 at 1:31 AM
Hi i am doing my project in jsp.using netbeans 6 and mysql 5.0. and i managed to complete it. and now its submission time. but am confused.. in what form should i load my project in CD and submit it. should i convert it to war file? then how would i associate or include my mysql databases with it... View Questions/Answers

Java errors when attempting the following.  October 25, 2011 at 12:14 AM
Give the java errors in attempting the following : 1) performing division operation on string value. 2) redefining base class final method in derived class. 3) defining a method in interface. ... View Questions/Answers

Weight loss  October 24, 2011 at 8:17 PM
Is anybody able to help me. I am wanting to build a weightloss programme If anyone could help that would be great //calculate and output weight loss given time spent on activities import java.util.*; public class WeightLoss { public static void main (String args[]) ... View Questions/Answers

Java Currency Converter  October 24, 2011 at 6:46 PM
Hi I was wondering if someone could help me write a program to convert Pounds into Euro's. The program should prompt the user to input the number of pounds and output the number of Euros this is equivalent to. Thanks I have not had much luck with this ... View Questions/Answers

HTML ISSUE  October 24, 2011 at 5:14 PM
Hi, We have a requirement wherein we have to access a link generated using html tag 'href' ie: This href value is fetched from sum table in other schema. When we click this link, username n password pop-up is shown which we want to avoid. We want ... View Questions/Answers

Input and Output package  October 24, 2011 at 9:45 AM
Hi guys, My professor used input and output statements in a different way.. She didnt used System.out.println(); instead she used in.readint() out.writeln() commands to read input and print output. she created two new objects directly to use this statements. /* input and output objects */... View Questions/Answers

Iteration without loop  October 24, 2011 at 1:02 AM
Hi, Is there any way I can have a line of code iterate a number of times set by the user without having a while loop or any other control statements? Thanks! ... View Questions/Answers

calculation after if. user input  October 23, 2011 at 6:38 PM
System.out.print ("please select one of the following by pressing tne number on your keypad"); System.out.println(); System.out.println("1. Apples"); System.out.println("2. Oranges"); System.out.println("3. Straberries"); System.out.println("4. Patato"); System.out.println("5. Turnips"); System.o... View Questions/Answers

internship  October 23, 2011 at 2:04 PM
hey I am doing my graduation in French-elective English and tourism.. actually I wanted to do internship in tourism..can you tell me from where can I do so?thanks ... View Questions/Answers

Servlets errors in same page.  October 23, 2011 at 10:42 AM
How do I display errors list in the same page where a form field exists using servlets...........i.e. without using JSP? Please explain with a simple username password program....... ... View Questions/Answers

WordCount  October 23, 2011 at 10:17 AM
i have to write a program for Write a program that takes a string containing a sentence or a set of sentences, and counts the number of words in the sentence that meet or exceed a specified minimum length (in letters). For example, if the minimum length entered is 4, your program should only cou... View Questions/Answers

How to create binary search tree using an array?  October 22, 2011 at 3:51 PM
hello people, pls guide me on the topic above. i have an string array, i want to make a binary search tree based on data inside this array. the array contains names of people, so the tree must have a to l as left child, root as m and right child as n-z, am i right? how do ... View Questions/Answers

prepare a group box under 3 radio buttons  October 22, 2011 at 3:51 PM
how to prepare a group box under 3 radio buttons named(YES,NO,CANCEL).when i click YES it can store in the database using (data navigator and data source). if i click NO it can store in the database using (data navigator and data source). if i click CANCEL it can store in the database using (dat... View Questions/Answers

Jva swing  October 22, 2011 at 11:26 AM
How to create the model form like "Notepad"? ... View Questions/Answers

Problem analysis and algorithm design (i.e.: flowchart, algorithm)  October 21, 2011 at 11:47 PM
Problem analysis and algorithm design (i.e.: flowchart, algorithm)for this question.Write a Java program that prompt user to input a number of students in a class. Then, prompt user to input the students programming mark. Determine how many student get A+ and A for their grade and how many studen... View Questions/Answers

using if and else if statments  October 21, 2011 at 10:31 PM
Hello everyone Hope all are well Just new here & already have a question. I have a little veg shop it sells 6 apples oranges turnips patotes straberries carrots. And add the price together. oh each item has a price eg apples = .30 ect my problem is I can only buy 3 of the above items ... View Questions/Answers

the grade of students  October 21, 2011 at 10:00 PM
Write a Java program that prompt user to input a number of students in a class. Then, prompt user to input the student√Ę‚?¨‚?Ęs programming mark. Determine how many student get A+ and A for their grade and how many students get D and E based on the following table: Marks ... View Questions/Answers

session.timeout and notification before session expire in java  October 21, 2011 at 5:55 PM
Hi frds, I am using struts and I would like to automatically forward to some notification page when the session expires; but I want this to happen without user intervention. For example, a user leaves a browser unattended for 30 min & session timeout is 30 min; I would want the page to autom... View Questions/Answers

change password  October 21, 2011 at 5:35 PM
how to change password in the login form.... by giving options to user like this old password, new password.. pls help ... View Questions/Answers

who know full coding of guessing game in java?  October 21, 2011 at 4:59 PM
There is only 1 player. Use JAVA Random toolkit to generate random number between 1 to 10. Once user has entered in a number, checked whether the number match with the generated number. There should be a telling the user how many times has the user guessed a number. The program should display use... View Questions/Answers

how to pass values from 2nd page tp 3rd page....  October 21, 2011 at 4:29 PM
Hi, How to pass values from 2nd page to 3rd page..... here are my programs(not exactly correct code....) login.jsp : <html> <head> </head> <body> <form method="post" action="login1.jsp"> <p><... View Questions/Answers

Java swing  October 21, 2011 at 3:25 PM
How to combine two java files? ... View Questions/Answers

webservices tutorials  October 21, 2011 at 12:26 PM
Web services tutorials... View Questions/Answers

Java swing  October 21, 2011 at 12:20 PM
how to create the login form? ... View Questions/Answers

help to understant to html language  October 21, 2011 at 12:03 PM
help to understant to html language ... View Questions/Answers

program  October 21, 2011 at 11:38 AM
i want help to making project ... View Questions/Answers

question  October 21, 2011 at 11:15 AM
dear sir/madam my question is how to compare two text format in java..we are java beginners..so we need the complete source code for above mentioned question...we have to compare each and every word... Thanking you ... View Questions/Answers

program  October 21, 2011 at 10:54 AM
i want help to making a project in check current date using c language ... View Questions/Answers

program  October 21, 2011 at 10:54 AM
i want help to making a project in check current date using c language ... View Questions/Answers

java Programming  October 21, 2011 at 7:45 AM
Based on the following algorithm, write a Java Program Start defining the MyClass class. Declare the class?s myField data field. Initialize the data field. Start defining the SetField() method. Set the data field to the value passed to SetField(). Start defining the GetField() metho... View Questions/Answers

q2  October 21, 2011 at 7:37 AM
provide me a java coding based on the following algoritm start defining the MyClass Declare the class's myField data field Initilize the data field Start defining the SetField() method set the data field to the value passed to SetField() Start defining the GetField() method Return the value of th... View Questions/Answers

c# (ado.net)  October 20, 2011 at 8:15 PM
i am preparing a 180 query questions. how to make a groupbox that include 3 radio buttons named (YES, NO, CANCEL)when i select YES then, the YES is stored in the sql,when i select NO then, the NO is stored in the sql,when i select CANCEL then, the CANCEL is stored in the sql.AND also if i am sel... View Questions/Answers

Struts2 Spring Hibernate integration  October 20, 2011 at 7:27 PM
How to integrate Struts2 Spring2.5 and Hibernate3 in a web application project?Could anyone give some example? ... View Questions/Answers

Jtree connection with Jlist  October 20, 2011 at 7:26 PM
I have a Jtree which contain different folders having files but the jtree will show only the folders. Now I want when I click a folder then its contained file will be shown in jList .How it is possible in java. ... View Questions/Answers

Jtree connection with Jlist  October 20, 2011 at 7:26 PM
I have a Jtree which contain different folders having files but the jtree will show only the folders. Now I want when I click a folder then its contained file will be shown in jList .How it is possible in java. ... View Questions/Answers

JDBC CONNECTIVITY  October 20, 2011 at 5:33 PM
How do i connect my database to java. I have the connector file and i place it in lib of jdk folder and installed the jdbc driver. I think i didnt complete the process. Is there anything like path to set jar file in environment variable. ... View Questions/Answers

JDBC CONNECTIVITY  October 20, 2011 at 5:30 PM
import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.sql.SQLException; // User: USER // Datetime: Thu Oct 20 15:19:38 IST 2011 // File name: Document [1].java /** * This class is gen... View Questions/Answers

Export SQL database schema from SQL server management studion express2005 into MS excel file  October 20, 2011 at 3:25 PM
HI I need to export Database Schema from SQL Server anagement studio express 2005 into MSExcel? generate script is giving me the script. but i need to have Excel file contains database schema. how can i do with SQL server management studio express 2005? ... View Questions/Answers

Java swing  October 20, 2011 at 1:17 PM
how to create simple addition program using java swing? ... View Questions/Answers

php  October 20, 2011 at 12:51 PM
my problem is when i display data like this $_POST["combo1"] it will show vlaue . suppose i select INDIA it shows "1" , but i want "INDIA", and i use if condition for each value and display by using "echo" but it difficult check all combinations for each country with corresponding states is it an... View Questions/Answers

RADIO FROM JSP TO ACTION.  October 20, 2011 at 12:33 PM
Hi frds, how to get the selected multiple radio button values from jsp to action. ... View Questions/Answers

Java Swing  October 20, 2011 at 11:46 AM
Write an applet program to transfer the content of the text field into the listbox component on clicking a button code project ... View Questions/Answers

nested selected tag ihave display selected item  October 20, 2011 at 11:33 AM
i have two combo boxes combo1 combo1 in first combo box i taken as follows select name="combo1"> option value="0">-select- option value="1">INDIA option value="2">UK etc in other combo box display all states relate first combo box, ok it can be done by c... View Questions/Answers

create method getConstructor and getInfo?  October 20, 2011 at 11:31 AM
How to create method getConstructor and getInfo? ... View Questions/Answers

create method getConstructor and getInfo?  October 20, 2011 at 11:31 AM
How to create method getConstructor and getInfo? ... View Questions/Answers

how to build a colorful clock in JSP without using Flash.  October 20, 2011 at 11:19 AM
I have to make a colorful clock using java programming or some API in a JSP page. Please send me a code for it as soon as possible. ... View Questions/Answers

how to install jfreechart in netbeans.  October 20, 2011 at 11:15 AM
I have successfully installed jfreechart in eclipse IDE.but I am unable to install the same in netbeansIDE 6.7.1 .There is some error regarding the ant folder.Please tell the step by step procedure to install it in netbeans 6.7.1 Please reply asap.Its urgent. ... View Questions/Answers

how to generate a bar chart on a JSP PAGE using the arraylist object passed form the servlet.(using jfreechart)  October 20, 2011 at 11:08 AM
I have created a servlet.In this,i have retrieved a record from MS Access database in an arraylist i.e. my arraylist contains only one object(rollno,name,marks1,marks2,marks3,marks4) from the database.now i have to pass this arraylist object to a jsp page and on that jsp page i have to display a ... View Questions/Answers

displaying data  October 20, 2011 at 10:29 AM
how to display data from database on jsp using struts2 ... View Questions/Answers

struts  October 20, 2011 at 10:28 AM
how to display data from database on jsp using struts1.0 ... View Questions/Answers

Java  October 20, 2011 at 1:45 AM
Write a program to calculate the area of a rectangular. You need to define following method in the Rectangular class: public void calculateArea(double l, double h) public double findLength() public double findHeight() public void setLength(double l) public... View Questions/Answers

Java  October 20, 2011 at 1:45 AM
Write a program to calculate the area of a rectangular. You need to define following method in the Rectangular class: public void calculateArea(double l, double h) public double findLength() public double findHeight() public void setLength(double l) public... View Questions/Answers

Compile time error  October 20, 2011 at 12:41 AM
Hi, When i compile my simple program in cmd am getting a error like "Javac is not a recognized as an internal or external command, operable program or batch file" How to resolve this problem ???? ... View Questions/Answers

how to do gui  October 19, 2011 at 9:38 PM
import java.util.Scanner; import javax.swing.JFrame; import javax.swing.JOptionPane; public class ShippingCost { public static void main(String[] args){ Scanner sc = new Scanner(System.in); JFrame frame = new JFrame(); String itemName = ""; ... View Questions/Answers

Dynamically display values in dropdown box and then show the selected values as selected by the user which is already stored in the DB  October 19, 2011 at 9:20 PM
Hello, This is for Updating. I had two SQL queries one for only selected values the user has choosen before and the second SQL query to show all the values. Iwas trying to display multiple selection selected from the list of all the values in the list box. Somehow I can just show on... View Questions/Answers

How to get the data from the database using Servlet or JSP program  October 19, 2011 at 7:42 PM
hello My Netizen friend has given the answer to retrieve data from the database by using servlet or jsp program by typing the output as like this below ReusltSet rs=statement.executeQuery("select * from Table1) while(rs.next()) { out.println(rs.getInt(1)); out.println(rs.getString(2)); out.printl... View Questions/Answers

easy way to make a JCombobox look like a JTextField?  October 19, 2011 at 7:22 PM
Is there a good(and easy) way to make a JCombobox look like a JTextField? By this I mean there should not be a dropdown button, but when the user enters something it should show multible results. Basically the same way google, youtube, facebook etc. works ... View Questions/Answers

java  October 19, 2011 at 7:15 PM
Write a program that will read a line of text as input and then display the line with the first word moved to the end of the line and after the code execute it will change the string to UPPERCASE. For example : Enter a line of text (No punctuation please): Saya sangat lapar I have rephrased that ... View Questions/Answers

askquestion java  October 19, 2011 at 6:40 PM
Write a program that will read a line of text as input and then display the line with the first word moved to the end of the line and after the code execute it will change the string to UPPERCASE. For example : Enter a line of text (No punctuation please): Saya sangat lapar I have rephrased that ... View Questions/Answers

DMCA.com