Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

factorial of fibonacci  January 16, 2013 at 2:04 PM
A code for the factorial of a fibonacci series. Example when the user enters 6, the fibonacci series is 8 and the factorial will be 8! or 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1. So if the user enters the number 6 the output will be 40320. ... View Questions/Answers

dulication  January 16, 2013 at 12:16 PM
Hi, I have one table in that am assigning a one column ID value like 1 2 3 3 3 etc and another column like Amount, know my question is how i have to find the duplicate in the ID column and i have to add the corresponding amount of repeated Id. so please tell men the solution urgently. ... View Questions/Answers

dulication  January 16, 2013 at 12:16 PM
Hi, I have one table in that am assigning a one column ID value like 1 2 3 3 3 etc and another column like Amount, know my question is how i have to find the duplicate in the ID column and i have to add the corresponding amount of repeated Id. so please tell men the solution urgently. ... View Questions/Answers

Advertisement

changing an image based on checking checkbox using HTML & JavaScript, Please put div blocks  January 16, 2013 at 11:00 AM
Hello, PLease check the below code, and let me know the error. The answer should be like this - It has to display Desert.jpg once check box unselected, display Tulips.jpg when check box selected. Please help me asap.. <!DOCTYPE html> &l... View Questions/Answers

Image processing  January 15, 2013 at 8:08 PM
i want a browsing program in java in which we hv a small img and we hv to browse this img on a big image so that we can find the similar type of image in big img ... View Questions/Answers

web technology  January 15, 2013 at 8:05 PM
a) Create a HTML documentto the calendar for a given month Also, use the rowspan/Colspan featurers to indicate special occassions b) Write a servlet program to create a chatting application ... View Questions/Answers

Abstract class  January 15, 2013 at 7:21 PM
Calendar cal=Calendar.getInstance() We know that Calendar is an abstract class so it can't be instantiated. So how we can say that cal is an instance of Calendar??? Beginner Question I suppose. Thanks in advace. ... View Questions/Answers

java  January 15, 2013 at 6:34 PM
a) Create a HTML document to the calendar for a given month. Also, use the rowspan/Colspan features to indicate special occasions b) Write a servlet program to create a chatting application ... View Questions/Answers

Simple Java Desktop Upload application  January 15, 2013 at 3:57 PM
I try do simple example for upload applicationtake file from c:\ put to d:\ :) PLEASE HELP :) ... View Questions/Answers

