Please help, novice!

Write an application using the while loop that displays even integers from 20 to 0, then displays the results in a message dialog.
My question is basic: how do I get the loop to output only even numbers?

ylvawandel, thanks for helping--your sample code is indeed correct. :)
But, please keep in mind that if someone says that a thread is a duplicate and posts a link to the other copy, as ChuckBing did in the first reply, the intention is for this thread to be abandoned, so that replies don't get duplicated, and all answers go in the same place. Duplicating replies wastes the time of everyone here--both the people trying to answer and the people who are asking the questions. Next time you see something like this and want to reply, please add the reply to the linked thread instead. :)
This is not intended to be an insult to you (sometimes people take things the wrong way here)--it is just standard advice for everyone using the forum. You are obviously new here (from your registration date and number of posts), and you are certainly quite welcome to post both questions and answers here.
Have a great day!

Similar Messages

  • How to cycle through scenes using the up and down buttons??? (Please help, novice!)

    Hi,
    I'm currently trying to teach myself how to use flash CS5 and actionscript 3 and apart from doing small amounts of programing here and there I'm a complete novice.
    I have 36 photographs taken at 10-degree angles, making an object and i have each image in a different scene, with hidden buttons asigned to different parts of the object so that whenever you hover your mouse over them it provides some more information.
    What I want to do is to be able to cycle through these images in the different scenes using the up and down buttons on the keyboard.
    I'm hoping that I'm at least half way there having assigned the 'hot-spots' but I'm just stuck on the final part... please help!!!!
    Many thanks in advance!
    Harry

    If you are talking about the arrow keys on the keyboard you will have to use a Keyboard Event listener and take note of the constant value for resulting KeyCode
    This website seems to have a handle on it:
    http://www.republicofcode.com/tutorials/flash/as3keyboard/
    There is another method that allows you to listen just to the keys you want (up and down):
    http://www.flex888.com/598/using-keycodes-in-actionscript-3.html

  • Macbook white non startup - please help novice

    Please help - i've just bought my first mac and i'm already stuck .
    Everything was fine - it worked ok, but i turned it off and all I'm getting now is the spinning wheel on a grey screen - i've tried everything the manual suggests.
    please can someone help me?

    I just added this to my own thread, but I wanted to make sure you got it:
    If you just bought a new machine, I would suggest getting Apple phone help. I am far out of warranty, no Apple Care (bought it for the desktop, never used). One thing that is helping me is that I can access & manipulate my MacBook via my desktop iMac. I spent about 3 days checking out this discussion forum and trouble shooting prior to posting my conundrum. It sounds like starting up from the Install DVD and an Archive & Install are good places to start - anyone please correct me if I am wrong. Good luck!
    I'll keep an eye on your thread & try to help if I can. Stand Strong!

  • Please Help - Novice - ITunes update lost my sound.

    I have spent all day trying to sort this out, please help.
    My IPhone asked me to update ITunes to the latest version, I did this, updated the IPhone as well and then added some music, after it synced I noticed my sound icon had gone and when I tried to play music/video's there was no sound on the computer at all.
    I uninstalled ITunes and Quick time and re-installed, no change, I did a system restore back a day and the sound came back but ITunes reverted to the older version and when I plugged in the IPhone is said it could not access it as the library was created on a newer version.
    I use windows XP, have checked the Sound in Control Panel and nothing is registered, Direct X says no sound card attached, I have tried downloading Direct X again, in the Devices Manager is has a Multimedia device listed with the yellow? mark, I have gone through trying to update drivers but nothing works.
    The only way I can get the sound back is a system restore but then ITunes is out of date and will not access my phone, if I then update ITunes from the website it takes off the sound again so I am going round in circles, has anyone else had this problem or has anyone got any advise.. please keep in mind I am not very technical..

    try just move the .dll file from C:\Program Files (x86)\iTunes (or C:\Program Files\iTunes for window 32 bit) to desktop. reboot should fix it. if not you have to reinstall itunes(http://support.apple.com/kb/ht1923) choose repair if one component does not work.

  • Please help novice due to install Leopard

    1. Excitedly, but nervously going to install Leopard in the next few days. Will I eventually need more than 512 RAM? Anyway, I would like to upgrade this to 1GB. How do I go about this? Do I purchase an external drive?
    2. I know I should back-up important files, but will everything be transferred over to Leopard automatically?
    3. Does the Archive (from Archive and Install box)stay permanently, or can I delete it eventually? Will I be able to access files in the Archive folder?
    Sorry to be so naive!
    Many thanks for any help.
    Kathy

    Ok. Good luck on your endeavor. Here is my advice.
    1. Upgrade you G5 to about 2Gbytes of memory. You can buy it very cheaply from Other World Computing at http://www.macsales.com/.
    2. If you want to back up your files using TIme Machine I suggest you buy a G-Drive from G-Technology. Their disks come pre-formatted for Mac O/S X. There are many people on this forum that buy their disks from Costco and think they've successfully reformatted their PC formatted disk to support Mac Journaled O/S, and haven't completed the exercise properly, therefore they get into trouble. G-technology is at http://www.g-technology.com/ . Apple's new Time Capsule is another way to backup but it is a wireless connection. Your choice, either Time Machine or Time Capsule.
    3. Archive and install or Erase and install are/is the only way "safe" to upgrade to Leopard. Many people on this forum have gotten themselves into severe trouble by merely doing the "upgrade". A&I will leave an archive file on your disk that you may eventually delete. I don't know how to access this file but it should be straightforward by answering some "restore" questions.
    4. If you do the A&I or the E&I you may have to reinstall your printer drivers. I am not sure what your printer is, therefore, I cannot say if it comes in Leopard. However, many many drivers are included. HP is in the process of upgrading all their drivers and software to 10.5.
    Message was edited by: Russa

  • Slow net connection after Yosemite - someone please help novice

    so i have read quite a lot on here which has all been very interesting so i hope you will bare with someone who really does not know a lot about computers.
    Since the dreaded Yosemite upgrade my mac has ground to more or less a total halt trying to open the internet in any number of browsers (safari and firefox to name but two).
    I have been able to run a speed test and says my wifi has my 60+gb download speed and about 6 upload so no issue there.
    I am confused to say the least what has gone wrong as my phone and iPad seem to work ok. Can anyone tell me in simple terms if there are any solutions what the problem is as i am really crippled and my business is suffering.
    PS Apple i am really not impressed by this totally botched upgrade and when going into a store to see one of the technicians they will only see you if you pay.. this is your fault i might remind you.
    Grant
    London

    Apple doesn’t routinely monitor the discussions. These are mostly user to user discussions.
    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback
    Wi-Fi Problems in OS X Yosemite
    Wi-Fi Problems in OS X Yosemite (2)
    Wireless Diagnostics
    Also try turning off Bluetooth.
    Troubleshooting Wi-Fi issues in OS X

  • Laptop crash with i tunes library. Have recently sync with my work mac but I am missing all my old songs.  Please help.   I tunes novice.

    My laptop  crashed with mine and my husbands I tunes Library.  I have sync my i phone with my work mac but I am still missing some of my songs.
    My husband was unable to do this as his i phone broke too and he has no music at all. 
    Please help.

    Apple devices are designed to sync with a single library. If you move the device to a new library iTunes will suggest wiping the device and reloading it with the contents of the library on the new computer, even if most of the content is identical. For an iOS device this process would also delete and reinstall any applications which would discard and settings or saved data associated with the apps. You probably don't want to do this.
    Ideally you would have migrate the working library from the computer previously used to manage the device (the laptop) to the computer you now want to use (the desktop) before adding other new content into the new computer's library. That way the device would have easily moved from syncing with one machine to the other.
    I'm not quite sure what the best next step is at this point. Does the desktop library sync with any other devices?
    tt2

  • Please help with a Poster Frame

    I have imported an FLV into Flash using "Video Import" and selected a prebuilt skin that gives play, volume and caption control. The movie has autoplay turned off so when I viewed on the webpage it shows a black first screen and the skin beneath it. I would like to insert a poster frame that will hide when the user presses play on the skin. I was a novice with AS 1 and 3.0 is making me facepalm. Please help, I've already tried Flashkit and Actionscript.org and not gotten any answers. Thanks!!

    Okay in Frame 1 I have an AS layer I copied your code into, layer two is the movie clip with the image named 'myPoster' and the third layer contains the FLV playback named 'myVideo' so I changed the names in the code to:
    mvVideo.addEventListener(MouseEvent.CLICK,f):
    function f(e:MouseEvent):void{
    removeChil((myPoster);
    I get the following compiler errors and publish preview shows just the image:
    Scene1,Layer 'Action Script', Frame 1, Line 1 1078: Label must be a simple identifier.
    Scene1,Layer 'Action Script', Frame 1, Line 4 1084: Syntax error: expecting rightparen before semicolon.
    So I tried modifying the code to:
    mvVideo.addEventListener(MouseEvent.CLICK,f);
    function f(e:MouseEvent):void{
    removeChil((myPoster));
    Which fixed the original errors but still only the image shows and I get new compiler errors.
    Scene1,Layer 'Action Script', Frame 1, Line 4 1180:Call to a possibly undefined method removeChil.
    Scene1,Layer 'Action Script', Frame 1, Line 4 1120: Access of undefined property myPoster.
    Scene1,Layer 'Action Script', Frame 1, Line 1 1120: Access of undefined property myPoster.
    Thanks for your patience and help!

  • Please Help Me Install Flash player

    Yesterday I unintentionally uninstalled Flash player with a product named Perfect Uninstaller. During the process it states that the Item I uninstalled will be uninstalled now and forever. Every time I click "run" to install it starts for about one second and then stops completely. I'm beginning to think that they meant it and that there is some sort of blocking going on but that is just an assumption. I hope some can help. I am a novice obviously. I am using Windows XP.
    Message was edited by: toad eater
    Message was edited by: toad eater

    Yeah it was a goofy move for sure. Thanks for the direction I finally got the download..
    Date: Thu, 16 Sep 2010 15:50:03 -0600
    From: [email protected]
    To: toad eater
    Subject: Flash Player Please Help Me Install Flash player
    Hi, I really don't know how one can "unitentionally uninstall" anything, LOL
    You can go to this site and follow the instructions:
    http://kb2.adobe.com/cps/191/tn_19166.html
    Thanks,
    eidnolb
    >

  • Please Help ?? Tomcat 6 and JDK 6 Class Not Found Exception when deploying

    Hi,
    I am deploying this application in Tomcat 6, but I am getting ClassNotFoundException when I try to the application. I am a novice at this.
    SEVERE: Error loading WebappClassLoader
      delegate: false
      repositories:
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@146c1d4
    com.jbe.test.HelloWorldServlet
    java.lang.ClassNotFoundException: com.jbe.test.HelloWorldServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:619)
    Oct 15, 2007 12:57:31 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Allocate exception for servlet asterisk
    java.lang.ClassNotFoundException: com.jbe.test.HelloWorldServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:619)My web xml configuration
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">
         <display-name>Hello, World Application</display-name>
        <description>
         Simple Test with a servlet.
        </description>
        <servlet>
             <servlet-name>helloworld</servlet-name>
             <servlet-class>com.jbe.test.HelloWorldServlet</servlet-class>
        </servlet>
        <servlet-mapping>
             <servlet-name>helloworld</servlet-name>
             <url-pattern>/hello.htm</url-pattern>
        </servlet-mapping>
    </web-app>My JSP: <html>
         <head><title>Test Hello World</title>
         </head>
         <body>
         <form>
         <a href = "hello.htm">Hello World</a>
         </form>
         </body>
    </html>
    Please Help !!!

    Are you sure your HelloWorldServlet has doGet method?
    package com.jbe.test;
    // Import servlet packages
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class HelloWorldServlet extends HttpServlet {
         public HelloWorldServlet() {}
         public void init() throws ServletException     {}
         public void doGet(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException           {
              response.setContentType("text/html");
            // then get the writer and write the response data
            PrintWriter out = response.getWriter();
            out.println("<HEAD><TITLE> SimpleServlet Output</TITLE></HEAD><BODY>");
            out.println("<h1> SimpleServlet Output </h1>");
            out.println("<P>This is output is from SimpleServlet.");
         out.println("</BODY>");
         out.close();
         public void destroy()     {}
    }

  • Download Camera Raw 8.3 update for my Photoshop CS6-How do I do it?  I cannot find this option anywhere on the download sights for Adobe PS.  Please help with specific instructions.  Thanks

    I cannot find anywhere on the Adobe sights the specific page where I can download Photoshop CS6 Camera Raw Update to 8.4 or 8.4 to support Lightroom 5 and my new Sony a7r camera.  Please help.  I am a tech novice.  Thanks.

    Rodger,
    Thank you for your gracious welcome . . .
    and thank you for your swift response . . .
    and thank you for your information (and encouragement!).
    Yes, I read that too, but searched in vain for the specifity of, say, your direction:
    "Go ahead and update to 8.0.2, as it contains the 8.0.1 update."
    So I shall!
    Again, many thanks.

  • Please help!!! Tuning the query

    Hi,
    I am using Oracle BDBXML 2.4.16. In the following, policyContainer.dbxml has around 1000 documents and productsContainer.dbxml around 10 documents. The following query is taking around 6 - 8 seconds to fetch the data of around 300 records. I have created node-element-equality-string indexes on PolicyEvent, PolicyStatus, Archived, IsLatest, ProductID and CompanyID.
    I am novice on Query tuning. Can someone please help me to tune the following query. I have posted the query plan as well.
    Thanks in Advance!!
    Balakrishna.
    Query:
    query ' for $policy in collection("policyContainer.dbxml")/Policy[PolicyState/PolicyEvent=("APPLICATION","QUOTE","BINDER","POLICY","ENDORSEMENT QUOTE")]
    [PolicyHeader/ProductID = (for $product in collection("productsContainer.dbxml")/Product/ProductsHeader[CompanyID=(1)] return $product/ProductID)]
    [PolicyState/PolicyStatus !=("RATE","DECLINED ENDORSEMENT QUOTE","DECLINED NON-PRE ENDORSEMENT QUOTE","DECLINED EXTENSION QUOTE")]
    [PolicyState/Archived !="true"]
    [(PolicyState/IsLatest !="false"
    and (PolicyState/PolicyStatus != ("ENDORSEMENT QUOTE","NON-PRE ENDORSEMENT QUOTE","EXTENSION QUOTE")))
    or (PolicyState/IsLatest !="true"
    and (PolicyState/PolicyStatus =("ENDORSEMENT QUOTE","NON-PRE ENDORSEMENT QUOTE","EXTENSION QUOTE")))]
    let $state := $policy/PolicyState 
    let $header := $policy/PolicyHeader
    let $datatable := $policy/DataTable/DataTableInfo
    return
    <policyDetail>
    {$policy/SubmissionNumber},
    {$policy/DocumentNumber},
    {$policy/QuoteVersionNumber},
    {$state/*,$header/*,$datatable/*}
    </policyDetail>'
    Query plan:
    <XQuery>
      <Return>
        <LetTuple uri="" name="datatable">
          <LetTuple uri="" name="header">
            <LetTuple uri="" name="state">
              <ForTuple uri="" name="policy">
                <ContextTuple/>
                <QueryPlanToAST>
                  <BufferQP id="2">
                    <NegativeNodePredicateFilterQP uri="" name="#tmp67">
                      <NegativeNodePredicateFilterQP uri="" name="#tmp73">
                        <NodePredicateFilterQP uri="" name="#tmp404">
                          <ParentOfChildJoinQP>
                            <StepQP axis="parent-of-child" name="PolicyState" nodeType="element">
                              <UnionQP>
                                <ValueQP container="policyContainer.dbxml" index="node-element-equality-string" operation="eq" child="PolicyEvent" value="ENDORSEMENT QUOTE"/>
                                <ValueQP container="policyContainer.dbxml" index="node-element-equality-string" operation="eq" child="PolicyEvent" value="APPLICATION"/>
                                <ValueQP container="policyContainer.dbxml" index="node-element-equality-string" operation="eq" child="PolicyEvent" value="POLICY"/>
                                <ValueQP container="policyContainer.dbxml" index="node-element-equality-string" operation="eq" child="PolicyEvent" value="BINDER"/>
                                <ValueQP container="policyContainer.dbxml" index="node-element-equality-string" operation="eq" child="PolicyEvent" value="QUOTE"/>
                              </UnionQP>
                            </StepQP>
                            <StepQP axis="child" name="Policy" nodeType="element">
                              <SequentialScanQP container="policyContainer.dbxml" nodeType="document"/>
                            </StepQP>
                          </ParentOfChildJoinQP>
                          <ValueFilterQP comparison="eq" general="true">
                            <StepQP axis="child" name="ProductID" nodeType="element">
                              <StepQP axis="child" name="PolicyHeader" nodeType="element">
                                <VariableQP name="#tmp404"/>
                              </StepQP>
                            </StepQP>
                            <Atomize>
                              <Return>
                                <ForTuple uri="" name="product">
                                  <ContextTuple/>
                                  <QueryPlanToAST>
                                    <ParentOfChildJoinQP>
                                      <ValueFilterQP comparison="eq" general="true">
                                        <PresenceQP container="productsContainer.dbxml" index="node-element-equality-string" operation="prefix" child="CompanyID"/>
                                        <Sequence>
                                          <NumericTypeConstructor value="1.0E0" typeuri="http://www.w3.org/2001/XMLSchema" typename="integer"/>
                                        </Sequence>
                                      </ValueFilterQP>
                                      <StepQP axis="child" name="ProductsHeader" nodeType="element">
                                        <StepQP axis="child" name="Product" nodeType="element">
                                          <SequentialScanQP container="productsContainer.dbxml" nodeType="document"/>
                                        </StepQP>
                                      </StepQP>
                                    </ParentOfChildJoinQP>
                                  </QueryPlanToAST>
                                </ForTuple>
                                <QueryPlanToAST>
                                  <StepQP axis="child" name="ProductID" nodeType="element">
                                    <VariableQP name="product"/>
                                  </StepQP>
                                </QueryPlanToAST>
                              </Return>
                            </Atomize>
                          </ValueFilterQP>
                        </NodePredicateFilterQP>
                        <ValueFilterQP comparison="ne" general="true">
                          <ValueFilterQP comparison="ne" general="true">
                            <ValueFilterQP comparison="ne" general="true">
                              <ValueFilterQP comparison="ne" general="true">
                                <StepQP axis="child" name="PolicyStatus" nodeType="element">
                                  <StepQP axis="child" name="PolicyState" nodeType="element">
                                    <VariableQP name="#tmp73"/>
                                  </StepQP>
                                </StepQP>
                                <Sequence>
                                  <AnyAtomicTypeConstructor value="RATE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                                  <AnyAtomicTypeConstructor value="DECLINED ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                                  <AnyAtomicTypeConstructor value="DECLINED NON-PRE ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                                  <AnyAtomicTypeConstructor value="DECLINED EXTENSION QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                                </Sequence>
                              </ValueFilterQP>
                              <Sequence>
                                <AnyAtomicTypeConstructor value="RATE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                                <AnyAtomicTypeConstructor value="DECLINED ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                                <AnyAtomicTypeConstructor value="DECLINED NON-PRE ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                                <AnyAtomicTypeConstructor value="DECLINED EXTENSION QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                              </Sequence>
                            </ValueFilterQP>
                            <Sequence>
                              <AnyAtomicTypeConstructor value="RATE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                              <AnyAtomicTypeConstructor value="DECLINED ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                              <AnyAtomicTypeConstructor value="DECLINED NON-PRE ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                              <AnyAtomicTypeConstructor value="DECLINED EXTENSION QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                            </Sequence>
                          </ValueFilterQP>
                          <Sequence>
                            <AnyAtomicTypeConstructor value="RATE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                            <AnyAtomicTypeConstructor value="DECLINED ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                            <AnyAtomicTypeConstructor value="DECLINED NON-PRE ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                            <AnyAtomicTypeConstructor value="DECLINED EXTENSION QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                          </Sequence>
                        </ValueFilterQP>
                      </NegativeNodePredicateFilterQP>
                      <ChildJoinQP>
                        <StepQP axis="child" name="PolicyState" nodeType="element">
                          <VariableQP name="#tmp67"/>
                        </StepQP>
                        <ValueQP container="policyContainer.dbxml" index="node-element-equality-string" operation="eq" child="Archived" value="true"/>
                      </ChildJoinQP>
                    </NegativeNodePredicateFilterQP>
                    <UnionQP>
                      <NegativeNodePredicateFilterQP uri="" name="#tmp18">
                        <NegativeNodePredicateFilterQP uri="" name="#tmp46">
                          <BufferReferenceQP id="2"/>
                          <ChildJoinQP>
                            <StepQP axis="child" name="PolicyState" nodeType="element">
                              <VariableQP name="#tmp46"/>
                            </StepQP>
                            <ValueQP container="policyContainer.dbxml" index="node-element-equality-string" operation="eq" child="IsLatest" value="false"/>
                          </ChildJoinQP>
                        </NegativeNodePredicateFilterQP>
                        <ValueFilterQP comparison="ne" general="true">
                          <ValueFilterQP comparison="ne" general="true">
                            <ValueFilterQP comparison="ne" general="true">
                              <StepQP axis="child" name="PolicyStatus" nodeType="element">
                                <StepQP axis="child" name="PolicyState" nodeType="element">
                                  <VariableQP name="#tmp18"/>
                                </StepQP>
                              </StepQP>
                              <Sequence>
                                <AnyAtomicTypeConstructor value="ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                                <AnyAtomicTypeConstructor value="NON-PRE ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                                <AnyAtomicTypeConstructor value="EXTENSION QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                              </Sequence>
                            </ValueFilterQP>
                            <Sequence>
                              <AnyAtomicTypeConstructor value="ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                              <AnyAtomicTypeConstructor value="NON-PRE ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                              <AnyAtomicTypeConstructor value="EXTENSION QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                            </Sequence>
                          </ValueFilterQP>
                          <Sequence>
                            <AnyAtomicTypeConstructor value="ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                            <AnyAtomicTypeConstructor value="NON-PRE ENDORSEMENT QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                            <AnyAtomicTypeConstructor value="EXTENSION QUOTE" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
                          </Sequence>
                        </ValueFilterQP>
                      </NegativeNodePredicateFilterQP>
                      <NegativeNodePredicateFilterQP uri="" name="#tmp56">
                        <ParentOfChildJoinQP>
                          <StepQP axis="parent-of-child" name="PolicyState" nodeType="element">
                            <UnionQP>
                              <ValueQP container="policyContainer.dbxml" index="node-element-equality-string" operation="eq" child="PolicyStatus" value="NON-PRE ENDORSEMENT QUOTE"/>
                              <ValueQP container="policyContainer.dbxml" index="node-element-equality-string" operation="eq" child="PolicyStatus" value="EXTENSION QUOTE"/>
                              <ValueQP container="policyContainer.dbxml" index="node-element-equality-string" operation="eq" child="PolicyStatus" value="ENDORSEMENT QUOTE"/>
                            </UnionQP>
                          </StepQP>
                          <BufferReferenceQP id="2"/>
                        </ParentOfChildJoinQP>
                        <ChildJoinQP>
                          <StepQP axis="child" name="PolicyState" nodeType="element">
                            <VariableQP name="#tmp56"/>
                          </StepQP>
                          <ValueQP container="policyContainer.dbxml" index="node-element-equality-string" operation="eq" child="IsLatest" value="true"/>
                        </ChildJoinQP>
                      </NegativeNodePredicateFilterQP>
                    </UnionQP>
                  </BufferQP>
                </QueryPlanToAST>
              </ForTuple>
              <QueryPlanToAST>
                <StepQP axis="child" name="PolicyState" nodeType="element">
                  <VariableQP name="policy"/>
                </StepQP>
              </QueryPlanToAST>
            </LetTuple>
            <QueryPlanToAST>
              <StepQP axis="child" name="PolicyHeader" nodeType="element">
                <VariableQP name="policy"/>
              </StepQP>
            </QueryPlanToAST>
          </LetTuple>
          <QueryPlanToAST>
            <StepQP axis="child" name="DataTableInfo" nodeType="element">
              <StepQP axis="child" name="DataTable" nodeType="element">
                <VariableQP name="policy"/>
              </StepQP>
            </StepQP>
          </QueryPlanToAST>
        </LetTuple>
        <DOMConstructor type="element">
          <Name>
            <Sequence>
              <ATQNameConstructor uri="" prefix="" localname="policyDetail" typeuri="http://www.w3.org/2001/XMLSchema" typename="QName"/>
            </Sequence>
          </Name>
          <Children>
            <ContentSequence>
              <QueryPlanToAST>
                <StepQP axis="child" name="SubmissionNumber" nodeType="element">
                  <VariableQP name="policy"/>
                </StepQP>
              </QueryPlanToAST>
            </ContentSequence>
            <ContentSequence>
              <Sequence>
                <AnyAtomicTypeConstructor value="," typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
              </Sequence>
            </ContentSequence>
            <ContentSequence>
              <QueryPlanToAST>
                <StepQP axis="child" name="DocumentNumber" nodeType="element">
                  <VariableQP name="policy"/>
                </StepQP>
              </QueryPlanToAST>
            </ContentSequence>
            <ContentSequence>
              <Sequence>
                <AnyAtomicTypeConstructor value="," typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
              </Sequence>
            </ContentSequence>
            <ContentSequence>
              <QueryPlanToAST>
                <StepQP axis="child" name="QuoteVersionNumber" nodeType="element">
                  <VariableQP name="policy"/>
                </StepQP>
              </QueryPlanToAST>
            </ContentSequence>
            <ContentSequence>
              <Sequence>
                <AnyAtomicTypeConstructor value="," typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
              </Sequence>
            </ContentSequence>
            <ContentSequence>
              <Parenthesized>
                <QueryPlanToAST>
                  <ChildJoinQP>
                    <VariableQP name="state"/>
                    <SequentialScanQP container="policyContainer.dbxml" nodeType="element"/>
                  </ChildJoinQP>
                </QueryPlanToAST>
                <QueryPlanToAST>
                  <StepQP axis="child" uri="*" name="*" nodeType="element">
                    <VariableQP name="header"/>
                  </StepQP>
                </QueryPlanToAST>
                <QueryPlanToAST>
                  <ChildJoinQP>
                    <VariableQP name="datatable"/>
                    <SequentialScanQP container="policyContainer.dbxml" nodeType="element"/>
                  </ChildJoinQP>
                </QueryPlanToAST>
              </Parenthesized>
            </ContentSequence>
          </Children>
        </DOMConstructor>
      </Return>
    </XQuery>

    The good news is that your indexes are being used (anywhere in the query plan where you see index="node-element-equality-string"), the bad news is that the entire policyContainer is being scanned several times (<SequentialScanQP container="policyContainer.dbxml" nodeType="element"/>). Your best bet is to upgrade to dbxml-2.5.16, since that has several improvements to the optimizer that should optimize away those scans. Failing that, use the shell command (dbxml) to add and remove indexes and see how that changes the query plan and speed. The following line is what is causing the scans:
    {$state/*,$header/*,$datatable/*}So add indexes that will help to locate those nodes, or change that line so that the query is faster.
    Lauren Foutz

  • Please please help. I need to get this code working ASAp

    hi! right, I am a java dunce. I am doing a web design degree at uni and annoyingly have to take a programming module. I just don't get it one bit and the lecturer is a sadist and won't help. I have tried countless books and what not but it all goes over my head.... to the problem
    We were given some code for a "guess the number" game. it generates a random number between 1 and 1000. You then have to guess the number. If you guess higher it should output "you ned to guess higher" and visa versa. Also if you enter 0 it should exit the program (which it does)
    The code had logical and syntax erros in it most of which I think I have managed to find but it still does not work and I have been at this for hours now (even my headache has a headache)
    It compiles now but when you enter a number the program just spits out the line "Enter your guess, from 1 to 1000 inclusive (0 to quit):" again but doesn't tell you if you should go higher or lower.
    I can only get it to spit out the "you need to guess lower" line if you enter a number above 1000 which is wrong.
    please please help me. Just point me in the right direction or something but please use novice language or I think I might have to go jump of the nearest peir.
    The code I have so far is:
    import java.util.*;
    public class guessgame2
    public static void main(String[] args)
    // Declare variables, setup keyboard input and the
    // random number generator
    int game_number, user_number;
    String continue_pref;
    Scanner data_input = new Scanner(System.in);
    Random generate = new Random();
    do
    // Generate game number
    game_number = generate.nextInt(999) + 1;
    // The following line is a debug line, comment out
    // for real game.
    // System.out.printf("Game number:%d%n", game_number);
    // Get users first guess
    System.out.print("The computer has generated a number.");
    do
    System.out.printf("%nEnter your guess, from 1 to 1000 inclusive (0 to quit):");
    user_number = data_input.nextInt();
    } while ((user_number >= 1) && (user_number <= 1000));
    // While user has not guessed right and does not want to quit
    while ((user_number == game_number) || (user_number != 0))
    if (user_number > game_number)
    System.out.printf("You need to guess lower%n");
    else
    System.out.printf("You need to guess higher%n");
    // Get users next guess
    do
    System.out.printf("%nEnter your guess, from 1 to 1000 inclusive (0 to quit):");
    user_number = data_input.nextInt();
    } while ((user_number >= 1) && (user_number <= 1000));
    if (user_number == game_number);
    // User has guessed right
    System.out.printf("%nYou guessed correctly, well done.%nDo you want to play again (y/Y)=Yes: ");
    continue_pref = new String(data_input.next());
    if (user_number == 0)
    // User wants to quit
    continue_pref = new String("No");
    } while (continue_pref.equalsIgnoreCase("N"));
    } (thankyou)

    Is this posted in two different sections of the forum? Oh well... here you
    are, would be a good idea to do as WIlfred_Death suggested and write
    out what you need your program to do, then put them in the order for
    them to work, and then convert your notes to code, and then you get
    like so....
    import java.util.*;
    import java.io.*;
    public class guessgame2{
         public static void main(String[] args) throws IOException{
              BufferedReader userIn = new BufferedReader(new InputStreamReader(System.in));
              Scanner data_input = new Scanner(System.in);
              Random generate = new Random();
              int game_number, user_number;
              String continue_pref = "Y";
              Boolean done = false;
              int max = 1000;
              int min = 1;
              System.out.println("Would you like to play my guessing game?(y/n) ");
              continue_pref = userIn.readLine();
              continue_pref = continue_pref.trim();
              game_number = generate.nextInt(999) + 1;
              //System.out.println(game_number);//--->UNCOMMENT THIS IF YOU WANT TO DISPLAY game_number<---
              /*-----Run program while user agrees to-----*/
              while(continue_pref.equalsIgnoreCase("Y")){
                   /*-----Let user guess until they win or choose to quit-----*/
                   while(!done){
                        System.out.println("Enter your guess, from 1 to 1000 inclusive(0 to quit):");
                        user_number = data_input.nextInt();
                        /*-----check if user wants to quit-----*/
                        if(user_number==0){
                             continue_pref = "n";
                             done=true;
                        else{
                             /*-----Check if user won-----*/
                             if(user_number==game_number){
                                  System.out.println("Congradulations you've won! Would you like to continue(y/n)?");
                                  continue_pref = userIn.readLine();
                                  continue_pref = continue_pref.trim();
                                  /*-----If user wants to play again,
                                            regenerate game_number-----*/
                                  if(continue_pref.equalsIgnoreCase("n")){
                                       done=true;
                                  else{
                                       game_number = generate.nextInt(999)+1;
                                       //System.out.println(game_number);//--->UNCOMMENT THIS IF YOU WANT TO DISPLAY game_number<---
                             }/*-----Check if user number is lower-----*/
                             else if(user_number<game_number){
                                  System.out.println("You need to guess higher!\n");
                             else{/*-----Number must be higher-----*/
                                  System.out.println("You need to guess lower!\n");
    }

  • PLEASE HELP (Very New to web content)

    Hi guys. I made a website for a client in ImageReady. They
    wanted to be able to update with business news on thier own, and
    have me do the major site updates. I was thinking they could do
    this by me creating a blog on blogger for them and trying to figure
    out a way insert the blog into the website I created. I want to put
    into a specific spot on the website and the client wanted it to
    scroll so that customers can see previous posts. I know alot of you
    think that scrolling boxes kind of suck but for this purpose I
    really think it would work really cool. Can you please help me. I
    have very little knowledge of code. I am actually a video motion
    graphics guy, and because of my knowledge of photoshop started to
    move into web. So if you have to talk to me like an infant about
    the code, please do. : ) Here is the wbsite I want to add it to:
    http://www.xtremefitnessco.com.
    Text
    You can see on the main page the section I am using for the
    news. Thats were I want to put the scroll box. I guess I am asking
    how to do two things here:
    1. Insert a scroll box.
    2. And have that box pull from a web log that the client
    updates.
    Thanks for any help you can give me guys. Sorry for the
    novice question.
    P.S. Let me know if you think my design needs work or if you
    like it. : )

    >> if you think my design needs work
    All you have is a series of interchangeable images. You
    really haven't built
    a website. You have built an online PowerPoint show. There is
    no text. Turn
    off graphics in your browser and look at your site. Is that
    what you want
    some visitors to see?
    The mistake is building a site in Image Ready. Build your
    images there but
    add your text in DreamWeaver.
    Sorry, but were I you I would get a good book or two and
    start over. Might
    as well do it right than have a competent designer tell your
    client you did
    it wrong.
    Walt
    "lodus411" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi guys. I made a website for a client in ImageReady.
    They wanted to be
    able to
    > update with business news on thier own, and have me do
    the major site
    updates.
    > I was thinking they could do this by me creating a blog
    on blogger for
    them and
    > trying to figure out a way insert the blog into the
    website I created. I
    want
    > to put into a specific spot on the website and the
    client wanted it to
    scroll
    > so that customers can see previous posts. I know alot of
    you think that
    > scrolling boxes kind of suck but for this purpose I
    really think it would
    work
    > really cool. Can you please help me. I have very little
    knowledge of code.
    I am
    > actually a video motion graphics guy, and because of my
    knowledge of
    photoshop
    > started to move into web. So if you have to talk to me
    like an infant
    about the
    > code, please do. : ) Here is the wbsite I want to add it
    to:
    >
    http://www.xtremefitnessco.com.
    http://www.xtremefitnessco.com
    >
    > You can see on the main page the section I am using for
    the news. Thats
    were I
    > want to put the scroll box. I guess I am asking how to
    do two things here:
    >
    > 1. Insert a scroll box.
    >
    > 2. And have that box pull from a web log that the client
    updates.
    >
    > Thanks for any help you can give me guys. Sorry for the
    novice question.
    >
    > P.S. Let me know if you think my design needs work or if
    you like it. : )
    >

  • Connecting two programs - please help

    Hi, I'm new here, so I'd like to say 'hi' to everyone :) I'm a freshman in the java comunity, so please be gentle.
    Firs of all I'd like to ask how to resolve the first problem. I've got the code which is responsible for convert a html document to the txt file. It looks like:
    import javax.swing.text.html.parser.*;
    import javax.swing.text.html.*;
    import javax.swing.text.*;
    import javax.swing.*;
    import java.io.*;
    public class TextFromHtml extends HTMLEditorKit.ParserCallback{
    static String trimmss(String o){
       return (o.trim()).replaceAll("\\s+", " ");
    public void handleText(char[] data, int pos){
    try{
          String o = new String(data);
          PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.txt", true)));
          o = trimmss(o);
          pw.println(o);
          //pw.close();
         catch (IOException exc){}      
    System.out.println(new String(data));
      public static void main(String args[]){
        try{
          String s = JOptionPane.showInputDialog("Enter the name of the file you want to convert from html to txt.");     
          Reader r = new FileReader(s);
          ParserDelegator parser = new ParserDelegator();
          HTMLEditorKit.ParserCallback callback = new TextFromHtml();
          parser.parse(r, callback, true); 
        catch (IOException e){
          e.printStackTrace();
         System.exit(0);
    }But unfortunately I don't know how to change this code to obtain such situation as making a new txt file without blank spaces > 0 and erasing the \n new lines. I'd like to get a txt file, which contains of line-by-line text. Could you please help me - tell & show me how to do that? I'd be very grateful
    Regards, skullscape.

    Hi Skullscape,
    My apologies for not getting a response on this forum, but this may have been because this is a fairly generic Java programming question, rather than an issue specific to the JSE product, the purpose of this particular forum.
    So may I suggest that you check out http://java.sun.com/ which has a full set of facilities for those such as yourself who are new to Java programming.
    Although by now you nay not be such a novice :-)

Maybe you are looking for

  • Selection screen while using PNP

    Dear Freinds,                 I have one question relating to logical database PNP. If i use the logical databasePNP we willget the default screen with fields PERNR,EmploymentStatus,CompanyCode , Payroll area etc. But i can see that for the above fei

  • How can I complain about a lack of response to my questions?

    What is iTunes complaints resolution procedure if one does not receive a response to Report a Problem in the iTunes store?

  • Printing multiple images per page

    I'm sorry for this potentially stupid question, but how do I print multiple 4x6 images per 8.5x11 sheets - or in general, mulitple - defined size prints per page of whatever dimension. I have Aperture 1.1, iMac dual core, Epson 2200... I'll be back w

  • Iphone stuck on Itunes/USB

    Hi,  I just tried to update my Iphone 4.  Seemed to sync okay and back up the phone.  But now my phone is stuck on the Itunes logo with a USB showing. Here is what I have tried: 1. following the support instructions 2. Iphone is not seen by my comput

  • Apply template to entire site?

    Is there a way to apply a template to all pages of a site in a single operation? I have over 800 pages converted to HTML from FrameMaker and hope I don't have to apply the template 800+ times--or even find/replace great chunks of code in multiple ste