Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Delete specific lines from text in Java  January 23, 2011 at 3:39 AM
Hi, beginning in java, i'm trying to delete specific line from a text file. Ex: i want to delete data between line 10 and 20 and between line 20 and 30. or i want to specify line number that i want to delete. how could it be possible with java. thanks a lot ... View Questions/Answers

How can I call a Servlet that is declare on web.xml with spring framework  January 23, 2011 at 1:36 AM
here is my problem, I have spring framework and Crystal Report the problem is when Report.rpt call the servlet CrystalReportViewerServlet the servlet is declare on web.xml, but the spring dispacher don't find it so how I can make spring dispacher to call a servlet that is declare on my... View Questions/Answers

online examination system project in jsp  January 22, 2011 at 10:35 PM
thanks for providing me 6 tables for online examination system. I want to know what will the id field of Answers1 table contain? Will it contain same id for all the questions of Set1 &another id for all questions for Set2? Will it contain 1 as id for all Set1 questions or 1,2,3, ... View Questions/Answers

Ads

online examination system project in jsp  January 22, 2011 at 10:33 PM
thanks for providing me 6 tables for online examination system. I want to know what will the id field of Answers1 table contain? Will it contain same id for all the questions of Set1 &another id for all questions for Set2? Will it contain 1 as id for all Set1 questions or 1,2,3,.... ... View Questions/Answers

online examination system project in jsp  January 22, 2011 at 10:29 PM
Thanks for providing me the 6 tables.But I want to know will the id field of answers1 table be same for all questions of Set1? Will it be 1 or will be 1,2,3,... What it will be for Answers2 table whilch conatain fields like(id,ans) ... View Questions/Answers

Servlets Program  January 22, 2011 at 9:07 PM
Hi, I have written the following servlet: [code] package com.nitish.servlets; import javax.servlet.*; import java.io.*; import java.sql.*; import javax.sql.*; import oracle.sql.*; public class RequestServlet extends GenericServlet{ public void init(ServletConfig sc)throws Serv... View Questions/Answers

How to Develop, Compile & Run a rmi Program in NetBeans 6.9.1 ide?  January 22, 2011 at 8:28 PM
how to develop, compile & run a rmi program in netbeans 6.9.1 ide? will you please give me a step by step (practical) explaination? Thanks in advance.. :-) ... View Questions/Answers

Spring Framework with Crystal report  January 22, 2011 at 7:54 PM
here is my problem I have spring framework and I want to integrate Crystal report the problem is when Report call the servlet CrystalReportViewerServlet, the spring dispacher don't find it so how I can make spring dispacher to call a default servlet that is declare on my Web.xml ... View Questions/Answers

Tree3  January 22, 2011 at 7:10 PM
Include a method that will print the depth-first traversal of a tree (choosing left branches first). public void printDepthFirst() { ... } For example, for the tree t = 3 ... View Questions/Answers

Tree3  January 22, 2011 at 7:10 PM
Include a method that will print the depth-first traversal of a tree (choosing left branches first). public void printDepthFirst() { ... } For example, for the tree t = 3 ... View Questions/Answers

Tree2  January 22, 2011 at 7:09 PM
) Include a method that will multiply by three every node of the tree: public void triple() { ... } For example, the tree t = 3 / \ ... View Questions/Answers

Tree  January 22, 2011 at 7:05 PM
print("code sample");1) Write Java code to create the following tree using new Tree state- ments: 1 / \ / \ ... View Questions/Answers

hi....  January 22, 2011 at 6:46 PM
plzz sent me d code for counting vowels in a string... gui programme....... ... View Questions/Answers

Database  January 22, 2011 at 6:22 PM
Thank you for ur immediate reply.... I wanted to know if it is possible to the retrieve and display the names of the databases that are present in mysql on a jlist ... View Questions/Answers

Assignment problem  January 22, 2011 at 4:02 PM
hello, I am designing a program partaining job assingment using hungarian algorithm,but i am totally confused, please help me out! ... View Questions/Answers

