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

Search:

Type: Posts; User: jcaccia

Page 1 of 12 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: Making a int read multiple ints (Scanners)?

    This might sound like a stupid question but, what version of Java are you using? Scanner was introduced in 1.5.
  2. Replies
    8
    Views
    973

    Re: How to add strings to this Code?

    When comparing objects (Strings in particular) == tests for identity (ie, if the references compared refer to the same object); to test equality use the equals method. In this case you can also use...
  3. 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...
  4. Replies
    4
    Views
    775

    Re: How can I submit data into an iFrame?

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

    Re: Code does nothing :(

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

    Re: MS SQL Server Trigger

    Or why not using the more suitable and standard ISO codes? (see ISO 3366 and ISO 4217)
  7. 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...
  8. 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...
  9. Replies
    8
    Views
    1,977

    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...
  10. Replies
    1
    Views
    721

    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...
  11. 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,...
  12. Thread: GPA Program

    by jcaccia
    Replies
    4
    Views
    1,628

    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...
  13. Thread: String problem

    by jcaccia
    Replies
    10
    Views
    1,329

    Re: String problem

    keang posted the answer already (see post #8)
  14. Replies
    3
    Views
    639

    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.
  15. 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...
  16. 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...
  17. 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?
  18. 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...
  19. 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...
  20. Replies
    6
    Views
    1,640

    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...
  21. Replies
    6
    Views
    1,640

    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...
  22. Replies
    279
    Views
    28,149

    Re: New Forum Update

    I think that's the best option right now.
  23. Replies
    279
    Views
    28,149

    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...
  24. Replies
    2
    Views
    645

    Re: Subtraction Quiz Program

    It seems there is a + missing between number1 and "-".
  25. Replies
    279
    Views
    28,149

    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...
Results 1 to 25 of 296
Page 1 of 12 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center