Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

jpa one-to-many persist children with its ID  October 10, 2012 at 12:08 PM
@Entity public class Item { @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column private Long id; @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "item") private List<Feature> features= new ArrayList<Feature... View Questions/Answers

Core Java  October 10, 2012 at 9:35 AM
Hi, Can any one please share the code for Binary search in java without using builtin function?? ... View Questions/Answers

palindrome array problem  October 10, 2012 at 8:23 AM
I'm having trouble figuring this assignment out. Can someone please help me? Generate (write the code) and save in an array Palidrome[250][5] all the 5 letter words using {a, b, c} Write the code and show the execution for: a.) Count the number of palindromes in this se... View Questions/Answers

Advertisement

write those 3 questions (class)  October 10, 2012 at 4:54 AM
1) write a function minE which takes an array of distinct integers and returns the smallest number. (If this is too easy return the 2nd smallest element.) (If this is still too easy, also pass an int k to minE and return the k smallest element.) 2) write a function rev which takes an array of int... View Questions/Answers

java: implement a class queue  October 10, 2012 at 4:52 AM
Implement a class Queue which supports the following operations: boolean isEmpty() Returns true if the queue is empty, and false otherwise. int peak() Returns the value at the front of a non-empty queue without deleting it. int pop() Removes the ite... View Questions/Answers

swing application to import a object in a excel  October 10, 2012 at 12:07 AM
Hi sir, I want to make a swing application where I can import a object in a cell of a excel by clicking a button. I am using Apache POI for this. after a long try I am not able to do it. please help. The details of the excel operation which i want to do by one click: in excel its ... View Questions/Answers

Import object in Excel using java swing  October 10, 2012 at 12:03 AM
Hi sir, I want to make a swing application where I can import a object by clicking a button. I am using Apache POI for this. after a long try I am not able to do it. please help. The details of the excel operation which i want to do by one click: in excel its in 'Insert' rib... View Questions/Answers

