Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Java interview question  February 4, 2013 at 1:47 AM
Hello i had an online test in some company and i didn't succeed in doing it(they gave me a timeline) this was the test: Problem: 1) You have a bunch of log files in: C:\CloudShareCodeChallenge\Challenge Sample data with expected results (below) in... View Questions/Answers

Floyd triangle  February 3, 2013 at 5:56 PM
1 01 101 0101 10101 plz give me code for this ... View Questions/Answers

database  February 3, 2013 at 4:46 PM
how we ca upload the data in the database file(ms access) ... View Questions/Answers

Ads

database  February 3, 2013 at 4:40 PM
sir.. how we can uplaod the database in the data file(ms access)please send me a solution ... View Questions/Answers

print rectangle pattern in java  February 3, 2013 at 4:35 PM
* * * * * * * how to generate this pattern in java?? ... View Questions/Answers

Question about parsing XML document with DOM in JAVA.  February 2, 2013 at 11:08 PM
Hi, I need to parse a XML file witch has info about classes. So i have for each class to have its methods and for each method to get its parameters. I'm trying to do it with multiple for loops, one iside the other but it doesnt work. My XML is this below! <SystemD... View Questions/Answers

print reverse string without api  February 2, 2013 at 7:26 PM
accept a string and print reverse without using api ... View Questions/Answers

hi  February 2, 2013 at 6:11 PM
what are the steps mandatory to develop a simple java program? what is default value for int type of local variable? what are the keywords available in simple HelloWorld program? Class is a blueprint of similiar objects(True/False)? null is a keyword.True/False? ... View Questions/Answers

local host sharing on same network compute  February 2, 2013 at 5:43 PM
i have an desktop bill application on wamp and i want to use it on other computer on same network . computer connected with hub or switch. ... View Questions/Answers

Begineer Help Help Please Thanks A million ) I am using Jcreator  February 2, 2013 at 2:59 PM
System.out.println(" Income Statement"); System.out.print("Year: "); Arrays.sort(Year); System.out.print(Arrays.toString(Year)); ... View Questions/Answers

program  February 2, 2013 at 2:07 PM
write a program different between to dates in terms of days in java ... View Questions/Answers

combobox cannot be resolved in JavaFX  February 2, 2013 at 1:35 PM
I want to design one application with a combobox containing items. and while selecting i want to give user autocomplete suggestion. but while doing this combobox is not getting resolved. i have attached the files. Ademo.fxml View Questions/Answers

Works when run from desktop but....  February 2, 2013 at 4:57 AM
I used the code provided here for a pie chart using swing in Java, and when I saved it to my desktop, it ran fine, and worked as explained, but then I tried to add the same code to NetBeans 7.2.1, and got errors saying that the lines, g2d.setColor(colors.get(i)); Double val = valu... View Questions/Answers

Hi..  February 1, 2013 at 9:33 PM
diff between syntax and signature? ... View Questions/Answers

Please write code for this program in java and Explain it ? pl'sssssssss  February 1, 2013 at 9:17 PM
Question: We are given an array of 2n integers wherein each pair in this array of integers represents the year of birth and the year of death of a dinosaurs respectively. The range of valid years we want to consider is [-100000 to 2005]. For example, if the input was: -80000 -79950 20 70 ... View Questions/Answers

What is the responsibility of project manager in software company  February 1, 2013 at 2:03 PM
What is the responsibility of project manager in software company? ... View Questions/Answers

