Search:

Type: Posts; User: WhiteSoup12

Page 1 of 2 1 2

Search: Search took 0.28 seconds.

  1. Re: can any body help to correct this error

    Maybe check the spelling on the text in red.
  2. Replies
    1
    Views
    314

    Re: Problem developing app for Android

    Have you tried debugging to see if the table is actually being created?
  3. Replies
    29
    Views
    625

    Re: a very confusing exception

    Looks to me like your while loop is missing a closing bracket...
  4. Replies
    5
    Views
    270

    [SOLVED] Re: Selection sort not working

    We all have those kinds of days... :)
  5. Replies
    5
    Views
    270

    [SOLVED] Re: Selection sort not working

    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...
  6. Replies
    3
    Views
    317

    Re: Problem Finding Value from List

    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...
  7. Replies
    3
    Views
    317

    Problem Finding Value from List

    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...
  8. Replies
    1
    Views
    429

    Retrieve value from JSF

    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...
  9. Re: Need help correcting a JFrame program for class!

    Add "private static final long serialVersionUID = 1L;" to your class level variables, right above "private final int WIDTH = 500;".
  10. Re: I am trying to connect my java application with SQL Server 2008 but I get error m

    There should be a jar that contains the Driver class needed to make the connection to the DB. That should fix the ClassNotFoundException.
  11. Replies
    12
    Views
    1,111

    Re: Correct connection to DB?

    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".
  12. Replies
    0
    Views
    707

    Resume Application in Original State

    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...
  13. Re: Not sure where the error is coming from

    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.
  14. Replies
    2
    Views
    1,189

    Re: guessing game assignment

    I'm not sure what your programming level is, but this would be much easier to do with a while loop.
  15. Re: Not sure where the error is coming from

    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.
  16. Replies
    5
    Views
    340

    Re: error when comparing 2 string objects

    Where's your main method?
  17. Replies
    7
    Views
    1,533

    Re: Calendar Program Help

    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...
  18. Replies
    7
    Views
    1,533

    Re: Calendar Program Help

    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...
  19. Replies
    7
    Views
    1,533

    Re: Calendar Program Help

    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...
  20. Replies
    2
    Views
    461

    [SOLVED] Re: Please help

    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...
  21. Replies
    1
    Views
    407

    [SOLVED] Re: Run time error

    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...
  22. Replies
    4
    Views
    2,460

    Re: Array with Switch Construct

    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'}; //...
  23. Replies
    1
    Views
    1,416

    Ranging Case Values in Switch Construct

    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...
  24. Replies
    4
    Views
    2,460

    Re: Array with Switch Construct

    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...
  25. Replies
    4
    Views
    2,460

    Array with Switch Construct

    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,...
Results 1 to 25 of 26
Page 1 of 2 1 2