Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

java.sql package interfaces  May 24, 2012 at 6:50 PM
In java.sql package majority are interfaces only, how instance will be created for these interfaces? ... View Questions/Answers

JavaScript google map API example.  May 24, 2012 at 6:48 PM
How to Use Google Maps API in JavaScript? ... View Questions/Answers

Collection classes in java  May 24, 2012 at 6:31 PM
Normally a database is used for the data storage.The content/data is saved/stored in data base. Further more what is the reason using java collection classes saved/stored the data/content.I don't understand, what is the idea using java collection classes in project. Or the data is stored in b... View Questions/Answers

Advertisement

Collection classes in java  May 24, 2012 at 6:31 PM
Normally a database is used for the data storage.The content/data is saved/stored in data base. Further more what is the reason using java collection classes saved/stored the data/content.I don't understand, what is the idea using java collection classes in project. Or the data is stored in b... View Questions/Answers

maven fortify plugin  May 24, 2012 at 6:30 PM
hi, I am trying to generate a fortify report using maven. I have downloaded plug-ins fortify-plugin-1.0 ,jenkinsci-fortify360-plugin-8c73d51 and installed it. I have also added the dependencies in my pom.xml file.But it is not working. Can you please help me with how to generate a fortify... View Questions/Answers

XML Parsing Using Sax Parser in J2ME for serverside  May 24, 2012 at 2:39 PM
Hai team, i have doubt in Parsing using sax parser in serverside plz help me for xml parsing in j2me using sax parser on server side thanks in advance... regards Selva ... View Questions/Answers

cannot declare variable inside @interface or @protocol  May 24, 2012 at 11:51 AM
When i declare variable inside the interface, it always send an error saying "cannot declare variable inside @interface or @protocol". Can anyone please tell me why it occurs? @interface DetailViewController : UIViewController UITabBarController *myTab; @end ... View Questions/Answers

What's wrong with my pagination code in JSP?  May 24, 2012 at 10:53 AM
Dear experts, I've tried the following codes which I have copied from Java Ranch forum and deleted whatever lines that NetBean IDE has given me error signal. The resulted page is that it can display all 10 records but I only want 5 records to be shown. Hope someone c... View Questions/Answers

Sorting Country names alphabetically  May 24, 2012 at 10:47 AM
Hello, I have a list of country names in an array. I need a jsp code which will sort me the country names in an alphaberical order. It would be more useful when I get the coding using for loop instead of sort(). This is very urgent issue. Thank you for your concern. ... View Questions/Answers

C Programming  May 24, 2012 at 3:08 AM
hi,how can i write a program in C programming to place reservation in air plane from the menu let the user to inter his/her gender(W or M)and draw seats by using ascii codes and choose where he/she will sit ... View Questions/Answers

column matrix  May 24, 2012 at 12:56 AM
columan wise total matrix? ... View Questions/Answers

column matrix  May 24, 2012 at 12:56 AM
columan wise total matrix? ... View Questions/Answers

using array  May 24, 2012 at 12:53 AM
column wise total of a matrix? ... View Questions/Answers

using array  May 23, 2012 at 11:58 PM
transpose a matrix? ... View Questions/Answers

using array  May 23, 2012 at 11:58 PM
transpose a matrix? ... View Questions/Answers

(Displaying a calendar in GUI  May 23, 2012 at 10:27 PM
(Displaying a calendar) Write a program that displays the calendar for the current month, as Use labels, and set texts on the labels to display the calendar."The Calendar and GregorianCalendar classes," to obtain the information about month, year, first day of the month, and number of days in the... View Questions/Answers

select the foreground color for a label  May 23, 2012 at 10:25 PM
(Using JScrollBar) Write a program that uses scroll bars to select the foreground color for a label, Three horizontal scroll bars are used for selecting the red, green, and blue components of the color. Use a title border on the panel that holds the scroll bars. ... View Questions/Answers

Should not logout after clicking the back/forward button  May 23, 2012 at 10:23 PM
Hi all I have wrote a code for login now. User is able to login but after logging in when he clicks on the back button user automatically gets logged out. very next if clicked the forward button user gets logged in..!! how can I solve this issue? What can I do. Please help. Many thanks..!!! Sorry... View Questions/Answers

convert zip file to byte array  May 23, 2012 at 9:28 PM
Hi,How to convert zip file to byte array,can you please provide program?? Thanks, Ramanuja ... View Questions/Answers

java connecting to oracle db  May 23, 2012 at 7:19 PM
PLZ SAY ME HOW TO INSERT THE VALUES INTO ORACLE THIS IS THE CODE: import java.io.*; import java.sql.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.event.*; public class emp1 extends JFrame implements ActionLi... View Questions/Answers

Calculate factorial of a number.  May 23, 2012 at 5:59 PM
How to calculate factorial of a given number? ... View Questions/Answers

Check even or odd number.  May 23, 2012 at 5:50 PM
How to check given number is even or odd? ... View Questions/Answers

Struts2 and Hibernate  May 23, 2012 at 5:00 PM
I have a simple application in Struts2 and Hibernate which have simple form for entering contact information and after submitting the page it saved to the database. This was a tutorial i was trying from the When i am submitting the form with values it saved to database and it shows the values pre... View Questions/Answers

Struts2 and Hibernate  May 23, 2012 at 5:00 PM
I have a simple application in Struts2 and Hibernate which have simple form for entering contact information and after submitting the page it saved to the database. This was a tutorial i was trying from the site. When i am submitting the form with values it saved to database and it shows the valu... View Questions/Answers

Servletoutputstream size limit.  May 23, 2012 at 4:07 PM
What is the maximum size of ServletOutputStream? ... View Questions/Answers

Servletoutputstream size limit.  May 23, 2012 at 4:05 PM
What is the maximum size of ServletOutputStream? ... View Questions/Answers

Using httpservletresponse interface  May 23, 2012 at 4:01 PM
How do you use httpservletresponse interface? ... View Questions/Answers

Httpservletresponse null pointer exception.  May 23, 2012 at 3:59 PM
What is Httpservletresponse null pointer exception? ... View Questions/Answers

Various methods of httpservletresponse interface  May 23, 2012 at 3:44 PM
What are the various methods of httpservletresponse interface? ... View Questions/Answers

HAAI  May 23, 2012 at 1:32 PM
HAI I NEED CODE FOR ApplicationFrame CLASS WHICH IS USED IN THE BELOW CODE........ import java.awt.*; import org.jfree.ui.*; import org.jfree.chart.*; import org.jfree.chart.plot.*; import org.jfree.data.xy.*; import org.jfree.chart.axis.NumberAxis; ... View Questions/Answers

How to import data from sql server table into an excel file by creating the rows dynamically in the excel according to the dataabase??  May 23, 2012 at 12:47 PM
How to import data from sql server table into an excel file by creating the rows dynamically in the excel according to the dataabase?? There is a table in sql server having 6 columns but the rows keep on increasing in the table time to time. So how to create an excel file according to tha... View Questions/Answers

write java prgram  May 23, 2012 at 11:29 AM
write java program to offer a menu which contains 3 choices to make calculation on 3 shapes.use method for each calculation. ... View Questions/Answers

marquee in html  May 23, 2012 at 10:56 AM
hie frns,i am creating a web site and in that if any user enter any text it shoul scroll in the web site at bottom as marquees..how can i recive da msg frm user how can i do it using html..can any one help me.. thanks in advance ... View Questions/Answers

Removing character from a string in sql.  May 23, 2012 at 9:42 AM
Removing special characters from a string in sql? ... View Questions/Answers

mapview1  May 23, 2012 at 2:11 AM
.h file #import <MapKit/MapKit.h> #define METERS_PER_MILE 1609.344 @interface mymapViewController : UIViewController <MKMapViewDelegate,MKAnnotation,CLLocationManagerDelegate> { CLLocationManager *locationManager; IBOutlet MKMapVie... View Questions/Answers

mapview  May 23, 2012 at 2:04 AM
#import <CoreLocation/CoreLocation.h> #import<CoreLocation/CLLocationManagerDelegate.h> CLLocationManager *locationManager; //======= Reachability *reachability; Reachability* internetReachable; Reachability* hostReachable; Reachabili... View Questions/Answers

upload an image  May 22, 2012 at 8:37 PM
Hello, i would like to upload an image to the database. how can i do it? what field type should i set in the database? thanx ... View Questions/Answers

SimpleQuestionR  May 22, 2012 at 8:32 PM
//why is the output of the program exp1 and 3?whts this concept about ?? class Exp { public int x=3; public void abc() { x+=5; System.out.println("the method of exp"); } } public class Exp1 extends Exp { public int x=8; ... View Questions/Answers

JSP loggin code  May 22, 2012 at 8:22 PM
HI, Please assist me with a JSP code for logon,there should be the Remember me option for both username and password and Remember username for the username. Thank you ... View Questions/Answers

Setting file extension  May 22, 2012 at 7:07 PM
Hi, I have used FileChooser to save a file. When I was trying to save it, the extension of the file is showing 'File'. How can I save that file to .xls ? Thanks ... View Questions/Answers

Removing character from a string in sql.  May 22, 2012 at 6:47 PM
How to remove or replace character from a string? ... View Questions/Answers

Jsp life cycle.  May 22, 2012 at 6:42 PM
What is JSP life cycle? ... View Questions/Answers

JavaScript check if date is between two dates.  May 22, 2012 at 6:36 PM
Check if date is between two dates? ... View Questions/Answers

Servletoutputstream and Bytearrayoutputstream  May 22, 2012 at 6:25 PM
How to send data to client in binary form using ServletOutputStream? ... View Questions/Answers

How to pass the value of Selected Value of combo box into sql ??  May 22, 2012 at 6:15 PM
My SQL Database Name is MHS, user=root, password=admin,table name is sub_comb(regno,sname,sgen). Now i want to select one "regno" from Combobox and then after submit i want to display other field. how to get it?? plz help me ... View Questions/Answers

Ajax file upload  May 22, 2012 at 6:04 PM
I am developing a application for image upload using ajax and servlet. The image should be converted in byte[] and must be saved in oracle databse as blob. After uploading the image it should be displayed on the jsp page. Page shouldn't get refreshed. ... View Questions/Answers

retrieving excel data when file uploading  May 22, 2012 at 5:51 PM
<%@page import="java.io.*"%> <%@page import="java.util.*"%> <%@page import="org.apache.poi.hssf.usermodel.HSSFSheet"%> <%@page import="org.apache.poi.hssf.usermodel.HSSFWorkbook"%> <%@page import="org.apache.poi.hssf.usermodel.HSSFRow"... View Questions/Answers

uploading and reading the excel daa  May 22, 2012 at 5:46 PM
uploading the excel file not getting the data of the excel ... View Questions/Answers

Problem with appending data to the end of file  May 22, 2012 at 4:46 PM
MY JSP CODE WITH THE JAVA CLASS: JSP CODE: <html> <body> <%@ page language="java" import="java.io.*,data.*" %> <% String name=request.getParameter("name"); String mail=request.getParameter("email"); %> <% ServletContext sc=getServletContext... View Questions/Answers

Reply me soon.........  May 22, 2012 at 3:43 PM
Any body plzz help.....how to get d checked details from previous page to current page and den insert into table....... ... View Questions/Answers

Java services  May 22, 2012 at 2:36 PM
What is Java WebServices? ... View Questions/Answers

hibernate  May 22, 2012 at 2:25 PM
I want to learn how to use hibernate framework in web application . for storing database in our application . ... View Questions/Answers

hibernate  May 22, 2012 at 2:25 PM
I want to learn how to use hibernate framework in web application . for storing database in our application . ... View Questions/Answers

AES decryption in Java  May 22, 2012 at 12:23 PM
AES decryption in Java with password ? ... View Questions/Answers

AES Decryption using key password  May 22, 2012 at 11:21 AM
/* Decrypt using AES with password */ /* developed by Nishanth Thomas - Insolutions Global Pvt Ltd Bangalore */ import java.security.spec.AlgorithmParameterSpec; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.Sec... View Questions/Answers

searchbar  May 22, 2012 at 11:15 AM
- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar { Searchbar.autocorrectionType = UITextAutocorrectionTypeNo; } - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar // called when keyboard search button pressed { NSLog( @"... View Questions/Answers

searchbar  May 22, 2012 at 11:14 AM
- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar { Searchbar.autocorrectionType = UITextAutocorrectionTypeNo; } - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar // called when keyboard search button pressed { NSLog( @"... View Questions/Answers

Java Encryption using AES with key password  May 22, 2012 at 11:10 AM
/* AES alogrithm using password key */ /* developed by Nishanth Thomas Insolutions Global Pvt Ltd Bangalore */ import java.security.spec.AlgorithmParameterSpec; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.... View Questions/Answers

Storing content from file path to an array  May 22, 2012 at 11:02 AM
Hi, I have a path for e.g. /Lecture/Materials/CGR/Revision/Animation.txt which is stored in my HBase. I would like to access the "Animation.txt" file from this path and store the contents in this text file to an array. I am using jsp. I can access my path but how to store the cont... View Questions/Answers

Java  May 22, 2012 at 10:51 AM
What Is Node Stream and please give me an example. ... View Questions/Answers

Create an array of 5 doubles...  May 22, 2012 at 5:54 AM
Part one In a Java program, create an array of 5 doubles. Have the user input values into these array items inside a loop using JOptionPane. Using the loop, calculate the sum and average of the 5 numbers and output this using JOptionPane. Part two Same as above, only have a second loop (e... View Questions/Answers

jsonparsing  May 22, 2012 at 1:05 AM
-(void)searchGooglePhotos { Arr_Lat=[[NSMutableArray alloc] init]; Arr_title=[[NSMutableArray alloc] init]; Arr_address=[[NSMutableArray alloc]init]; Arr_Long=[[NSMutableArray alloc]init]; NSString *urlString = [NSString stringWithFormat:@"http://map... View Questions/Answers

xmlparsing  May 22, 2012 at 12:58 AM
in .h file NSXMLParserDelegate NSMutableArray *titlearray; NSMutableArray *descarray; NSMutableArray *linkarray; NSMutableArray *pubdatearray; NSMutableDictionary *titledict; NSMutableDictionary *descdict; NSMutableDictionary *linkdict; NSMutable... View Questions/Answers

using array  May 22, 2012 at 12:26 AM
display 10 digit number using array and print pyramid. 1 1 1 1 1 1 1 1 1 1 1 1 ... View Questions/Answers

using array  May 22, 2012 at 12:16 AM
read 10 digit number and display (star)*? ... View Questions/Answers

HISTOGRAM  May 21, 2012 at 11:52 PM
read 10 singe digit value and disply HORIZONTAL HISTOGRAM? ... View Questions/Answers

HISTOGRAM  May 21, 2012 at 11:52 PM
read 10 singe digit value and disply HORIZONTAL HISTOGRAM? ... View Questions/Answers

histogram  May 21, 2012 at 11:37 PM
read 10 single digit value and display vertical histogram? ... View Questions/Answers

histogram  May 21, 2012 at 11:35 PM
read 10 single digit value and display horizontal histogram? ... View Questions/Answers

histogram  May 21, 2012 at 11:34 PM
read 10 single digit value and display horizontal histogram? ... View Questions/Answers

histogram  May 21, 2012 at 11:34 PM
read 10 single digit value and display horizontal histogram? ... View Questions/Answers

student information system  May 21, 2012 at 9:59 PM
can you show me example of "student information system" pseudo code and flow chart with "student name, student id, student residential hall, student course, student phone numbers"..??? ... View Questions/Answers

using array  May 21, 2012 at 9:17 PM
Circular left shift array element by one position? ... View Questions/Answers

using array  May 21, 2012 at 9:17 PM
Circular left shift array element by one position? ... View Questions/Answers

java  May 21, 2012 at 6:36 PM
1.Design then implement a Java program that defines and initializes the coefficients of a linear equation 2x + 4.5 = 0. Also, make your program compute and display the solution of the equation 2.Design then implement a Java program that defines a constant PI = 3.14159 then use that consta... View Questions/Answers

Can we use Jmeter for testing a PHP website???  May 21, 2012 at 6:09 PM
Can we test a website in PHP using Apache jmeter? Actually, I want to perform load testing of my PHP website. So, whether it will be useful or should I go with any other? Plz..suggest something. ... View Questions/Answers

jquery  May 21, 2012 at 3:43 PM
how to display the leaves taken or holidays of the year or half working days in a calendar in some colors to identify the days using jquery plugin. ... View Questions/Answers

post method does not support this url  May 21, 2012 at 3:33 PM
This is Get product servlet class of Shoping site example of Http Session. I want to add selected product in the cart thorough this class i want to delegate control to add product servlet. but I am receiving one error that is post method does not supported by this url. package com.prakhar... View Questions/Answers

please any one can help me to write a code for this question?  May 21, 2012 at 9:04 AM
1) Copy one file content to other? 2) Count the number of words in a file? ... View Questions/Answers

JAVA  May 21, 2012 at 8:53 AM
strong textsir How to create student registion form using java swing? form include studentID Student full name student address student NIC student phone number and add new data,edit data,delete data,save data,clear ... View Questions/Answers

Servlets and confirm box  May 21, 2012 at 8:45 AM
Sir...! I want to insert or delete records form oracle based on the value of confirm box can you please give me the idea.... thanks ... View Questions/Answers

Servlets and confirm box  May 21, 2012 at 8:45 AM
Sir...! I want to insert or delete records form oracle based on the value of confirm box can you please give me the idea.... thanks ... View Questions/Answers

Servlets and confirm box  May 21, 2012 at 8:45 AM
Sir...! I want to insert or delete records form oracle based on the value of confirm box can you please give me the idea.... thanks ... View Questions/Answers

Servlets and  May 21, 2012 at 8:43 AM
Sir...! I want to insert or delete records form oracle based on the value of confirm box can you please give me the idea.... thanks ... View Questions/Answers

How to insert data from textfields into database using hibernate?  May 21, 2012 at 4:45 AM
try{ Session session = HibernateUtil.getSessionFactory().openSession(); org.hibernate.Transaction tx = session.beginTransaction(); Produs produs = new Produs(); produs.setIdprodus("IdProdusTextField"); produs.setFurnizor("IdFurnText... View Questions/Answers

how to retrive  May 20, 2012 at 6:05 PM
this my servlet page.. @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); DataSource ds=null; Connection con = null; ... View Questions/Answers

how to create reports in swing java?  May 20, 2012 at 10:03 AM
how to create reports in swing java?... View Questions/Answers

UML CASE Tools  May 20, 2012 at 8:34 AM
What requirements should a UML CASE tool meet? ... View Questions/Answers

how to convert php webpage to jpg file/take screenshot from client side  May 19, 2012 at 9:24 PM
how to convert php webpage to jpg file/take screenshot from client side ... View Questions/Answers

ls: cannot access >: No such file or directory  May 19, 2012 at 6:53 PM
import java.io.BufferedReader; import java.io.InputStreamReader; public class Example { public static void main(String args[]) { String s = null; String cmd = "ls > /home/main/output/f.txt"; try { Process p = Runtime.getRuntime().exec(cmd); int i = p.waitFor(); ... View Questions/Answers

java  May 19, 2012 at 6:07 PM
explain object oriented concept in java ? ... View Questions/Answers

java  May 19, 2012 at 5:55 PM
why multiple inheritance is not possible in java ? ... View Questions/Answers

code for developing a porject  May 19, 2012 at 4:07 PM
Hi, i am developing online web portal. which includes mobile applications and web portals. in that i want basics and logical codes. give a code for samples, say useful links . or all codes. thanks lot. ... View Questions/Answers

Display error message if data is already inserted in database  May 19, 2012 at 11:32 AM
Display error message if data is already inserted in database Pls help me Thanks. ... View Questions/Answers

how to render my htmlstring from java class in velocity template?  May 18, 2012 at 9:32 PM
Hi, I have a java class generates html string dynamically based on the logic. I'm sending that string to vm as a context veriable. But I'm unable to draw html from that htmlstring. Could you please help me to do this with sample code? At least let me know whether it is possible or not? T... View Questions/Answers

How to create a zip file and how to compare zip size with normal text file  May 18, 2012 at 8:41 PM
Hi, how are you?I hope you are fine.I want program like how to create zip file based on one text file.i saw the code in the below link which was provided by Roseindia. http://www.roseindia.net/java/example/java/io/ZipCreateExample.shtml but when i verified the size of zip and normal file,... View Questions/Answers

I want this jsp answers  May 18, 2012 at 5:21 PM
How can we declare third party classes and interfaces inside our jsp page? How can we declare and definr global variables and methods inside our jsp page? If we are declaring global variables and methods inside the jsp page.Where the global variables are going into genera... View Questions/Answers

I want this jsp answers  May 18, 2012 at 5:21 PM
How can we declare third party classes and interfaces inside our jsp page? How can we declare and definr global variables and methods inside our jsp page? If we are declaring global variables and methods inside the jsp page.Where the global variables are going into genera... View Questions/Answers

progress bar  May 18, 2012 at 4:03 PM
Hi guys, I'm doing a file upload in spring MVC technology. For file upload i did validation in client side.While uploading how to use an ajax function to show the progress bar? ... View Questions/Answers

Inverse of trigonometric functions in java.  May 18, 2012 at 2:34 PM
How to get inverse of trigonometric functions in java? ... View Questions/Answers

DMCA.com