how to update combobx's selected value to database with respect toselected multiple checkboxes  February 1, 2013 at 10:40 AM
suppose this if form1.jsp in which i am going to display records from database out.println("<tr><td>"+"<input type='checkbox' id='r1' value="+r+" name='test' >"+"</td><td>"+r+"</td><td>"+pname+"</td><td>"+add1+"... View Questions/Answers

Hibernate Basic Example not working  January 31, 2013 at 7:37 PM
I have implemented basic hibernate example from your site . In console i got output but database is not affected. hbm.xml ... View Questions/Answers

on line exam  January 31, 2013 at 7:07 PM
how we can upload the data on the server from any site ... View Questions/Answers

online exam  January 31, 2013 at 6:29 PM
how we can upload the data on the server using any site ... View Questions/Answers

online exam  January 31, 2013 at 6:29 PM
how we can upload the data on the server using any site ... View Questions/Answers

Threads(suspend(),resume()) run time abnormal behaviour  January 31, 2013 at 4:37 PM
class A implements Runnable { Thread t; A() { t=new Thread(this); t.start(); } public void run() { int i=0; while(true) { //try //{ ... View Questions/Answers

from textfile to textfield  January 31, 2013 at 4:14 PM
Hi! Please help. I'm beginning to understand a bit about java thanks to this website but could you help me with this problem? Say I create a text file "Info.txt" and I saved in it the name and address of a person. I would like to retrieve each of the data in the text file and place it in ... View Questions/Answers

How Can I get ArrayList of Data from jsp with ajax request  January 31, 2013 at 4:07 PM
Hi, I retereved 5 Employee Record of Data from Struts Action class to jsp with ajax response. But I don't how how can reterve this dynamic 5 employee records to struts action class. Plese tell me how to send this 5 employee record table into struts action. ... View Questions/Answers

Store image from html img tag into mysql db using java  January 31, 2013 at 2:19 PM
Hi. How to get the image displayed in the < img > tag of HTML and store it in the mysql database using java? Thanks in advance. ... View Questions/Answers

Hibernate  January 31, 2013 at 1:15 PM
Please tell me the difference between hibernate and jdbc. ... View Questions/Answers

sql query search function  January 31, 2013 at 12:36 PM
i have a textbox on a form , i like a search a data in the form, when i give whatever name and id or etc..its will search and show the same form , so help me using jsp ... View Questions/Answers

dependent radio button  January 31, 2013 at 7:17 AM
Hi. I have 4 radio buttons say all,chocolate,cookie,icecream. If I select all the other 3 should not able to be selected. If I select any 1 or 2 among chocolate,cookie,icecream , all should not able to be selected. I should not able to select the three chocolate,cookie,icecream. If I try to selec... View Questions/Answers

Java Help (Beginer Tutorial)  January 31, 2013 at 5:49 AM
Hi this is my first year for Java and my teacher has given some pratice/tutorial problems but I am cluess on what I am doing so I was wondering if anyone was willing to help me solve a couple of them so I could get an Idea of how they work. The 2 probelms are listed below I would appericate any ... View Questions/Answers

Java script in servlet  January 30, 2013 at 8:59 PM
Hi. How to use javascript inside java servlet? Thanks in advance. ... View Questions/Answers

Error  January 30, 2013 at 8:56 PM
Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package com.dept.iso; import java.io.IOException; import java.io.PrintWriter; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.Resu... View Questions/Answers

Error  January 30, 2013 at 8:54 PM
Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package com.dept.iso; import java.io.IOException; import java.io.PrintWriter; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.... View Questions/Answers

Error  January 30, 2013 at 8:54 PM
Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package com.dept.iso; import java.io.IOException; import java.io.PrintWriter; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.... View Questions/Answers

Error  January 30, 2013 at 8:54 PM
Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package com.dept.iso; import java.io.IOException; import java.io.PrintWriter; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.... View Questions/Answers

How to store image into database  January 30, 2013 at 4:02 PM
Hi, all I want to store image into database using Java. Can anyone help me that how can i store image into database using Java. Thanks in advance. ... View Questions/Answers

Core Java  January 30, 2013 at 12:44 PM
Hi, I want to insert an elements inside an array. I have one array1 of size 5(where all teh indexs are full).I have created one more array2 of size 6 and inserted all the elemnts of array1 inside array2. Now I want to insert an element in 3rd postion of array2 such that elements present ... View Questions/Answers

How to get the text from textarea in HTML and store it in database using javascript and jsp  January 30, 2013 at 9:07 AM
How to get the text from textarea in HTML and store it in database using javascript and jsp <script> function str() { <% Class.forName("org.postgresql.Driver"); con=DriverManager.getConnection("jdbc:postgresql://localhost:5432/test","p... View Questions/Answers

Reading excel via JSP  January 29, 2013 at 9:09 PM
The problem is while reading cells values which all are having "space" between the word, I can read only till space after that space the word has been dropped. for Example Name CareerStart gopinath Ashokan December 2005 after rea... View Questions/Answers

for management system  January 29, 2013 at 8:16 PM
i need to store some data and to display the stored data and again to modify the data that have been stored and also with either java swing or java awt in format of similar to tat of form ... View Questions/Answers

loops  January 29, 2013 at 7:19 PM
how to print 11 12 22 13 23 33 14 24 34 44 15 25 35 45 55 plz reply fast...EMERGENCY... ... View Questions/Answers

how to retrieve image from mysql database using java and show it in HTML img tag ?  January 29, 2013 at 6:28 PM
how to retrieve image from mysql database using java and show it in HTML img tag ... View Questions/Answers

Java Script.  January 29, 2013 at 2:15 PM
Hi Sir, The below java script code is not working in Google chrome can yo give me the solution as soon as possible. <script type="text/javascript"> function setValue(){ var val=""; var frm = document.getElementById("SearchCandForm"); var cbs = d... View Questions/Answers

Java Script.  January 29, 2013 at 2:15 PM
Hi Sir, The below java script code is not working in Google chrome can yo give me the solution as soon as possible. <script type="text/javascript"> function setValue(){ var val=""; var frm = document.getElementById("SearchCandForm"); va... View Questions/Answers

Java Script.  January 29, 2013 at 2:15 PM
Hi Sir, The below java script code is not working in Google chrome can yo give me the solution as soon as possible. <script type="text/javascript"> function setValue(){ var val=""; var frm = document.getElementById("SearchCandForm"); va... View Questions/Answers

Java Script.  January 29, 2013 at 2:15 PM
Hi Sir, The below java script code is not working in Google chrome can yo give me the solution as soon as possible. <script type="text/javascript"> function setValue(){ var val=""; var frm = document.getElementById("SearchCandForm"); va... View Questions/Answers

jquery search for html pages  January 29, 2013 at 2:07 PM
i want to search html pages with jquery, it is k for single page but i want search more than one page at a time. Thank you in advance ... View Questions/Answers

i need some help in understanding the following codes.thanks..  January 29, 2013 at 1:37 PM
this code is to perform LocalColorHistogram.But i can't understand it public Vector<Double> getFeatureVector(int[] inImg, int height, int width, int[] maskImg, int flag, double feature, int featureDimension) { int gridCount = 4; int row = gridCount * gridCount; ... View Questions/Answers

java  January 29, 2013 at 1:25 PM
Hi, I am facing problem in delete an elemnts in array. can any one please sahre the code for the same without using collection(Built in function) Regards": Akash ... View Questions/Answers

core java  January 29, 2013 at 1:23 PM
Hi, I am facing problem in adding/inserting an elemnts in array. can any one please sahre the code for the same without using collection(Built in function) Regards": Akash ... View Questions/Answers

Java Script.  January 29, 2013 at 1:12 PM
The below code is nit working in Google chrome can any one tell me the solution as soon as possible. <script type="text/javascript"> <!-- function setValue(){ var val=""; var frm = document.getElementById("SearchCandForm"); var cbs = document... View Questions/Answers

struts2 excel downloads  January 29, 2013 at 7:35 AM
hi friend, how to set Timestamps(Date+time) values to excel sheet cells. ... View Questions/Answers

struts2 excel downloads  January 29, 2013 at 7:24 AM
hi sir, am new to the real time environment. am going to create excel sheet and setting values to excel sheet from db table dynamically by using Hibernate persistence logic.......am using struts2 and hibernate3.2 please help me ... View Questions/Answers

upload a file and write it in JSP using servlet  January 29, 2013 at 3:42 AM
Hello, I'm facing a problem here. I want to upload a file through abc.jsp and write the contents of file using a servlet in xyz.jsp. It is supposed to be a excel file which will be displayed as a table on xyz.jsp and this table can be edited. Quite complex, but if someone helps me with writing of... View Questions/Answers

java  January 28, 2013 at 9:08 PM
how to print 11 12 22 13 23 33 14 24 34 44 15 25 35 45 55 ... View Questions/Answers

Should we go for javascript or applets for online exam project using java  January 28, 2013 at 6:14 PM
Hi, I am new to java and i am working on online examination project.As soon as the candidate login successfully a window pop up should appear with question and options. This window pop up should accomplish the entire monitor screen(mean to say task bar should not be visible). Please help me out. ... View Questions/Answers

sending sms from laptop to mobile  January 28, 2013 at 2:23 PM
sending sms from laptop to mobile for multi users ... View Questions/Answers

sending sms from laptop to mobile  January 28, 2013 at 2:23 PM
sending sms from laptop to mobile for multi users ... View Questions/Answers

Internet and Web related questions for Web Master.  January 28, 2013 at 1:54 PM
Explain the difference between the Internet and Web. What are Web browsers? Explain the two main functions of a Web browser. Write a note on the structure of a Web page. What is Java? What are the applications of Java that you can use for W... View Questions/Answers

core java  January 28, 2013 at 1:46 PM
Hi, Cna any one please share the code to print pascal traiangle?? 1 1 1 1 2 1 1 3 3 1 1 4 5 4 1 Regards: Akash ... View Questions/Answers

How to add a DropDown List in Flex DataGrid  January 28, 2013 at 1:42 PM
hi I am trying to add a DropDownList in a DataGrid table. After the user selects one of the items from the drop down list, the Item that I have selected is not reflected or did not get selected. I know I can use ComboBoxGridItemEditor to achieve the result I am asking for. But combo box i... View Questions/Answers

How to add a DropDown List in Flex DataGrid  January 28, 2013 at 1:29 PM
hi I am trying to add a DropDownList in a DataGrid table. After the user selects one of the items from the drop down list, the Item that I have selected is not reflected or did not get selected. I know I can use ComboBoxGridItemEditor to achieve the result I am asking for. But combo box i... View Questions/Answers

mysql doubt  January 28, 2013 at 12:13 PM
1.What are the method to write malayalam in mysql command prompt?Is it necessary to write malayalam corressponding unicode in mysql command prompt? 2.How to store & retrieve Malayalam from mysql databases? ... View Questions/Answers

create folder  January 28, 2013 at 11:51 AM
what code we should write as a web application that it create an empty folder on client's desktop? ... View Questions/Answers

Server side Paging in jsp ?  January 27, 2013 at 9:21 PM
Hi i am student of It . i am learning jsp-servlet and i am trying to do paging in my report generation but i want to do server side paging and i am using oracle 10g in back end . it will be very helpful for my collage project. ... View Questions/Answers

Append Function in Java  January 27, 2013 at 1:32 PM
What is the use of append function in java? How to use the append function to append a string to a buffer string. Thanks ... View Questions/Answers

BEA-010001  January 27, 2013 at 1:07 PM
I've a java web application deployed on Weblogic server. Post deployment, in the logs, I get this warning : > <Warning> <EJB> <BEA-010001> <While > deploying EJB 'AlterEJB', class > oracle.soa.management.internal.ejb.FacadeFinderBean >... View Questions/Answers

Frames from a yuv video file  January 27, 2013 at 10:51 AM
hi, please help me with the java code for extracting frames of yuv video file. After extraction the images should be stored in jpeg format. Please help me. ... View Questions/Answers

Frames from a yuv video file  January 27, 2013 at 10:51 AM
hi, please help me with the java code for extracting frames of yuv video file. After extraction the images should be stored in jpeg format. Please help me. ... View Questions/Answers

STRUTS  January 27, 2013 at 12:41 AM
MAIN DIFFERENCES BETWEEN STRUTS 1 AND STRUTS 2 ??? ... View Questions/Answers

STRUTS  January 27, 2013 at 12:41 AM
MAIN DIFFERENCES BETWEEN STRUTS 1 AND STRUTS 2 ??? ... View Questions/Answers

Read specific column data from text file in java  January 26, 2013 at 5:27 PM
My question is if my text file contain 15 columns and i want read specific column data from that text file then what code i should do? ... View Questions/Answers

JSP/Servlet to read and update Excel  January 26, 2013 at 3:45 PM
Hi Team, My requirement is based upon my input(name) value via one jsp, the program(jsp/servlet) should fetch all the column values which is related to my input(name) from Excel(.xls). but the output(column values) should be in editable mode, because the user have access to edit the values and ... View Questions/Answers

Calling In JavaScript Functions from HTML Form To Validate User Entered Data  January 26, 2013 at 9:06 AM
Hello, I have been working for days on my web Form assignment and editing my html to call my functions to validate the user entered data, but to no avail.I finally decided to place the functions in the head. But, I still cannot make a call. Below is my code. Please help. Thanks in advance. ... View Questions/Answers

searching the data  January 26, 2013 at 2:06 AM
respected sir , i am making the desktop application , so how can i search the data which are stored in the mysql databses through click the button and display in jtable through netbeans dynamically please me sir . ... View Questions/Answers

what is the difference between productList==null and productList.size()==0  January 25, 2013 at 7:09 PM
what is the difference between productList==null and productList.size()==0? here productList is of type LIST ... View Questions/Answers

java servlet connectivity problem with access  January 25, 2013 at 3:30 PM
Import java.sql javax.servlet //all packages entered try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:CUSTOMER"); Statement st=con.createStatement(); // Execute an SQL ... View Questions/Answers

java  January 25, 2013 at 2:59 PM
i have a csv file with more than 20 column.its an airport data .i have to read this file and also i have to calculate % delay if flight is delayed more than 15 minutes,percentage of cancellation.in data i have delayed timing in column 14 and destination name is in 17 column.. ... View Questions/Answers

wrapper class  January 25, 2013 at 11:50 AM
why wrapper class does not have a default constructor??? ... View Questions/Answers

want to ask how to update data for runtime selected multiple checkboxes  January 25, 2013 at 10:24 AM
HI I have one problem I have fetched value from oracle database into grid and created runtime textboxes in the grid for the column geocoordsN,GeocoordsE I have checkboxes for each record when I will select more than one checkboxex and entered the values in the textbox then it sh... View Questions/Answers

About Project  January 25, 2013 at 1:44 AM
Hello friends i want to make a project on face reconization this is my first projct so please help me that how i start my projct please tell me some working with image codeing. thanks... ... View Questions/Answers

duplicate records inserting  January 24, 2013 at 11:12 PM
in the application i have provided the text filed on entering and submit the record is getting inserted. my question is i want to avoid duplicate values getting inserted. ex. i am inserting name shashi kumar with the same between them ,records get inserted ,now when i try to insert shashikumar i ... View Questions/Answers

MySQL take backup of a table - example code needed  January 24, 2013 at 7:39 PM
How to take backup of a table in MySQL? I have a database which contains many tables. What is the command to take the backup of one table with data from database? Thanks ... View Questions/Answers

jsp program  January 24, 2013 at 3:09 PM
sir how we can load the data on the server in the on line project ... View Questions/Answers

Struts2 freeze header  January 24, 2013 at 1:15 PM
Sir, I am using display table to list my table in details in database in jsp that i am using title i need to freeze the title in that page while scrolling its also scrolling because my requirement is full listing without pagination. please help me to solve that problem ... View Questions/Answers

WebCrawling  January 24, 2013 at 11:15 AM
how to crawl the URL by using a word or a string or a number.? ... View Questions/Answers

library management project  January 23, 2013 at 8:54 PM
Is there any similiar methods to that of sendredirect in java? ... View Questions/Answers

library management project  January 23, 2013 at 8:49 PM
Is there any similiar methods to that of sendredirect in java? ... View Questions/Answers

Servelet methods  January 23, 2013 at 7:46 PM
In my project we use the sendRedirect method which is nt working in our project i would like to know whether there is any other method which can be used instead of sendRedirect(). ... View Questions/Answers

Cannot convert 1/23/13 1:18 PM of type class java.util.Date to class java.sql.Timestamp  January 23, 2013 at 5:49 PM
I keep receiving this error every time i select date through jsf calendar, I declared my variable as Timestamp not date. my db is postgresQl ... View Questions/Answers

How to display data in jsp from dao using java beans?  January 23, 2013 at 1:07 PM
Hi I need to display data in jsp pulling from dao using java beans, Please can anyone give me the sample application with above topics. Any help would be highly appreciated. Thanks, Lissy. ... View Questions/Answers

How to convert EBCDIC format value into ASCII format value in java  January 22, 2013 at 5:41 PM
how to convert EBCDIC data format into ASCII format data using java Use Case:I my file contains ASCII format values as well as EBCDIC format values.I need to convert EBCDIC data value into ASCII data values. Please help me to solve this issue ... View Questions/Answers

core java  January 22, 2013 at 4:14 PM
Hello, can any one please expain me.I have doubt in Object class. Why it is necessary to override hashCode method with equals method. Since without overriding the hasCode method I am getting the proper output but it is always advisable to override hashCode along with Equals. packa... View Questions/Answers

How to convert Mssql Procedure into Mysql Procedure.  January 22, 2013 at 3:15 PM
Hello Sir, I have a mssql procedure and i need it to be converted to mysql ... Below is my mssql procedure code.. WITH CTE AS ( SELECT ROW_NUMBER() OVER ( ORDER BY CASE ... View Questions/Answers

How to convert Mssql Procedure into Mysql Procedure.  January 22, 2013 at 3:15 PM
Hello Sir, I have a mssql procedure and i need it to be converted to mysql ... Below is my mssql procedure code.. WITH CTE AS ( SELECT ROW_NUMBER() OVER ( ORDER BY CASE ... View Questions/Answers

j2me  January 22, 2013 at 3:12 PM
hey i m doing a project can i create message reader using j2me in nokia phone?? pls give me source code or hint for that.. ... View Questions/Answers

Retrieving specific data from excel  January 22, 2013 at 2:41 PM
Hello everyone, i have written a simple code to retrieve data from excel sheet and working fine, the excel file contain heading for each row written in bold and the student details such as Sl.No, Name, Roll Number followed by it. I want only those students details to be printed. here is my sample... View Questions/Answers

Data Retrival  January 22, 2013 at 1:54 PM
How to get the output With in 2 mins for more than 13 lakhs records.. ... View Questions/Answers

download eclipse helios for windows 7 64 bit  January 22, 2013 at 12:09 PM
How to download eclipse helios for windows 7 64 bit? Thanks ... View Questions/Answers

How to load elements from db when i press next.  January 22, 2013 at 10:32 AM
Hello , I am working on a project "Online Book Mart" using JSP and Servlets and I am astuck at a position. I am using MySql at back end ,. My query is:- Suppose I clicked a link java books in my project, and there are 100 books info stored in the database but i want to show only 20 at the time an... View Questions/Answers

please explain this program  January 21, 2013 at 10:14 PM
public class MainClass { public static void main(String[] args) { System.out.println("Java"); } } ... View Questions/Answers

DMCA.com