Maybe check the spelling on the text in red.
Type: Posts; User: WhiteSoup12
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...
I can see how it would be pretty confusing. I just finished my Intro to Java course, so I'm still kind of new to Java as well. This particular code is kind of hard to navigate due to the placement...
You only need to modify the getNumberOfDaysInMonth method. Here is what the code should look like...
/** Get the number of days in a month */
static int getNumberOfDaysInMonth(int year, int...
I made some changes to the code. I replaced all the semicolons at the ends of the if statements with curly braces.
import java.util.Scanner;
public class studentMarks {
public...
I was able to end the infinite loop but I'm not sure if the output is still what you're looking for. I'm still kind of new to the Java scene. I replaced the while loop with a for loop...
class...
I got it figured out! Here's the finished product...
package seminarsixcode;
public class Grades { // Start of class
private char [ ] letterGrade = {'A', 'B', 'C', 'D', 'F'}; //...
Is there any way to use a range of numbers as a case value? For example, I need numbers 0 through 59 to perform the same operation. I know it would be easier to use an if statement, but the...
That's what I was thinking. The assignment instructions are as follows...
/* 1.Creates a grading program based on the Baker College grading standard. You will need to look up the current grade...
I am currently working on a final project for my Intro to Java course, and I am having a problem getting started. The main point of the program is to create a char array with grade letters (A, B, C,...