How to run ActionListenters in two different thread for the following code...  January 15, 2013 at 1:34 PM
The ActionListeners here are not running concurrently... import java.io.*; import javax.swing.*; import java.awt.event.*; import javazoom.jl.player.Player; import java.io.FileInputStream; public class Play2 extends JFrame { ... View Questions/Answers

How to run ActionListenters in two different thread for the following code...  January 15, 2013 at 1:34 PM
The ActionListeners here are not running concurrently... import java.io.*; import javax.swing.*; import java.awt.event.*; import javazoom.jl.player.Player; import java.io.FileInputStream; public class Play2 extends JFrame { ... View Questions/Answers

How to run ActionListenters in two different thread for the following code...  January 15, 2013 at 1:32 PM
The ActionListeners here are not running concurrently... import java.io.*; import javax.swing.*; import java.awt.event.*; import javazoom.jl.player.Player; import java.io.FileInputStream; public class Play2 extends JFrame { ... View Questions/Answers

How to run ActionListenters in two different thread for the following code...  January 15, 2013 at 1:32 PM
The ActionListeners here are not running concurrently... import java.io.*; import javax.swing.*; import java.awt.event.*; import javazoom.jl.player.Player; import java.io.FileInputStream; public class Play2 extends JFrame { ... View Questions/Answers

Playing mp3 file in Java...  January 15, 2013 at 1:23 PM
I created frame with play and stop buttons and added separate ActionListener to those buttons but i can't stop the music while playing... ... View Questions/Answers

downloading a file directly from mysql using java  January 15, 2013 at 12:21 AM
Hi, I am trying to come up with a code to download a file that is on a mysql database (in form of a blob) without using url. Can anyone tell me how it can be done because I am a beginner. ... View Questions/Answers

mysql alter table add unique constraint  January 14, 2013 at 9:56 PM
How to add mysql alter table add unique constraint in mysql table. Thanks ... View Questions/Answers

Error is: Generated keys not requested.  January 14, 2013 at 9:28 PM
Hi, Following error is coming in my program. Error is: Generated keys not requested. You need to specify Statement.RETURNGENERATEDKEYS to Statement.executeUpdate() or Connection.prepareStatement(). What could be solutions Thanks ... View Questions/Answers

JDBC insert that returns primary key  January 14, 2013 at 9:15 PM
How to write code for jdbc insert that returns primary key? Help me fast Thanks ... View Questions/Answers

select with preparedstatement in java  January 14, 2013 at 9:05 PM
How to write code example for select with preparedstatement in java? Thanks ... View Questions/Answers

mycustomer.hbm.xml not found  January 14, 2013 at 6:37 PM
feed.jsp print("<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head... View Questions/Answers

mycustomer.hbm.xml not found  January 14, 2013 at 6:37 PM
feed.jsp print("<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> &l... View Questions/Answers

Struts for Java  January 14, 2013 at 2:45 PM
What do you understand by Struts for Java? Where Struts for Java is used? Thanks ... View Questions/Answers

Struts 2 online tutorial  January 14, 2013 at 2:34 PM
Where to learn struts 2 online tutorial? Is there any good tutorials on roseindia.net for learning struts 2 online tutorial? ... View Questions/Answers

Struts 2.3.8  January 14, 2013 at 12:04 PM
When Struts 2.3.8 was released? What are the features and where can I read the tutorials? Thanks ... View Questions/Answers

Struts  January 14, 2013 at 10:17 AM
How Struts is useful in application development? Where to learn Struts? Thanks ... View Questions/Answers

What are Struts?  January 14, 2013 at 10:12 AM
What are Struts? Can anyone explain me what are the Struts framework and what are its uses? Thanks ... View Questions/Answers

java  January 13, 2013 at 12:23 PM
how to print my name "sangam"with space ex-"s a n g m" in java ... View Questions/Answers

Session management  January 12, 2013 at 6:48 PM
I am new to servlet....developing a project in servlet-jsp.... i want to know about session management... that i don't want to let a user can copy url address and run it on same os and other browser Thanks...plz as soon as reply ... View Questions/Answers

parralel connection in two resisitence  January 12, 2013 at 5:36 PM
R1=r1+r2(series) R2=r1.r2/r1+r2(parralel) ... View Questions/Answers

jtextarea  January 12, 2013 at 3:23 PM
How To: Add line numbers to JTextArea?? help ... View Questions/Answers

jTextArea  January 12, 2013 at 1:33 PM
can jtextarea have numbers like 1 will be set to default and when the user writes in first line and hits enter the 2nd number should automatically be created??can this be done in netbeans??please help.. ... View Questions/Answers

if else statement in java  January 12, 2013 at 10:55 AM
explain about simple if else statement and complex if else statement in java with an example ... View Questions/Answers

if else statement in java  January 12, 2013 at 10:47 AM
if else statement in java explain with example ... View Questions/Answers

Programming Assignment  January 12, 2013 at 7:59 AM
Hey there, We were given an assignment to write a program to read 10 student marks from the keyboard without using an Array (only using switch statements, if statements or loops). As each mark is input it must be checked to see whether it is a pass, fail or merit. I can get it to read one student... View Questions/Answers

Tell me where we are using overloading and overriding in realtime project?  January 12, 2013 at 1:23 AM
Hi,Tell me where we are using overloading and overriding in realtime project? please give me answer?... View Questions/Answers

Appointment management from calendar  January 11, 2013 at 9:16 PM
Hi, I need to build UI that will handle appointments booking rescheduling and cancellation. What would be the best approach for doing this. Note: I am novice in UI tools. My backend would be completely in java/j2ee. -Shruti ... View Questions/Answers

database backup and restore  January 11, 2013 at 5:21 PM
hi i m able to take backup through java code but i m unable to restore the same file through the restore code . please provide me some suggestion. ... View Questions/Answers

Sql Join Query  January 11, 2013 at 4:18 PM
aTable Name : TblState Stid StateName CountryId --------------------------------------------- 01 TN 01 02 KR 01 03 KL 01 04 WB 01 05 New York 02 06 Oregon 02 Table Name : TblDist ... View Questions/Answers

final  January 11, 2013 at 1:29 PM
what does final means in "public static final void main (string args[])" ? ... View Questions/Answers

Java Image Browsing Applet  January 11, 2013 at 12:41 PM
Hi. I want to create an applet which is embedded in html page which display image by browsing the files in the computers hard disk... Please help me out . . . ... View Questions/Answers

What is WAMP Server  January 11, 2013 at 12:04 PM
What is WAMP Server? And what are the configuration of WAMP? ... View Questions/Answers

zend framework 2  January 11, 2013 at 11:53 AM
i am new in zf2 and i want to develop a website in zf2 so can anyone help me to figure out the(login and signup page) with database. ... View Questions/Answers

How to set left and top positions of alert box using JQuery in the below code?  January 11, 2013 at 11:31 AM
<script> $(document).ready(function() { if(document.getElementById("faxNoId").value=="- -"){ var show=document.getElementById("add"); var hide=document.getElementById("edit"); show.style.display = "inline"; hide.style.... View Questions/Answers

Changing MySQL Port Number  January 10, 2013 at 10:08 PM
How to change the MySQL port no in windows. ... View Questions/Answers

scope of strategic management  January 10, 2013 at 6:09 PM
What is the need and scope of the strategic management for an organisation or industry? ... View Questions/Answers

Jpanel allignment  January 10, 2013 at 5:20 PM
i have two panels added one below anotehr. and i have a one button. when i clicked button. the first panel ara should be overlapped with second panel. i mean second panel size should cover both paenls size using gribaglayout or any layout. need quick reply. thanks in advance. ... View Questions/Answers

Features of Strategic Management  January 10, 2013 at 5:02 PM
What is the features and scope of the strategic management? ... View Questions/Answers

Session time  January 10, 2013 at 12:45 PM
I need to develop an application has a user id and password to login and maintain the session for 8 minutes. All the pages under the login are not available if there is no activity for 8 minutes. ... View Questions/Answers

What is XAMPP?  January 10, 2013 at 12:02 PM
What is XAMPP and how can i install it on my computer? So far, i have worked on WAMP server, is XMPP is different than Wamp? ... View Questions/Answers

Aggregrate function Max() in db  January 10, 2013 at 10:36 AM
Hi everyone i have a question and stuck with this problem. i have a table like Brand in mySql db where brandid(varchar) is generating automatically.. im having a Db connection class and a method for generating id. Mycode for id generation is: public String GetId(Str... View Questions/Answers

remove given error  January 9, 2013 at 11:21 PM
class Amol { public static void main(String args[]) { System.out.println("Hello"); } } D:\ammy>javac Ammy.java Ammy.java:5: cannot find symbol symbol : variable out location: class System System.out.println("Hello"); ^ 1 error ... View Questions/Answers

java  January 9, 2013 at 9:16 PM
As we know array holds the similar kind of elements, then in collection how toArray() method will convert the collection having different objects to an array having similar objects in java? ... View Questions/Answers

java  January 9, 2013 at 9:16 PM
As we know array holds the similar kind of elements, then in collection how toArray() method will convert the collection having different objects to an array having similar objects in java? ... View Questions/Answers

java  January 9, 2013 at 9:16 PM
As we know array holds the similar kind of elements, then in collection how toArray() method will convert the collection having different objects to an array having similar objects in java? ... View Questions/Answers

java  January 9, 2013 at 9:16 PM
As we know array holds the similar kind of elements, then in collection how toArray() method will convert the collection having different objects to an array having similar objects in java? ... View Questions/Answers

java  January 9, 2013 at 9:16 PM
As we know array holds the similar kind of elements, then in collection how toArray() method will convert the collection having different objects to an array having similar objects in java? ... View Questions/Answers

collection  January 9, 2013 at 9:13 PM
As we know array holds the similar kind of elements, then in collection how toArray() method will convert the collection having different objects as elements to an array in java? ... View Questions/Answers

java question  January 9, 2013 at 7:30 PM
Hello sir/mam, In collection there is method called toArray() which is used to convert collection into array at tat time array is used 2 store diffferent objects,how is it possible can you describe it briefly? ... View Questions/Answers

java question  January 9, 2013 at 7:30 PM
Hello sir/mam, In collection there is method called toArray() which is used to convert collection into array at tat time array is used 2 store diffferent objects,how is it possible can you describe it briefly? ... View Questions/Answers

java question  January 9, 2013 at 7:30 PM
Hello sir/mam, In collection there is method called toArray() which is used to convert collection into array at tat time array is used 2 store diffferent objects,how is it possible can you describe it briefly? ... View Questions/Answers

java question  January 9, 2013 at 7:30 PM
Hello sir/mam, In collection there is method called toArray() which is used to convert collection into array at tat time array is used 2 store diffferent objects,how is it possible can you describe it briefly? ... View Questions/Answers

problem with package  January 9, 2013 at 7:13 PM
Dear sir, i have created one java file with package com.net; and i compiled the program.it showing the .class file in " net" folder.The problem is i want to use that .class file in some other project.well i created the object and set the class_path but still it showing error message as can n... View Questions/Answers

Jbutton  January 9, 2013 at 6:18 PM
How to get the enter key function in multiple jbutton?? ... View Questions/Answers

com in ms word  January 9, 2013 at 4:39 PM
how to use com object to fetch data from ms word and storing it into sql database. ... View Questions/Answers

com in ms word  January 9, 2013 at 4:39 PM
how to use com object to fetch data from ms word and storing it into sql database. ... View Questions/Answers

what is business policy & strategic management  January 9, 2013 at 4:08 PM
what is business policy & strategic management? Is there any difference in between two? ... View Questions/Answers

jtabbedpane  January 9, 2013 at 3:56 PM
How to add jtextfield or jtabbedpane by coding using java netbeans?? plzz help ... View Questions/Answers

VERIFICATION  January 9, 2013 at 3:02 PM
How to send verification mail on alternate mail id which is filled in login detail by directly catch the alternate mail id after login submission. ... View Questions/Answers

Time Table in Java  January 9, 2013 at 1:07 PM
Hi, Deepak i am developing a time table for a school on java,but i am confuse how to start so please give me idea about this. ... View Questions/Answers

retrieving image from mysql db with standard height and width  January 9, 2013 at 11:26 AM
Hi . Here is my code to retrieve an image from mysql db. Its working properly. But i want the image with specified width and height. How to specify it in this code. Thanks in advance. <%@ page language="java" contentType="text/html; charset=ISO-8859-1" ... View Questions/Answers

retrieving image from mysql db with standard height and width  January 9, 2013 at 11:25 AM
Hi . Here is my code to retrieve an image from mysql db. Its working properly. But i want the image with specified width and height. How to specify it in this code. Thanks in advance. <%@ page language="java" contentType="text/html; charset=ISO... View Questions/Answers

Collection Framework  January 9, 2013 at 1:21 AM
Please help me out..I have a class as below public class Employee { private int Id; private String name; private int salary; private int age; } public class Collection { public static void main(String[] ar... View Questions/Answers

java question on exception  January 8, 2013 at 11:22 PM
can we use inbuilt exception variable with throw keyword in java ... View Questions/Answers

How to get the full path location using input type=file  January 8, 2013 at 6:36 PM
Hi. I have used input type=file> in HTML to select an image. But it selects only the image but not with its full path location. how to do it? Thanks in advance. ... View Questions/Answers

currency symbols in excel  January 8, 2013 at 6:21 PM
How to add a currency symbol in Excel sheet? Please guide me. ... View Questions/Answers

How to check text in textbox using JavaScript  January 8, 2013 at 6:11 PM
How to check text in textbox using JavaScript I have a form in HTML that contains text feilds and a submit button. The main purpose of this form is to take input from user. My qestion is that is it possible to check text feilds for text or null value. I want the HTML form... View Questions/Answers

search for exact match in excel  January 8, 2013 at 5:49 PM
How to search for an exact match in excel and show data if the matched sting is found? Please tell me the script. Thanks in Advance! ... View Questions/Answers

what is sata cables for hard drive  January 8, 2013 at 3:34 PM
what is sata cables for hard drive? ... View Questions/Answers

How to give value for select in HTML dynamically using javascript  January 8, 2013 at 3:34 PM
hi. Consider the situation i am having 2 select options called degree and department. if i select a degree the departments corresponding to that degree only should be displayed in the dept list. how to do this using javascript? ... View Questions/Answers

to fetch data from ms word and storing into database  January 8, 2013 at 2:13 PM
i want to know how to fetch datafields from ms word and storing into database??? please answer soon .its urgent. ... View Questions/Answers

constructor inheritance  January 8, 2013 at 1:07 PM
can we inherit constructor ?if not then why yhis example is given class A { public A() { System.out.println("In A ctor"); } } class B extends A { public B() { System.out.println("In B ctor"); ... View Questions/Answers

in string how will write the return statement..........?  January 8, 2013 at 12:43 PM
import java.util.Scanner; class BinaryConversion12{ static int j=1; static int l=1; public static void main(String args[]){ int i=Integer.parseInt(args[0]); if(i>=256){ System.out.println("please enter decimal no should be lessthan 256"); } else{... View Questions/Answers

how to dynamically create one file with any example in php  January 8, 2013 at 12:17 PM
how to dynamically create one file with any example in php ... View Questions/Answers

jFormattedTextField  January 8, 2013 at 11:54 AM
Restrict TextField to enter only 2 digits before and after decimal point in Java Swings? please help ... View Questions/Answers

Tag In Project POM To Close My Java Application If JRE 1.6 Is Not Found?  January 8, 2013 at 11:31 AM
I have an application compiled in Java. I build my code through Maven. I want a tag in my project POM, so that if JRE 1.6 is not found in the system during run-time, it should not allow my Java application to launch. Can I get any help with regard to this ? ... View Questions/Answers

pass data from java frame to file  January 8, 2013 at 9:54 AM
i want to write the data to file, and data must be copy from java frame java frame contains 7-8 labels n below that 1 table. i want store all this data to 1 file. plz help me ... View Questions/Answers

Image in mysql  January 8, 2013 at 9:36 AM
Hi. How to insert and retrieve images in mysql db using JSP or JAVA Servlet? Thanks in advance. ... View Questions/Answers

Exception occurred com.mysql.jdbc.PacketTooBigException  January 8, 2013 at 9:34 AM
Hi. I am trying to insert an image to mysql db. but I am getting the exception "Exception occurred : com.mysql.jdbc.PacketTooBigException: Packet for query is too large (2291161 > 1048576). You can change this value on the server by setting the maxallowedpacket' variable.". how to resolv... View Questions/Answers

Exception: com.mysql.jdbc.Driver  January 7, 2013 at 9:15 PM
How to resolve Exception: com.mysql.jdbc.Driver in netbeans? Thanks in advance. ... View Questions/Answers

netbeans with mysql and tomcat  January 7, 2013 at 9:09 PM
Hi. I have to run a JSP or JAVA file in netbeans with mysql database and tomcat server 7.0. But while the page loading itself it say error. ClassNotFoundException: com.mysql.jdbc.Driver. How to resolve it. Thanks in advance. ... View Questions/Answers

Running Java Applications as software  January 7, 2013 at 5:40 PM
Please tell me what to do if you want your java application to run like a real software,eg a java GUI application that connects to the database(Mysql)running on the computer like any other windows software. ... View Questions/Answers

jbutton  January 7, 2013 at 5:08 PM
How to use enter function in jbutton?plzz help ... View Questions/Answers

update the java code in Tortaise SVN  January 7, 2013 at 5:07 PM
HI , I need to update the code in my local workspace. after installing SVN plugins all projects are showing block astricks in my code . please let me know how to processed further to get latest code through Tortaise SVN in IBM Rational application. ... View Questions/Answers

upload image and fields.....fields is id name.....  January 7, 2013 at 3:07 PM
Hi this is sreenu my problam is capcharing data to the servler thi is my frame Id: Name: browse:Image are file; ... View Questions/Answers

upload image and fields.....fields is id name.....  January 7, 2013 at 3:07 PM
Get Data using Java Servlet The frame takes following input.. Id: Name: browse:Image are file;... View Questions/Answers

Core Java  January 7, 2013 at 1:02 PM
Hi, can one please share the code to count the occurance of each charaters in a given String?? For example: String is "aabbcad" o/p will be:- a3b2c1d1 or a=3, b=2,c=1,d=1 ... View Questions/Answers

changing the file content  January 7, 2013 at 12:44 PM
I have requirement like this, a file contain maximum 1000 lines. I want to cahnage the 501 line content. I know this logic , reading the file content and changeing the 501 line content and crating one more file and storing this changeing information String line=null;... View Questions/Answers

What is webservices?  January 7, 2013 at 12:11 PM
What is web-services and what are the different types of web-services? It would be great if someone explain me the difference between these types of web-services in Java. ... View Questions/Answers

Sum database colum in java  January 7, 2013 at 11:07 AM
please i have two columns-col1 and col2, col1 contain item and col2 contain the quantity of the item columns and their corresponding quantity: cup 4, Soap 5, seat 4, cup 3, Soap 4 how will i query the database to sum the Items and display output so that it will be like this Cup ... View Questions/Answers

sum database column  January 7, 2013 at 10:55 AM
please i have two columns-col1 and col2, col1 contain item and col2 contain the quantity of the item col1 col2 Key 4 Soap 5 seat 4 Key 3 Soap 4 how will i query the database to sum the Items ... View Questions/Answers

DMCA.com