35,618 Topics
![]() | |
Why is the output 10 and not 9?. According to my understanding the count value is assign to b. Then the count value increment. Hence the output should be 9 instead of 10. However in this case the output is 10. Why?. [CODE] package com.nowhere.blogger.core.junit; public class Bunnies { static … | |
Hi All, I was wondering if any of you would know of how can i change the interface of a java program to a web based interface using html5. I know i could do this easily using jsp/java.net but my requirement states to change the java desktop program application interface … | |
Hey; I am following CoreJava and came to Event Handling chapter. I am trying to show a popup menu when the red button is clicked, but not works. Background color changes but no popup menu is shown. What is the problem? [CODE]/* * To change this template, choose Tools | … | |
Hi guys! Been spending 2 days for this problem. Im having this error message whenever i run the program in netbeans6.9.1, [QUOTE]org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'net.sourceforge.jtds.jdbc.Driver' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880).... ...[/QUOTE] The was working fine not until i tried exploring iReports 3.7 and creating a classpath (in iReports) … | |
Here are the picture.. [IMG]http://img830.imageshack.us/img830/6774/chequea.jpg[/IMG] [CODE]<jsp:useBean id="chequeStopBean" scope="session" class="my.com.infopro.ibank.ui.bean.ChequeStopBean"/> <jsp:useBean id="labelBean" scope="session" class="my.com.infopro.ibank.ui.bean.LabelBean"/> <jsp:useBean id="lang" scope="session" class="my.com.infopro.ibank.ui.bean.LanguageBean" /> <%@ page language="java" import = "java.util.*" errorPage="" %> <%@ page import="my.com.infopro.ibank.dto.ChequeDTO"%> <% request.getSession(true); String contextPath = request.getContextPath(); chequeStopBean.queryAccList(); //RequestDispatcher dispatcher = null; %> <html> <head> <title><%=labelBean.getLabel("STOP_CHEQUE")%></title> <meta HTTP-EQUIV="Pragma" content="no-cache"> <meta HTTP-EQUIV="Expires" content="-1"> … | |
![]() | I've been coding in Java for about six years now (personal projects only). I follow the... [I]Java, How to Program[/I] (Deitel, 5th ed.) book. For a particular project, I've coded several Record structures, each in their own class file. Is it possible to put ALL of my Record structures into … ![]() |
hello all members! i have just written a java application about menu. i got error that: cannot find symbol. could you all tell me all possible causes of this problem. i have tried to follow some of instructions on internet, but no help. thank in advance for your help. p.s: … | |
Hi, So I just done this class for the semester but am still having this problem in the back of my head that I need your help to clear it out of the way. Basically, the program here about covert the Octal number to Binary number which Octal number will … | |
[url]http://sparrow.ece.cmu.edu/~adrian/projects/secure-routing/ndss03.pdf[/url] I want to know if we can implement this paper entirely with java.It is a security mechanism for routing protocols---we cannot afford routers so thinking of simulating them. | |
@NormR1 or anyone please help, This program is to convert the input octal to output the binary in multiple number within the octal (ex: 24546, not 4 or 2 in single input)using an array. Thanks I converted it to integer, but how do I read one integer at a time … | |
can I know how to access the databse from jena using tdb and arq..am unable to get the resultsetformatter in jsp..the code runs perfectly in java,but i encounter problem in jsp... [CODE] String s = "" + "PREFIX dc: <http://purl.org/dc/elements/1.1/>" + "PREFIX skos:<http://www.w3.org/2004/02/skos/core#>" + "SELECT ?s " + " { … | |
Hi, i was wondering if anyone can help me. i am new to php and was wondering if it was possible to embed javascript in php. i was trying to get an alert/msg box up to explain an error to the user. i have written the following code <?php ............. … | |
Hi All, I have the hidden field defined as: <form method="post" name="userform" id="userform"><input <input type="hidden" id="movieIdHidden" name="movieIdHidden"></input> .... When the form is reload I set this field as document.userform.movieIdHidden.value=1000; In the JSP I read this value as: string strmovie3 = request.getParameter("movieIdHidden"); // convert to int int movie3 = parseInt(strmovie3 ); … | |
hello all I am having a problem when i download the files from the browser there are 2 blank lines on top and 2 blank lines in the last.while in the original file on the system there is no blank line.Code is as follows Thanks in advance [CODE]<jsp:useBean id="campaign" class="com.cellebrum.campaginManager.hourlyMIS" … | |
Hi everyone, I've been working on this for a couple of days now. I need to make sure that an error message is given if txtname has a numerical value in it, and I also need to make sure that an error message is given if txtscore has a non-numerical … | |
Hi, Now i'm doing my Machine Learning job about k-NN and k-Means. I need to create graphics about my data coordinate. Basically, i don't have any idea to create this. Is there anyone can help? | |
Hi..! i need to make a trial period software. Do anyone knows how to do it. I have gone through many links and still searching in google, but everywhere i found only some points mentioning about the way of doing it, but no one explains about how to do it... … | |
Hi guys, I've been working with a project that requires me to use mutiple jcombobox. I did try to relate three jcombobox but failed to show all necesarry drop-down lists. in one of my combobox I have lists of Banks (Bank1, Bank2), the other one is the list of all … | |
Dear All, I have string where I want to get its checksum value specifically using crc-16 (modbus) in java. Any help or tutorial on how to do it? I saw some links saying lookup tables but I am not quite sure about it. Thank you. | |
Dear All, I have snippet of code as below. It is a listener which is waiting for the data so I use local to telnet to this program in the same machine. Nothing gets printed unless after sending the data I press enter. On the other hand if I use … | |
Hi, Trying to get this bit of code to work so that a train goes up the track, leaves the track and then a train comes down the track, leaves and then a train comes up the track and so on. Only one train is allowed to go onto the … | |
hey i am new here i am working on a school project where i am building an applet.. i have encountered a problem i cant solve, i have 2 classes... the first class i very simple it has to methods which return an string array for table column and Object … | |
Alright, I have the bad practice of not commenting my code very often when I write it so I'm going to try to explain what the problem is as clearly as possible. In this program I have to set up a battleship like grid of buttons. In order to determine … | |
please if any one has java tutorials for the beginner programmer in java (sites , vedios ,etc..) | |
So I imported a project over from my school comp, and it seems to run ok, but I got these errors, and i don't know what they mean, or how I can fix them. [IMG]http://i421.photobucket.com/albums/pp296/rskom/issue.png[/IMG] Thanks for the help! -Austin | |
Hello. I am New Here and This is my First Post :) I'll Start with a Question, That is I know java, But not much. And I know how to build a Program if some one tell me to make a program that calculates area of a Square and something … | |
Hello guys i've been learning java for a short while and have come upon a problem which i cannot seem to solve. I have a boolean array of 11 values, now i want to prompt the user into entering the number 1 or 2. If the user enters 1 I … | |
Hi, I'm trying to set a background image of a JFrame. I researched on google but i haven't gotten anything to work. My idea is to make monopoly with the board in the background and have the pieces move around on top of the board. Thanks in advance | |
Hi all I am having a problem with my method in my linked list class to split linked lists into two sublists. The issue is that for some reason my first sublist has 3 more elements than the second sublist when I split a linked list with a total of … | |
So im setting up this gui, but im getting this Nullpointer exception: [CODE]Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at addressbook.dnDisplay.jButton1ActionPerformed(dnDisplay.java:222) at addressbook.dnDisplay.access$600(dnDisplay.java:22) at addressbook.dnDisplay$7.actionPerformed(dnDisplay.java:128) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6289) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6054) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4652) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4482) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577) at … |
The End.