The Artima Developer Community
Sponsored Link

Java Buzz Forum
Saturday JavaFX Script Quiz: Is It Possible ...?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
Saturday JavaFX Script Quiz: Is It Possible ...? Posted: Mar 28, 2009 8:44 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: Saturday JavaFX Script Quiz: Is It Possible ...?
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

Given the following JavaFX Script class and variable declaration:

public class Foo {
    public var i:Integer = 1024 on replace {
        if (i < 1000) {
            i = 1000;
        } else if (i > 2000) {
            i = 2000;
        }
    }
}
var foo: Foo;

is it possible for this line of code later in the program:

println(foo.i)

to print anything other than an integer between 1000 and 2000 onto the console?

Read: Saturday JavaFX Script Quiz: Is It Possible ...?

Topic: Open source Java projects: Jakarta Cactus Previous Topic   Next Topic Topic: Links for 2009-03-24 [del.icio.us]

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use