how many types of system classes are there?  January 22, 2011 at 3:56 PM
How many types of system classes are there? ... View Questions/Answers

running time watch  January 22, 2011 at 3:14 PM
how to set running watch in applycation with ajax ? ... View Questions/Answers

java interview question  January 22, 2011 at 2:44 PM
when will we use abstraction or interface ... View Questions/Answers

report generation  January 22, 2011 at 2:21 PM
i need to show the report between two dates in jsp is it possible ... View Questions/Answers

please tell me  January 22, 2011 at 12:16 PM
Actually i am working on a Project tiitle is JavaMail System, 1)How to configure java mail API and a Demo Program for Sending mail and Receiving using JSP and Servlet.? ... View Questions/Answers

Searching English words in a string  January 22, 2011 at 8:12 AM
My task is to find English words and separate them from a string with concatenated words..for example AhdgdjHOWAREgshshYOUshdhfh I need to find if there exists any English words. ... View Questions/Answers

what is ment by method signature in java.......  January 21, 2011 at 11:57 PM
what is ment by method signature in java....... ... View Questions/Answers

simple program question  January 21, 2011 at 11:54 PM
how do i get a java program to take an input from the user and have it terminate by a period and not by pressing enter? ... View Questions/Answers

why and where we use setter and getter methods in java, please give me one example program.....  January 21, 2011 at 11:37 PM
why and where we use setter and getter methods in java, please give me one example program..... ... View Questions/Answers

Swing Application  January 21, 2011 at 11:24 PM
hello, i am making swing application in java i am unable to run prog......when my rite clikcing on my project name and clicking thn run it is not showing output .....and when i am cliking on individual java file it is running plzzz reply.... ... View Questions/Answers

please tell me  January 21, 2011 at 11:24 PM
class Sample{ private double num1,num2; void sample(double x,double y){ num1=x; num2=y; } void Sum(){ double result=num1+num2; System.out.println("sum"+result); } } class Methods{ public static void main(String ar[]){ Sample s = new Sample(10.6,20.0); s.Sum(); } } if i compile this D:\pr... View Questions/Answers

array accept all data type  January 21, 2011 at 11:18 PM
how can create array that accept all data type??? if we can solution it? how.. ... View Questions/Answers

array accept all data type  January 21, 2011 at 11:18 PM
how can create array that accept all data type??? if we can solution it? how.. ... View Questions/Answers

objects  January 21, 2011 at 11:15 PM
account a=new account(100); value 100 is used for what purpose of the object? ... View Questions/Answers

how to find [count the number of integers whose value is less than the average value of the integers]  January 21, 2011 at 10:33 PM
Construct an algorithm that will prompt for and receive 10 Construct an algorithm that will prompt for, receive and total a collection of payroll amounts entered at the terminal until a sentinel amount of 999 is entered. After the sentinel has been entered, display the total payroll amount to the... View Questions/Answers

Java project in online examination system  January 21, 2011 at 10:05 PM
how many and which tables are required at backend as SQL for online examination system project in jsp ... View Questions/Answers

please tell me about command line arguments in java?  January 21, 2011 at 9:52 PM
please tell me about command line arguments in java? ... View Questions/Answers

please tell me about command line arguments in java?  January 21, 2011 at 9:52 PM
please tell me about command line arguments in java? ... View Questions/Answers

please tell me  January 21, 2011 at 9:08 PM
class Person{ int age; String name; void Person1(String g,int a){ name=g; age=a; } Person(String s,int i){ name=s; age=i; } void talk(){ System.out.println("my name is:"+name); System.out.println("my age is:"+age); } } class Hash{ public static void main(String ar[]){ Person obj... View Questions/Answers

query related to awt  January 21, 2011 at 9:02 PM
Hi, I want to know how to check a text value is numeric or not when user enters the text to the textbox.After checking whether the enter text is numeric we need to display in LwDialog showing proper message. Regards Nibedita ... View Questions/Answers

why we use constructors instead of methods in java?  January 21, 2011 at 8:44 PM
why we use constructors instead of methods in java? ... View Questions/Answers

java.lang.NoSuchMethodError: com.google.gdata.client.youtube.YouTubeService.setStrictValidation(Z)V  January 21, 2011 at 8:37 PM
Hi, While using youtube client in java I am getting follwing error: java.lang.NoSuchMethodError: com.google.gdata.client.youtube.YouTubeService.setStrictValidation(Z)V Tell me what to do? Thanks ... View Questions/Answers

please tell me  January 21, 2011 at 8:37 PM
class Person{ int age; String name; void talk(){ System.out.println("my name is:"+name); System.out.println("my age is:"+age); } } class Hash{ public static void main(String ar[]){ Person raju=new Person(); raju.name="raju"; raju.age=23; System.out.println("hash code is:"+raju.hashCode(... View Questions/Answers

Setting up Tomcat Server with Eclipse Galileo  January 21, 2011 at 8:08 PM
Please let me know the steps to install Tomcat Server and setting that up with Eclipse Galileo. ... View Questions/Answers

java project  January 21, 2011 at 7:29 PM
how many tables are required in backend for online examination system project in jsp If backend is SQL ... View Questions/Answers

How can I access databse through JSP. I am using postgresql-8.4.4-1-windows as database and jboss-4.0.5.GA as server.  January 21, 2011 at 6:51 PM
I am using postgresql-8.4.4-1-windows as database, jboss-4.0.5.GA as server and jdk-6-windows-i586 with IDE netbeans-6.1-ml-windows.How can I set up connection to database? Please help me. ... View Questions/Answers

code for abstract class  January 21, 2011 at 6:35 PM
code for abstract class ... View Questions/Answers

Java Programming Code HELP  January 21, 2011 at 6:28 PM
Hi, sir/madam. I am new here and currently developing a program whereby it can read the Java source file and then display all the String into tokens. Class Name , attribute and methods are being extracted out respectively throughout the execution. However, I now face the problem to retrie... View Questions/Answers

Jbutton[] background & foregroundcolor change  January 21, 2011 at 6:25 PM
how to change the color of the selected JButton in java swing. I am create JButton in an array JButton button[]=new JButton[100]; if i select button[5] then the Jbutton foreground and background color is changed. the remaining jbutton foregr... View Questions/Answers

how to initialise variables in jsp?  January 21, 2011 at 6:21 PM
1. what is the problem in the folloing jsp <%@ page import="net.viralpatel.struts.helloworld.form.LoginForm" %> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html P... View Questions/Answers

JBoss Application Server Start Failed. HTTP Connector port 8080 is already in use.  January 21, 2011 at 5:55 PM
Deployment error: JBoss Application Server Start Failed. HTTP Connector port 8080 is already in use. How can I solve it? How can I kill the process that uses the port 8080 from dos prompt? ... View Questions/Answers

JBoss Application Server Start Failed. HTTP Connector port 8080 is already in use.  January 21, 2011 at 5:51 PM
Deployment error: JBoss Application Server Start Failed. HTTP Connector port 8080 is already in use. How can I solve it? ... View Questions/Answers

JBoss Application Server Start Failed. HTTP Connector port 8080 is already in use.  January 21, 2011 at 5:42 PM
Please help me to solve the following problem: init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: Starting JBoss Application Server JBoss Application Server Start Failed. HTTP Connector port 8080 is already in... View Questions/Answers

check box in jsp  January 21, 2011 at 5:24 PM
hey guys i am working on a web based project using jsp. In my project 1 am having 9 check boxes in 3 rows in the same form. I want to select 1 check box from each row and also i want to avoid many check box selected in the same row. How can i get this one working? Can anyone help... View Questions/Answers

checkbox selection in jsp  January 21, 2011 at 5:21 PM
hey guys i am working on a web based project using jsp. In my project i am having 9 check boxes in 3 rows in the same form. I want to select i check box from each row and also i want to avoid many check box in the same row. How can i get this one working? Can anyone help me ... View Questions/Answers

Apache Tomcat6.0  January 21, 2011 at 5:13 PM
Starting Tomcat process... Waiting for Tomcat... Starting of Tomcat failed. E:\Project\Medisoft\nbproject\build-impl.xml:590: Deployment error: Starting of Tomcat failed. See the server log for details. BUILD FAILED (total time: 3 minutes 5 seconds) i dont know why it occur when run tomca... View Questions/Answers

jsp  January 21, 2011 at 4:39 PM
<p>hai sir, i have to send the data which i have in hrid table to data base and at the same time to the next form . i will give u the code.</p> <p>first form(project Manager.jsp) &lt;%@ page language = "java" import = "java.sql.<em&... View Questions/Answers

jsp  January 21, 2011 at 4:39 PM
<p>hai sir, i have to send the data which i have in hrid table to data base and at the same time to the next form . i will give u the code.</p> <p>first form(project Manager.jsp) &lt;%@ page language = "java" import = "java.sql.<em&... View Questions/Answers

solve this pbm  January 21, 2011 at 4:21 PM
sir rows are also inserting i have checked in the database also the rows are not affected in the table . The first pbm wich i have sent to you is not yet solved.......... pls give me detail explaination how we can execute the program ... View Questions/Answers

uibarbuttonitem initwithcustomview action  January 21, 2011 at 3:36 PM
HI, Can anyone provide me the code for uibarbuttonitem initwithcustomview action? In my application I am adding custom BarButtonItem, how I can attach an action to it? Thanks ... View Questions/Answers

Struts-jdbc  January 21, 2011 at 3:26 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> &lt;%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> &lt;%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <html:html locale="true"> <HEAD> &l... View Questions/Answers

solve this pbm  January 21, 2011 at 2:45 PM
its not working the code for databae access using servlets ... View Questions/Answers

How to run our application after deploying .war file in tomcat6.0  January 21, 2011 at 2:25 PM
I did all the things already, but I don't want this way. What I did, 1) first I created one html file,one servlet file and one web.xml file 2) Then I put all these files in appropriate directories. 3) I created .war file of my web application. 4) I started tomcat 5) Then in tomcat I mention .war... View Questions/Answers

java script to replace words starting and ending with tild(~) symbol in a text area with the word highlighted yellow.  January 21, 2011 at 1:15 PM
Hi, I have an issue with highlighting text in a text area. I am designing a page to send email. currently the email subject and body is having a predefined format where the user needs to enter appropriate text for the portion preceded and succeded with tild(~) symbol. This is applicable in the su... View Questions/Answers

JSP  January 21, 2011 at 1:10 PM
How to run jsp program in eclipse? ... View Questions/Answers

what is the resolution for the bellow error?  January 21, 2011 at 1:05 PM
pe Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.html.Messag... View Questions/Answers

Permgen error  January 21, 2011 at 12:25 PM
hi how can i solve permgen error ... View Questions/Answers

How to run our application after deploying .war file in tomcat6.0  January 21, 2011 at 12:24 PM
How to run our application after deploying .war file in tomcat6.0? ... View Questions/Answers

HTTPClient Delete Method program ( for REST API to delete a user )  January 21, 2011 at 12:18 PM
HI Friends, I am trying a HTTP delete method for creating REST API in java. can any one provide me a HTTPClient Delete method program for reference. Please help me out, Thanks in advance. Waiting for ur reply......... Thank u. regards, Milind ... View Questions/Answers

solve this problem  January 21, 2011 at 12:05 PM
I typed this program and compiled.The program is compiled but when i eneterd url in tomcat server. Its not giving error but only blank page is coming the text is not displaying and row is also inserted in table please tell me the solution for thid problem ... View Questions/Answers

event handling in jsp  January 21, 2011 at 11:56 AM
i am developing a web application. i am getting a problem in event handing in jsp. in this web application there is a file generic.jsp for this jsp page i am using a database name as "priyadarshaniDB" and in this database i am using a table "tblgeneric". The details of generic.jsp file ... View Questions/Answers

Java  January 21, 2011 at 11:38 AM
How to read file using java ... View Questions/Answers

HTML5  January 21, 2011 at 10:54 AM
Hi, What is HTML5? Thanks ... View Questions/Answers

jdbc connections  January 21, 2011 at 10:41 AM
How can I coonect with oracle9i with java program using both thin driver and sun driver. plz send sample code for both the drivers ... View Questions/Answers

Can someone review my script for an apparent parsing error? -it isn't quite finished yet, but I want to fix error first  January 21, 2011 at 7:25 AM
import java.util.Scanner; class historyquiz{ public static void main(String args[]){ Scanner ans = new Scanner(System.in); System.out.println("1 = Dwight L. Moody; 2 = Ira Sankey; 3 = T. De Witt Talmage; 4 = B. H. Caroll");... View Questions/Answers

convert it to BufferedReader class  January 21, 2011 at 7:14 AM
import java.util.*; public class method { static Scanner console = new Scanner (System.in); public static void main (String[] args) { int num1,num2,maximum,minimum; double average; System.out.print ("Enter two numbers : "); num1=console.nextInt(... View Questions/Answers

How to get of lastmodified file list between two times in java?  January 21, 2011 at 4:03 AM
Hi, here is a code that list the last modified files in a directory between two dates. This is working well but is it possible to do the same thing between two times like get the last modified file bet 02:00:00am and 01:00:00am (so the interval time is 23h) ... View Questions/Answers

SELECT query using executeUpdate() instread of executeQuery()  January 21, 2011 at 12:34 AM
for Ex: class sample{ public static void main(String a[]){ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:orcl", "", ""); String str="Slect * from EMP"; Statement ... View Questions/Answers

SELECT query using executeUpdate() instread of executeQuery()  January 21, 2011 at 12:22 AM
can we execute SQL SELECT query using executeUpdate() instread of executeQuery() method ... View Questions/Answers

hi.......  January 20, 2011 at 11:30 PM
i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i enter in my frame should reach mysql and should get saved in a database which we'v... View Questions/Answers

railway reservation  January 20, 2011 at 11:29 PM
i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i enter in my frame should reach mysql and should get saved in a database which we'v... View Questions/Answers

online examination system project in jsp  January 20, 2011 at 10:24 PM
How many tables are required in SQL for online examination system project in jsp in java my email id is ... View Questions/Answers

online examination system project in jsp  January 20, 2011 at 10:23 PM
How many tables are required in SQL for online examination system project in jsp in java ... View Questions/Answers

Extracting equation from any document  January 20, 2011 at 9:38 PM
how can i extract equation from any word document? ... View Questions/Answers

passing data from one jframe to another  January 20, 2011 at 8:56 PM
I have two JFrame,built by using the GUI Editor netbeans 6.9.i have to pass a data from a Jtextfield in the first Jframe to another JLabel in the other JFrame.Can you please help me,how can i do so?PLease,i made lots of search but yet i can't do it... ... View Questions/Answers

deploy java application  January 20, 2011 at 8:51 PM
how i will deploy an java applet in Apache Http Server in unix ... View Questions/Answers

need code  January 20, 2011 at 8:04 PM
Create Vehicle having following attributes: Vehicle No., Model, Manufacturer and Color. Create truck which has the following additional attributes:loading capacity( 100 tons?).Add a behavior to change the color and loading capacity. Display the updated truck details. ... View Questions/Answers

need code  January 20, 2011 at 8:04 PM
Create Vehicle having following attributes: Vehicle No., Model, Manufacturer and Color. Create truck which has the following additional attributes:loading capacity( 100 tons?).Add a behavior to change the color and loading capacity. Display the updated truck details. ... View Questions/Answers

need code  January 20, 2011 at 8:04 PM
Create Vehicle having following attributes: Vehicle No., Model, Manufacturer and Color. Create truck which has the following additional attributes:loading capacity( 100 tons?).Add a behavior to change the color and loading capacity. Display the updated truck details. ... View Questions/Answers

nofollow example  January 20, 2011 at 7:49 PM
Hi, Provide me nofollow example code. Thanks ... View Questions/Answers

How to add nofollow in website link?  January 20, 2011 at 7:48 PM
Hi, I want to add nofollow in my outgoing links. What is the code? Thanks ... View Questions/Answers

PHP Date  January 20, 2011 at 7:35 PM
Hi, How to use PHP Date functions in my PHP program? Thanks ... View Questions/Answers

HI!!!!!!!!!!!!!!!!!!!!!  January 20, 2011 at 7:17 PM
import java.awt.*; import java.sql.*; import javax.swing.*; import java.awt.event.*; public class NewJFrame extends javax.swing.JFrame { JTextField text1,text2,text3,text4,text5,text6,text7,text8,text10; JLabel label1,label2,label3,label4,label5,lab... View Questions/Answers

HIIIIIIIIIII  January 20, 2011 at 7:16 PM
import java.awt.*; import java.sql.*; import javax.swing.*; import java.awt.event.*; public class NewJFrame extends javax.swing.JFrame { JTextField text1,text2,text3,text4,text5,text6,text7,text8,text10; JLabel label1,label2,label3,label4,label5,lab... View Questions/Answers

what is the size of java class  January 20, 2011 at 6:10 PM
Could anyone tell me how to find the size of the class given below. public class Sample { private int x; private int y; private char ch; public static void main(String[] args) { Sample sample = new Sample(); sample.x = 1; sample.y = 2; sample... View Questions/Answers

java loops  January 20, 2011 at 5:19 PM
to find the sum of alternate digits in a given no. ... View Questions/Answers

Vehicle tracking  January 20, 2011 at 4:59 PM
please help me with the complete vehicle tracking code using j2me.urgently please.Carol. ... View Questions/Answers

Sava data from Form to XML file using strutrs  January 20, 2011 at 4:16 PM
I'am a biginner with struts want so save data from my form in an Xml file using struts but i'm searching witout finding a solution thanks fo your help ... View Questions/Answers

Servlets  January 20, 2011 at 3:14 PM
how to connect tomcat with me eclipse ... View Questions/Answers

Login authentication  January 20, 2011 at 3:10 PM
i want d code for login authentication from mysql database on the same pc using swings ... View Questions/Answers

Login authentication  January 20, 2011 at 3:10 PM
i want d code for login authentication from mysql database on the same pc using swings ... View Questions/Answers

C# code  January 20, 2011 at 2:55 PM
hi pls clear my doubts this is my code but out is not well through this code i need display a particular row to a particular columns pls help me thank you, protected void Button3_Click(object sender, EventArgs e) { SqlConnection co=new SqlConnection (ConfigurationManager .Con... View Questions/Answers

Bio informatics  January 20, 2011 at 2:44 PM
Java source code for motif finding problem usin branch and bound technique ... View Questions/Answers

hi.......  January 20, 2011 at 2:16 PM
import java.awt.; import java.sql.*; import javax.swing.*; import java.awt.event.* public class NewJFrame extends javax.swing.JFrame { JTextField1 text1,text2,text3,text4,text5,text6,text7,text8,text10; JLabel label1,label2,label3,label4,label5,label6,label7... View Questions/Answers

help!!!!!!!!!!!!!!!!!!  January 20, 2011 at 2:14 PM
import java.awt.; import java.sql.*; import javax.swing.*; import java.awt.event.* public class NewJFrame extends javax.swing.JFrame { JTextField1 text1,text2,text3,text4,text5,text6,text7,text8,text10; JLabel label1,label2,label3,label4,label5,label6,label7... View Questions/Answers

DMCA.com