Count number of "*"  October 9, 2012 at 11:18 PM
I have this code to count the number of * from a string entered. but I need to find it from an text file. Any idea? import java.lang.String; import java.io.*; import java.util.*; public class CountVowels { public static void main(Strin... View Questions/Answers

mouse events  October 9, 2012 at 8:21 PM
When i click a button i want to retrieve image and audio from database and play it. how can i do dis. I m using Netbeans IDE and mysql for database. pls do hel[p me ... View Questions/Answers

java.sql.SQLException: Operation not allowed after ResultSet closed  October 9, 2012 at 8:17 PM
package processing; import java.io.; import java.math.BigDecimal; import java.sql.; import java.util.*; public class Processing { public static void main(String[] args) { String str = "9035"; try { Con... View Questions/Answers

java/jsp  October 9, 2012 at 7:07 PM
In a JSP program called books.jsp, the Java code out.print(request.getParameter(‚??number‚??)); displays "1111111‚??. What are the possible ways for the parameter number to have got its value? ... View Questions/Answers

JSP-parameters possible ways  October 9, 2012 at 6:48 PM
In a JSP program called books.jsp, the Java code out.print(request.getParameter(‚??number‚??)); displays ‚??1111111‚??. What are the ways for the parameter number to have got its value? ... View Questions/Answers

JSP-parameters possible ways  October 9, 2012 at 6:48 PM
In a JSP program called books.jsp, the Java code out.print(request.getParameter(‚??number‚??)); displays ‚??1111111‚??. What are the ways for the parameter number to have got its value? ... View Questions/Answers

operating system  October 9, 2012 at 4:33 PM
write a programe in java that print system information like which process are in running state and those process used which resourses ... View Questions/Answers

ajax  October 9, 2012 at 3:36 PM
how to connect ajax with mysql without using php,asp or any other scripting language. please answer soon ... View Questions/Answers

conflicting databases  October 9, 2012 at 1:12 PM
i recently installed xampp including apache and mysql. i need to study php in dreamweaver. bt i already installed mysql for jsp project in netbeans. now mysql in xampp showing this result. 1:10:05 PM [mysql] MySQL Service detected with wrong path 1:10:05 PM [mysql] Change XAMPP ... View Questions/Answers

conflicting databases  October 9, 2012 at 1:12 PM
i recently installed xampp including apache and mysql. i need to study php in dreamweaver. bt i already installed mysql for jsp project in netbeans. now mysql in xampp showing this result. 1:10:05 PM [mysql] MySQL Service detected with wrong path 1:10:05 PM [mysql] Change XAMPP ... View Questions/Answers

mithunreddy  October 9, 2012 at 12:15 PM
Blockquote Is it better to choose Java web services..... Can you please tell me about career in Java web services. Blockquote ... View Questions/Answers

How to get country locale from a http request  October 9, 2012 at 11:41 AM
Hi, I Have a requirement like , i need to get the country locale(from whcih country he is logged in) when user login to a web application. Based on that country locale i am going to implement business logic. Can anyone help me out to get this done. any help would be highly... View Questions/Answers

Java program problem  October 9, 2012 at 7:16 AM
Hi, I took the chance to login here in your educational page due to my questions in mind about my java programming assignment. Please help me. I provided below the program assignment. Thanks in advance. Create program that: Will search through two directory structures and produce... View Questions/Answers

java technologies list  October 9, 2012 at 2:31 AM
Please provide me the java technologies list...... View Questions/Answers

new java technologies 2011  October 9, 2012 at 2:31 AM
what are the new java technologies in 2011... View Questions/Answers

latest java technologies  October 9, 2012 at 2:31 AM
latest java technologies...... View Questions/Answers

new java technologies 2012  October 9, 2012 at 2:31 AM
new java technologies 2012... View Questions/Answers

java persistence example  October 9, 2012 at 2:31 AM
java persistence example..... View Questions/Answers

java serialization  October 9, 2012 at 2:31 AM
java serialization...... View Questions/Answers

java serializable default constructor  October 9, 2012 at 2:31 AM
java serializable default constructor...... View Questions/Answers

java technologies in demand  October 9, 2012 at 2:31 AM
java technologies in demand... View Questions/Answers

java technologies overview  October 9, 2012 at 2:31 AM
java technologies overview... View Questions/Answers

java technologies stack  October 9, 2012 at 2:30 AM
java technologies stack...... View Questions/Answers

File structures and indexes  October 8, 2012 at 11:02 PM
for the following BCNF relations that describe departments in a company and employees Dept(did,dname,location,managerid) Emp(eid,sal) Now for this system the following queries are important: List the names and ids of managers for each department in a user-specified location and in... View Questions/Answers

convert the following Pseudocode to java if/else structure  October 8, 2012 at 8:27 PM
dirfrom=D:/processimagessoftware/software/images dirto=D:/processimagessoftware/software/processed/ dirto=D:/imagevideodb/ author=3 country=100 state=34 folder=/images/dvd41 dburl=192.168.10.211 database=imagevideodb user=imagevideodb... View Questions/Answers

help for java  October 8, 2012 at 8:24 PM
1.convert the following Pseudo code to java if/else structure if student?s grade is greater than or equal to 90 Print ?A? else if student?s grade is greater than or equal to 80 Print ?B? else if student?s grade is greater than or equal to 70 ... View Questions/Answers

How to perform CRUD operations using gwt on Restlet server 2.0  October 8, 2012 at 6:25 PM
I want to perform CRUD operation using gwt on restlet server 2.0. The CRUD operations are like create, read, update, delete operations.Any generic code will be really helpful.... ... View Questions/Answers

Java Hash table  October 8, 2012 at 4:11 PM
Hi I have to create code to allow the insertion of a sequence of numbers into a hash table,using a fixed size hash table. Then i must... Implement two collision resolution policies:(this is where I am confused) i) Next free space ii) Chaining Finally randomly generate a s... View Questions/Answers

EJB  October 8, 2012 at 2:05 PM
Hi, can any one please share the Document of EJB. I want to learn EJB from basic. Thanks a lot in advance!! ... View Questions/Answers

click on check box  October 8, 2012 at 10:09 AM
I create a check box in HTML and when i click on my check box relative information in page store in database ... View Questions/Answers

check box realtive information in page store in database  October 8, 2012 at 9:58 AM
check box relative information in page store in database... View Questions/Answers

how to store and retrieve image using struts2 and hibernate integration  October 7, 2012 at 11:52 PM
how to store and retrieve image using struts2 and hibernate integration? plz help !! thanks in advance ! ... View Questions/Answers

Imge upload  October 7, 2012 at 6:29 PM
how to upload image in jsp.I am using Glassfish server.. ... View Questions/Answers

problem  October 7, 2012 at 12:53 PM
import java.io.*; class ranveer { public static void main(String args[])throws IOException { BufferedReader in =new BufferedReader(new InputStreamReader(System.in)); int m=Integer.parseInt(in.readLine()); int n=Integer.parseInt(in.readLine()); int a[]=new in... View Questions/Answers

Database backup  October 7, 2012 at 10:07 AM
I am developing c# application in which i am using Microsoft Access database (OLEdb connections). I want to take backup of database programaticaly. Or as i can tae it in sqlserver 2008 r2(.bak) file. How can i tae it? ... View Questions/Answers

How can I do it? .click();  October 6, 2012 at 10:03 PM
I have a very unusual problem. I want to make a script like this: <script> x = document.getElementById("a"); x.click(); </script> So it's click on an element witch one Id's is "a", but I want that it make mouseup in this element. How can... View Questions/Answers

count occourance no of time no between 0 to 9 given by user in java  October 6, 2012 at 5:13 PM
import java.io.*; class count_no { public static void main(String args[]) { try { int [] size=new int[9]; int i,temp=0; DataInputStream dis=new DataInputStream(System.in); for... View Questions/Answers

servlet  October 6, 2012 at 3:35 PM
import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class priti1 extends HttpServlet{ int counter = 0; public void doGet(HttpServletRequest request, HttpServletResponse response)throws Servlet... View Questions/Answers

servlet  October 6, 2012 at 3:31 PM
here is my code.it doesn't work plz help me import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class priti1 extends HttpServlet{ int counter = 0; public void doGet(HttpServletRequest request, HttpServletResponse respons... View Questions/Answers

swing  October 6, 2012 at 12:23 PM
i wanted to create a gui desktop application .that can take the database name and mysql password from text box, and after the click of a button it should show connection status,and go for next from there on button click we can execute my query,on any other operation ... View Questions/Answers

iphone  October 6, 2012 at 11:35 AM
how to combine multiple images into one image..help me with code ... View Questions/Answers

DropDown list  October 6, 2012 at 10:38 AM
how to get mysql database values into dropdown usign java servlet and ajax? ... View Questions/Answers

Jdbc MS-Access question  October 5, 2012 at 11:21 PM
How to delete records from the three table in MS-Access? They are in relationship with each other regarding to data field. ... View Questions/Answers

Jdbc MS-Access question  October 5, 2012 at 11:21 PM
How to delete records from the three table in MS-Access? They are in relationship with each other regarding to data field. ... View Questions/Answers

How to create a loan website?  October 5, 2012 at 6:31 PM
How to create a loan website in Java. ... View Questions/Answers

without using built-in functions  October 5, 2012 at 6:13 PM
Hai sir... Please help me to solve this... Findout occurances of each string in every another string (built - in functions are not at all allowed) all, and, sand, falling wall and sand ... View Questions/Answers

Getting an error :(  October 5, 2012 at 4:13 PM
I implemented the same code as above.. But getting this error in console... Console Oct 5, 2012 10:18:14 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.se... View Questions/Answers

Map  October 5, 2012 at 1:50 PM
If I have an object implementing the Map interface in Java and I wish to iterate over every pair contained within it, what is the most efficient way of going through the map either iterator or for each loop or for loop ... View Questions/Answers

javascript:getElementByClassname:Is it possible to collect all the elements with same classname  October 5, 2012 at 12:35 PM
Is it possible to collect all the elements with same classname in a array n display the array by using getElementByClassname()? like a a1 now i want to take a and a1 n put in single array. can any1 help me ... View Questions/Answers

Dynamic web pages  October 5, 2012 at 11:55 AM
hi, i am just creating a web page using html and javascript. i want to give it a eye catching look using javascript. I just want to know how could i make it happen using javascript functions,like zoom in & zoom out, image loading from database etc. please guide me & help me, so... View Questions/Answers

Count characters from text file in Java  October 5, 2012 at 3:28 AM
At the "Count chracters fro mtext file in Java". I tried to run the code, but the error at the line have the directory of the text file ("C:\text.txt"). I use Eclipse to run this code. I copied the text.txt into the same folder of src of the file, and put my directory is ("C:\users\john\study\tex... View Questions/Answers

compute the average of degrees  October 5, 2012 at 12:21 AM
using c++ language , write a program to do the following 1 enter three degrees of a student by the user . 2 compute the average of his degrees . ... View Questions/Answers

print square of any number  October 5, 2012 at 12:13 AM
using c++ language, write aprogram to print the square of any number entered by the user ... View Questions/Answers

JSP code for forget password  October 4, 2012 at 11:41 PM
I need forget password JSP code.. example http://www.roseindia.net/users/forgotpassword.html ... View Questions/Answers

java  October 4, 2012 at 7:07 PM
If count=0 means it must be deleted if count=1 means it must show some message how i can solve this? Pls help me ... View Questions/Answers

mysql_connect arguments  October 4, 2012 at 4:20 PM
How many arguments a mysql_connection function required to connect to the database? ... View Questions/Answers

exception in thread main while running servlet  October 4, 2012 at 3:58 PM
I got exception in thread main no such method error while running servlet. I have added servlet.api.jar file in classpath.my classpath is C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\Demo\WEB-INF\lib\mysq... View Questions/Answers

AJAX Search  October 4, 2012 at 3:30 PM
I have to create a project where the user enters a letter in a text box and all the names starting with that letter are retrieved. I'm using PHP and MYSQL as the database. Can somebody please suggest me the AJAX coding of this. ... View Questions/Answers

jsp project  October 4, 2012 at 11:50 AM
hi i am sabarish i am doing mini project in EJP..... front end is jsp and back end is SQL SERVER 2012 my project title is friendstouch where its looks like a social networking i need code for how to send mail to user from using friendstouch website and same thing it should send to the user mobile... View Questions/Answers

php create pages automatically  October 4, 2012 at 11:35 AM
How to create pages automatically in PHP? ... View Questions/Answers

new operator for creating the object of inner class  October 4, 2012 at 10:37 AM
Hi , The folliowing is my code : class Outer { class Inner{ void show() { System.out.println("Hello "); } } } class Test { public statis void main(String args[]) ... View Questions/Answers

cannot do the additional operator  October 4, 2012 at 8:28 AM
i got problem with additional and multiplication operator...please anyone help me <html> <head> <title>Simple Calculator</title> <script language = "JavaScript"> // calculate function function calculate () { //get input ... View Questions/Answers

Writing and Reading A File  October 4, 2012 at 6:57 AM
Hello, I've been trying to learn writing and reading data from file for our assignment, but just stuck on how to proceed. Our assignment requires us to make an application to read and write customer contact information the user enters. Our assignment requires us to make GUI apps. I decided to mak... View Questions/Answers

c program  October 3, 2012 at 11:12 PM
plz send me program for this. write a program to print the following code? 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 12 3 4 5 6 7 8 9 10 11 12 13 4 ... View Questions/Answers

c program  October 3, 2012 at 11:08 PM
plz send me program for this. write a program to print the following code? (in c language) 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 12 3 4 5 6 7 8 9 10 ... View Questions/Answers

form validate and perfom action immediatly  October 3, 2012 at 8:51 PM
This is ok, but what i'm looking for is whenever a user input different data his input has to validate and immediately he needs to redirect to a particular webpage based on the input provided. for ex: suppose if he enters input like "delhi" for Place and "18" f... View Questions/Answers

Works only for one row  October 3, 2012 at 8:01 PM
Hi, My below code is working only if there is a single row. could you please help me in doing it for all the rows retrieved from the database. <%@page import="java.util.concurrent.CountDownLatch"%> <%@include file="DBCon.jsp" %> <html>... View Questions/Answers

Export Extjs Gridview data to excel in jsp  October 3, 2012 at 6:07 PM
i need to export the extjs girdview data to excel can you please help me thanks in advance ... View Questions/Answers

Core Java  October 3, 2012 at 5:24 PM
Hi, can any one please tell me the uses of return type,"Super" and "this" calling statement in Java?? why do we required this,super calling statement?? why return type is required?? ... View Questions/Answers

Java I/O problem  October 3, 2012 at 5:11 PM
Write a Java application that prompts the user to input their Name, Address, Date of Birth and Student ID number using the standard input - this information should then be saved to a file named studentData. The program should use the FileWriter class and an appropriate processing stream ... View Questions/Answers

combining 5 images and text in between to one single image in java  October 3, 2012 at 5:09 PM
Hi I have to combine 5 images and text in between to one single image. I have image followed by description about the image. I have to put them together and create and single image for download. any help would be appreciated. Thank you. ... View Questions/Answers

how to post data in mysql php form  October 3, 2012 at 4:48 PM
how to post data in mysql php form ... View Questions/Answers

how to connect to database in php using mysql  October 3, 2012 at 4:47 PM
how to connect to database in php using mysql ... View Questions/Answers

how to create a user registration form in php  October 3, 2012 at 4:45 PM
how to create a user registration form in php ... View Questions/Answers

login page in php  October 3, 2012 at 4:42 PM
How to create a login page in php? ... View Questions/Answers

jar file built by ant jar task does not have all the dependant jars and throws exception while reading the appplicationContext,xml  October 3, 2012 at 2:12 PM
I have a spring class with main method. Inside the class am trying to read the values applicationContext.xml . My intention is to jar this main class along with its dependant jars,property files and applicationContext.xml .Hence i have my target as below <target ... View Questions/Answers

jsp to access query  October 3, 2012 at 1:14 PM
How to insert the values from jsp to access ? ... View Questions/Answers

Excel File data upload into postgresql database in struts 1.x  October 3, 2012 at 11:06 AM
Dear members please explain how Excel Files data upload into postgresql database in struts 1.x ... View Questions/Answers

Updating user profile  October 3, 2012 at 10:33 AM
how should i provide user to update his profile with edit option including entered data by user should be shown in jsp page fileds ... View Questions/Answers

Insert data in mysql database through jsp using Prepared Statement ---- Please Resolve it  October 2, 2012 at 11:15 PM
I have tried the following code Database creation: create database studentdb; create table stu_info ( ID int not null auto_increment, Name varchar(20), City varchar(20), Phone varchar(15), primary key(ID) ); datainsertion.js... View Questions/Answers

Insert data in mysql database through jsp using Prepared Statement ---- Please Resolve it  October 2, 2012 at 11:15 PM
I have tried the following code Database creation: create database studentdb; create table stu_info ( ID int not null auto_increment, Name varchar(20), City varchar(20), Phone varchar(15), primary key(ID) ); datainsertion.jsp: <... View Questions/Answers

openning the pdf or doc file in same jsp  October 2, 2012 at 3:35 PM
**how to open the pdf and doc file in same jsp after clicking the link or button (which is with out moving to the next page). will some body help me on this @simple format please it will be helpfull for my future** ... View Questions/Answers

java  October 2, 2012 at 3:21 PM
can we use the word "buffer" as a variable name? ... View Questions/Answers

java  October 2, 2012 at 3:18 PM
can we use buffer as a key word in java? ... View Questions/Answers

date in textbox on page load  October 2, 2012 at 1:06 PM
i want to insret the current date in textbox but this code dosen't work and the value of text box will be blank <script type="text/javascript"> function addDate() { var mydate = new Date(); var year = mydate.ge... View Questions/Answers

image retreival  October 2, 2012 at 12:33 PM
I ve stored the path of image and audio in mysql database. how to retrive it and display... Can u pls help me out.. ... View Questions/Answers

make a prog for this query  October 2, 2012 at 12:25 PM
write a program implementing interface for personal data n salary details. interface must contain abstract methods. steps for the program are 1) store the data in text file 2)display salary when emp id matches 3)duisplay emp name whose starts with 'a' 4)display emp name in uppercase so...... View Questions/Answers

Validations  October 2, 2012 at 12:10 PM
Javascript validation is working fine in Internet Explorer browser but it is not working in Mozilla. Can you please let me know the reason. ... View Questions/Answers

Question about a flex...  October 2, 2012 at 11:33 AM
Is there good Future for Adobe flex ? ... View Questions/Answers

SEMISTER  October 1, 2012 at 9:51 PM
It has three tests, all of which count towards the final grade. You are provided with scores from all the tests from both semesters. You are required to compute summary statistics (mean and standard deviation) for each test, for both the semesters. These statistics would be used by the c... View Questions/Answers

How to embedd jre inside the converted .exe file from .jar using Launch4J  October 1, 2012 at 6:09 PM
Hello Sir, I created a .exe file from the .jar file using Launch4J tool. Now As per my need i have to execute it without installing jre .Means that jre should be embedded in the .exe file. Will you plz guide me how to achieve this goal. Thank you Sir. ... View Questions/Answers

Java servlet with jsp on sql server  October 1, 2012 at 3:43 PM
How to delete a user by an admin with check box in Java Servlet with jsp on Sql Server? ... View Questions/Answers

Getting mysql table in textbox  October 1, 2012 at 2:18 PM
how to get mysql table values into textbox in java using ajax and servlets ... View Questions/Answers

DMCA.com