Search:

Type: Posts; User: KAJLogic

Page 1 of 3 1 2 3

Search: Search took 0.44 seconds.

  1. Replies
    21
    Views
    116

    Re: Null Pointer (a curious case)

    Yeah at the top of the exception it cites that line then it cites a stream larger than my command prompt buffers capabilities here:


    nO = t.getOptimalNodes(n,utilities.invert(a));
  2. Replies
    21
    Views
    116

    Re: Null Pointer (a curious case)

    Aussie using the length variable produces the same error.






    }
  3. Replies
    21
    Views
    116

    Re: Null Pointer (a curious case)

    What are you suggesting that the Array class is inaccurate or flawed?
  4. Replies
    21
    Views
    116

    Re: Null Pointer (a curious case)

    Yes aussie your right I guess I never really reviewed the array API very much. In any case I appreciate your help. I will delve into this with your suggestions.
  5. Replies
    21
    Views
    116

    Re: Null Pointer (a curious case)

    There is a level of incursion, but I believe that as soon as I reassign n it is no longer referencing the argument. Norm, do you mean a local variable that wasn't initialized?
  6. Replies
    21
    Views
    116

    Re: Null Pointer (a curious case)

    May I ask first, is there any other way I could get a null pointer there? Or, do you need more of the code to know for sure? In my head I keep getting this nagging urge to just stop myself and...
  7. Replies
    21
    Views
    116

    Re: Null Pointer (a curious case)

    What do you mean by explicitly an array?
  8. Replies
    21
    Views
    116

    Re: Null Pointer (a curious case)

    It shouldn't be:


    n=utilities.increment(n);
    for(Tile cur:t.nodes){
    if(cur!=null){
    n[Array.getLength(n)-1] = cur;
  9. Replies
    21
    Views
    116

    Null Pointer (a curious case)

    I get a null pointer at:


    n[Array.getLength(n)-1] = cur;

    not an arrayIndexOutOfBounds, but a null pointer? I didn't think you get get a null pointer on assignment, because after all aren't...
  10. Re: Options for data retrival (conceptual non-specefic)

    Image data for active updates every (tenth of a second). But, the updates are happening on multiple images-also know that the updates are not happening constantly but quite frequently.
  11. Options for data retrival (conceptual non-specefic)

    I was wondering, for both a web based application and a normal Java program, should I just open up an I/O every time I need certain data, or am I better off just loading all the information into my...
  12. Replies
    3
    Views
    149

    Re: Making a Portfolio

    Do you have one I could review?
  13. Replies
    3
    Views
    149

    Making a Portfolio

    Can anyone throw me some hints on how to go about making a portfolio? It would be nice to see maybe an example, and an explanation of what information is important.
  14. Re: Generic Array Tools (lend me a critical eye)

    /*
    * Same with the first one, but for 2D arrays.
    *
    */
    public K[][] increment(K[][] k){
    int i = 0;
    int ii = 0;
    K[][] tmp = (K[][])new Object[Array.getLength(k)+1][];
    for(K[] kara: k){
  15. Re: Generic Array Tools (lend me a critical eye)

    Can you elaborate on your lastly; where does it reference?

    P.S: your first suggestion is excellent I will add that.
  16. Re: Generic Array Tools (lend me a critical eye)

    which part?
  17. Re: Generic Array Tools (lend me a critical eye)

    Apologies I did that. while I was looking at it I noticed I probably could have for the 2D array simply made tmp[i] = kara.







    /*
    * Same with the first one, but for 2D arrays.
  18. Generic Array Tools (lend me a critical eye)

    Is there a problem with this conceptually - as in do you foresee any issues?



    /*
    * Trying to make a universal tool for increment an array by one while keeping all the previous values in...
  19. Replies
    4
    Views
    193

    Re: IO without APIs

    I will indulge you in the hopes this is leading somewhere productive. I am familiar with C/C++ (I have a compiler), and I have no knowledge of O.S APIs, but like any other API I assume knowledge of...
  20. Replies
    4
    Views
    193

    Re: IO without APIs

    I would like to implement my own communication with the JNI to get Windows information.
  21. Replies
    4
    Views
    193

    IO without APIs

    I was wondering if anyone knew of a tutorial for accessing windows/mac OS files with java (without java's IO API).
  22. Replies
    24
    Views
    277

    [SOLVED] Re: Stack Memory question (understanding)

    This is all irrelevant, and I assure you my understanding is solid (thanks to you folks); likely your digression is latency from my poor explanation and communication. I was messing around and for...
  23. Replies
    24
    Views
    277

    [SOLVED] Re: Stack Memory question (understanding)

    Okay so only local variables are stored in stack. Which are handled when it returns. My question was how does the JVM delete a lower iteration (push/rearranging). And, what do you mean because to my...
  24. Replies
    24
    Views
    277

    [SOLVED] Re: Stack Memory question (understanding)

    Never mind I found it. You guys were right from the beginning I should have just done some more research. It has to do with re-arranging to delete an item not on the top, I can do this in many...
  25. Replies
    24
    Views
    277

    [SOLVED] Re: Stack Memory question (understanding)

    Are you saying that local variables (non-static) aren't stored in the stack (I realize references might be stored in heap)? Heap is for objects and static variables is it not, so garbage collector...
Results 1 to 25 of 66
Page 1 of 3 1 2 3