CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: jcaccia

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Javac is not compiling correctly ... Please help

    Java is a case sensitive language, so String is not the same as string (also notice it's System, not system).

    The convention is to capitalise class names (Hello instead of hello), and use...
  2. Replies
    4
    Views
    419

    Re: How can I submit data into an iFrame?

    This is still Javascript, not Java. Please use the appropriate forum (scripting).
  3. Replies
    1
    Views
    331

    Re: Code does nothing :(

    This is a Java forum. Java is not the same as javascript. Please use a scripting forum.
  4. Replies
    2
    Views
    482

    Re: MS SQL Server Trigger

    Or why not using the more suitable and standard ISO codes? (see ISO 3366 and ISO 4217)
  5. Re: any help would be apreciated with arrays, exception in thread

    You call the split method to divide the string in portions (words) separated by a space character, which will produce an array of strings. The number of elements in this array depends on the number...
  6. Re: any help would be apreciated with arrays, exception in thread

    The exception is thrown in this line:

    String lname = details[1];
    because you are assuming that details will have (at least) two elements. I guess you expect the string read from the scanner three...
  7. Replies
    8
    Views
    1,076

    Re: Finding if a Palindrom - Please review

    I would just use a for loop, going from 0 to half the length of the string, using it as an offset from both ends of the string and compare the characters in those positions. You can stop when the...
  8. Replies
    1
    Views
    295

    Re: Battleship program- need help

    In line 13 of the Grid class (where the exception is thrown) you are invoking the setValue method on an element of the playerBoard array, but the elements in this array are not initialised before...
  9. Re: Write a java program that contains a shell script

    If you are running your program in Windows you need to use cmd for the shell instead of ksh. You also need to pass /C as an option to cmd so it runs the command (ie your shell script) and terminates,...
  10. Thread: GPA Program

    by jcaccia
    Replies
    4
    Views
    538

    Re: GPA Program

    You need to save the values in variables in the enum using an appropriate constructor. For instance, if you wanted to have an enum for the grades with their corresponding points you could do...
  11. Thread: String problem

    by jcaccia
    Replies
    10
    Views
    924

    Re: String problem

    keang posted the answer already (see post #8)
  12. Replies
    3
    Views
    391

    Re: This is ridiculous

    No, this is the CodeGuru downgrade effect... just wait for the next upgrade, when everything is going to get worse (guaranteed).

    I wouldn't have used worked in this context.
  13. Re: A particularly nasty java.lang.NullPointerException

    What I mean is that you have to review your code looking for the point (before invoking the method that throws the exception) where the instance used in the method would be assigned a reference (to...
  14. Re: A particularly nasty java.lang.NullPointerException

    Still not the code throwing the exception. Read the stack trace again; it says that the NullPointerException was thrown at line 932 of the class bcc.lib.Context, especifically when executing the...
  15. Re: A particularly nasty java.lang.NullPointerException

    Do you mean that the code you posted is not the code that's raising the exception? Why don't you post the actual code?
  16. Re: A particularly nasty java.lang.NullPointerException

    Have a look at these two lines of your code:

    void getDisplayLifeReviewForHome()
    and

    if (getDisplayLifeReviewForHome( agt ).equals( TRUE ))
    In the second of these lines you are invoking the...
  17. Re: Arraylist and Hashmap now working properly

    That depends on what strings the st.nextToken() method is returning. If these strings can repeat, ArrayList will load them as different elements, but when you put these duplicates in the HashMap they...
  18. Replies
    6
    Views
    965

    Re: Nextline delimiter in String.split

    You can use Scanner for that, but then you don't have to use String.split(). Instead of reading the whole input as one string and splitting it, just read and store the lines one by one. In this case...
  19. Replies
    6
    Views
    965

    Re: Nextline delimiter in String.split

    Have you read the API docs on Scanner.nextLine() before using it? It usually helps to know how the methods you try to use work. If you had read the API docs you would have seen that nextLine "returns...
  20. Replies
    263
    Views
    12,535

    Re: New Forum Update

    I think that's the best option right now.
  21. Replies
    263
    Views
    12,535

    Re: New Forum Update

    Another silly question: has anyone tested this new version before doing the update? If someone tested it, I can't believe they didn't find any of these many issues before...

    After several weeks it...
  22. Replies
    2
    Views
    377

    Re: Subtraction Quiz Program

    It seems there is a + missing between number1 and "-".
  23. Replies
    263
    Views
    12,535

    Re: New Forum Update

    Since the last update the response time of this site has been consistently bad. Not to the extreme of your experience, though a couple of times I closed the browser fed up with waiting for the page...
  24. Replies
    13
    Views
    427

    Re: Am I the only one...

    Nope, you are not the only one.

    These "upgrades" are really bad. On one hand, I quite like the new graphics, but the new colour scheme is horrible (several other users have complained about this)...
  25. Replies
    6
    Views
    1,770

    Re: mirror Strings using recursive method

    I think it is possible (and quite easy) with a method with that signature. But I agree with you that there are better solutions without using recursion.

    @raylistic87, your attempt is not too far...
Results 1 to 25 of 114
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width