Results 1 to 3 of 3
  1. #1
    new2java2009 is offline Member
    Join Date
    Aug 2009
    Posts
    60
    Rep Power
    0

    Default Trying to understand this code

    Can I assume that the following code will bring up a dialog, with an error message if the "dialogThrowables" contains at least 1 throwable?

    ArrayList<Throwable> dialogThrowables = new ArrayList<Throwable>();


    if (!dialogThrowables.isEmpty())
    {
    context.showErrorDialog(FaultBarrier.errorMessage) ;
    }

  2. #2
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    6

    Default

    Looks like it. :P
    My Hobby Project: LegacyClone

  3. #3
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Quote Originally Posted by new2java2009 View Post
    Can I assume that the following code will bring up a dialog, with an error message if the "dialogThrowables" contains at least 1 throwable?

    ArrayList<Throwable> dialogThrowables = new ArrayList<Throwable>();


    if (!dialogThrowables.isEmpty())
    {
    context.showErrorDialog(FaultBarrier.errorMessage) ;
    }
    You could prove mrmatt1111 right or wrong by testing it.
    Non tested sssumptions are best avoided wherever possible.

Similar Threads

  1. Help me understand this method
    By VinceGuad in forum New To Java
    Replies: 4
    Last Post: 04-11-2009, 01:00 AM
  2. Help me to understand the problem
    By ron87 in forum New To Java
    Replies: 1
    Last Post: 03-25-2009, 04:34 PM
  3. I don´t understand
    By Manikyr in forum New To Java
    Replies: 6
    Last Post: 02-22-2009, 11:22 PM
  4. help me need to understand queries
    By hossainsadd in forum JDBC
    Replies: 1
    Last Post: 05-26-2008, 12:02 AM
  5. Errors I don't understand
    By MattyB in forum New To Java
    Replies: 4
    Last Post: 04-01-2008, 11:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •