Search:

Type: Posts; User: jasonm

Search: Search took 0.09 seconds.

  1. Replies
    2
    Views
    2,264

    Re: Pulling in data from access

    I'm trying to learn data access with Java myself, but does this error indicate a problem with your search query? It sounds like the connection is being made just fine:


    Can you post the code...
  2. Thread: Array help

    by jasonm
    Replies
    11
    Views
    2,997

    Re: Array help

    /**
    * Returns the number of floats in this list.
    * @return the number of floats.
    */
    public int countFloats() {
    for (int i=0; i<n; ++i)
    // TODO: implement this method.
    ...
  3. Thread: Array help

    by jasonm
    Replies
    11
    Views
    2,997

    Re: Array help

    What type is a? Is it the float array that belongs to FloatList? Java arrays are objects. I could be wrong, but I don't think they have an append() method. Could you provide the actual error...
  4. Thread: Array help

    by jasonm
    Replies
    11
    Views
    2,997

    Re: Array help

    Primitives are simple data types, built into to Java language, and just hold a particular kind of value - they don't have methods. You can read about all of the primitives here. So, "float" is a...
  5. Thread: Array help

    by jasonm
    Replies
    11
    Views
    2,997

    Re: Array help

    What I am trying to get you to do is show me how you expect your class to work, as well as how it is working now. Without being able to do this, how do you know if your code is right or wrong?
    ...
  6. Thread: Array help

    by jasonm
    Replies
    11
    Views
    2,997

    Re: Array help

    Okay, so now what do you expect to happen when you run this, and what actually happens? For simplicity, maybe change your example to eliminate the randomness (in the for(...) loop) for the time...
  7. Re: begginer wondering why his guessing game won't work

    These ones can drive you crazy, it took me a couple scans over your code to spot it.



    while (guesscheck = true) {


    You wanted a "==" in there :)
    What this does is first assign guesscheck...
  8. Re: Custom Java stack class (with generics) problem

    Your first two lines didn't register with me earlier, you do show the definition of LinkedStack.


    LinkedStack implements I_LinkedStack, but that isn't the same thing as I_LinkedStack<T>. Is...
  9. Re: Custom Java stack class (with generics) problem

    I am not familiar with the LinkedStack class. I am assuming this is the class you are using?



    public String iterableToString(Iterable<T> stack)


    iterableToString will accept any object...
  10. Thread: Array help

    by jasonm
    Replies
    11
    Views
    2,997

    Re: Array help

    Can you provide an example using your FloatList? Indicate what you expect to happen as well as what actually happens. That should provide a good starting point for getting this coded up.
  11. Replies
    1
    Views
    3,707

    Re: Making a Craps game.

    A good place to start would be to write out a skeleton for your class, Die. Write the class definition for Die, define its member variables* and methods. You can leave the bodies of the methods...
  12. Replies
    1
    Views
    2,062

    Re: Setting up, using DataSources

    Maybe I should take a step back. Have you worked on applications that implement data access through DataSources rather than directly using the DriverManager?

    How does the application retrieve the...
  13. Replies
    7
    Views
    6,200

    Re: Check for palindrome numbers

    Are you sure that is the output you are getting? I pasted your code in directly, and the output I see is:



    0 is a palindrome number
    0 is not a palindrome number
    0 is not a palindrome number...
  14. Replies
    1
    Views
    2,062

    Setting up, using DataSources

    Hello,

    I am new to the forum, and while I have some general programming experience and education, I'm pretty green when it comes to Java technologies. Currently, I'm looking for some help...
Results 1 to 14 of 14