There is nothing in the addrec method to store the parameter values in the array. Here's an example of how you would do that...
public void addrec(int a,String b,String c,int d)
{
...
Type: Posts; User: WhiteSoup12
There is nothing in the addrec method to store the parameter values in the array. Here's an example of how you would do that...
public void addrec(int a,String b,String c,int d)
{
...
I'm guessing the missing class is actually oracle.orai18n.text.OraCollator? How is this application packaged? WAR, JAR, etc?
If you have a lot of options for the user to enter, use a switch that has the options and the destinations (where in the program it should take them). When a user selects an option, the switch picks...
So if I understand correctly, you are wanting to run this application only once and you want it to be called by another application? If this is how you are wanting to do it, you should package the...
So I figured out how to do this last night using JFugue's Anticipator. The API still isn't where it needs to be, but luckily they provide the source code for it, so I am able to make modifications...
I have been all over the web for the past week trying to find a way to do this... I am able to import a MIDI file and get the messages, such as the key, start time, velocity, etc., but what I am...
Found the solution. If using Spring 3, <value>#{username}</value> works. If using Spring 2, <util:property-path path="bean.username"/> is equivalent.
Okay, so we have an application that uses Spring 2. I have a bean that accesses a method which returns a username (process ID) and password to be used in a database connection. The problem I am...
Maybe check the spelling on the text in red.
Have you tried debugging to see if the table is actually being created?
Looks to me like your while loop is missing a closing bracket...
We all have those kinds of days... :)
Your sortID method is never called... main method should look like this (assuming you only want to print the list once)...
public static void main(String[] args) {
List<Item> myStore = new...
I do have all the variables being set in a backing bean. Problem is, because the links are being set from a List, I don't think the page knows what link is being clicked (or at least I don't know...
Okay, so here's the setup... I have main.xhtml file that displays four links to the user. These links are categories that determine what category is viewed on the next page. The categories are in a...
Okay, so here's the setup... I have main.xhtml file that displays four links to the user. These links are categories that determine what category is viewed on the next page. The categories are in...
Add "private static final long serialVersionUID = 1L;" to your class level variables, right above "private final int WIDTH = 500;".
There should be a jar that contains the Driver class needed to make the connection to the DB. That should fix the ClassNotFoundException.
It looks like your JDBC does not specify a database for which to find the table. Try using a full URL like "jdbc:derby://localhost:1527/myDB;create=true;user=user;password=user".
So here's the setup... I have an application that streams a live radio station from a URL. I currently have it so that the stream still resumes playing after the user has pressed the back button. As...
That is the source of the error. Per my post above, i is out of bounds because it is being set to the length of the type array rather than being set incrementally through the for loop.
I'm not sure what your programming level is, but this would be much easier to do with a while loop.
The text in red needs to be removed. Your for loop is moving through i (which starts at 0) incrementally. When you set i to the length of the type array, you're messing up that for loop.
Where's your main method?
Thanks for the reminder, Dan! I have changed the code to account for century years...
/** Get the number of days in a month */
static int getNumberOfDaysInMonth(int year, int month) {
if (month...