I need to study for a state competition.

Hello!
I am a first-year high school Computer Science student and the sole representative for my school at the state UIL competition. I only placed in test-taking at Regional with a rather pathetic score, and that without my team to help with the point-total at State. I need to study syntax, string-manipulation, collections, and Big-O measurements, among other things, not the actual programming. I would prefer lessons and quizzes focusing on one topic at a time to tests, but any reference would be extremely helpful. Thanks!

so you just want "the quick answers" to cheat your
way past a job interview about a topic you don't know
the first thing about and you have no interest in
learning about.
Why didn't you say so immediately, would have made
things so much easier for everyone.I think he's look to see how data structures work and other algorithms. The tricky type stuff you'd see on a generally ridiculous test.
I know, I was in the Regional Competition for this.
To the original poster:
I'd suggest reading everything you can on Binary Search Trees, Priority Queues, Maps, Sets, LinkedLists, Iterators, etc.
Not only would I recommend reading these, but actually learning how to write your own classes that mirror what these do.
I didn't have enough time to study all of these, but after reading pages after pages of BST's I got every question on the test about them right. (Except 1 stupid mistake I made :( ).
On every test I've seen this year, the test creator has used a Sorting problem.
Eg. Selection sort, quick sort, merge sort, insertion sort.
I'd suggest reading over and learning all of those and how to implement them yourself.
Here is a great site that teaches you about Data Structuring and how to use/write the Sorting methods.
http://www.theparticle.com/javadata2.html
Good resource:
http://leepoint.net/notes-java/
You're going to the state level right?
Why do you need help ? :P
Unless you're in a smaller conference maybe?
Also, I'd be more focused on Data structuring and small algorithms rather than manipulation of Strings and such. On the latest test, there was 1 BigO question, and maybe 1 or 2 String manipulation questions.
Message was edited by:
lethalwire

Similar Messages

  • FROZEN SCREEN need to study for finals!!!

    my screen froze while i was studying for my finals. i have tried restarting and force quitting but nothing is working. what do i do?

    Boot from the installation DVD that came with your machine. Launch Disk Utility from the Utilities menu and run "Repair Disk" on your internal drive. Repeat, if needed, until no problems with the volume are reported. Then try booting as usual. If you still can't, boot again from the same DVD, or from the retail Mac OS X disc you used to upgrade, if applicable, and run the Installer. After the installation is complete, reboot and run Software Update.

  • What need to study for fusion middleware from oracle APPS DBA perspective

    Hi,
    As i am working as oracle appsdba on 11i and r12. I want to know about fusion middleware.
    Please let me know what concepts i need to get trained as oracle APPS DBA perspective.
    Thanks in advance.

    Hi;
    You need to read concept manuels for your issue.All information cover in it
    For r12.1.1:
    http://download.oracle.com/docs/cd/B53825_01/current/html/docset.html
    For r12:
    http://download.oracle.com/docs/cd/B40089_10/current/html/docset.html
    For r11:
    http://download.oracle.com/docs/cd/A60725_05/r11_doc.htm
    Regard
    Helios

  • What to study for the Microsoft 70-680 to help me get Microsoft Certified

    Dear Microsoft Tech Forum,
    I have taken the Microsoft Certification Exam 70-680, Configuring Windows 7, and failed the first time around earlier this month. The reason for this is very simple. I have been studying out of date material. You see, the book that Microsoft Press issued
    for the Microsoft 70-680 which I have in my possession was published 5 years ago. I never found out until it was too late that the exam underwent a change in March of 2014. Now I need updated material to help me study for the exam. May you please suggest to
    me some new materials I'll need to study for the Microsoft 70-680 and where I can get notifications that they changed the exam and what to study? I have the ability to do this again.
    Regards,
    sampsoninc916

    If you're doing self-study via book, then check Amazon to see what books they have and what the user review/ratings are.  That should provide you with information as to which book may be a better choice.

  • I refurbished my macbook air 7 months ago because there was a problem with the steady state drive. Now my battery seems to be dead again. How long does the warranty last? Do I need to pay for a new battery?

    I refurbished my macbook air 7 months ago because there was a problem with the steady state drive. Now my battery seems to be dead again. How long does the warranty last? Do I need to pay for a new battery?

    As I wrote Apple will diagnose an Apple product even if it is out of warranty for free. That should be your first step to find out if the problem is the battery or something else.
    Once you have Apple telling you a 7 month old battery is defective (if that turns out to be the case)  then it becomes a game of horse trading. You'll need to speak to the tech and when he tells you there is nothing he can do you will need to speak to the tech manager and when she says most likely there is nothing they can do you go to the store manager, etc.  It is unlikely (though possible) that they will give in easily you need to be firm, polite and let on that you're willing to accept a partial reimbursement.
    So again the first step is to find out what is wrong.
    good luck

  • Need to study the relevance & do an impact analysis for Support Pack 19

    Dear Experts ,
    I need to study the SP 19 released by SAP wrt IS Retail & specific logistics modules .
    Where can i find the details of notes & enhancements associated with the SP 19 released?
    Regards
    Anis

    Hello Anis,
    there are 3 links that came to my mind for your inquiry:
    http://solutionbrowser.erp.sap.fmpmedia.com/
    https://service.sap.com/sp-stacks
    https://service.sap.com/side-effects
    On the SP-Stacks particularly you can set your source release and targer (sp19), then there'll be a link with the side-effects report which I believe contain the information you're looking for.
    I hope this helps.
    Best regards,
    Tomas Black

  • Need help for sql statement

    Hi,
    Need help to write sql statement.
    create table t_dt ( dt_start date, dt_end date, amount number);
    insert into t_dt values('1-Jan-10','10-Feb-10',12);
    insert into t_dt values('11-Feb-10','10-Mar-10',10);
    insert into t_dt values('11-Mar-10','20-Apr-10',8);
    insert into t_dt values('21-Apr-10','28-Jun-10',10);
    insert into t_dt values('29-Jun-10','20-Sep-10',10);
    insert into t_dt values('21-Sep-10','10-Oct-10',10);
    insert into t_dt values('11-Oct-10','31-Dec-10',8);
    insert into t_dt values('1-Jan-11','10-Feb-11',8);
    insert into t_dt values('11-Feb-11','10-Mar-11',7);
    insert into t_dt values('11-Mar-11','20-Apr-11',6);
    insert into t_dt values('21-Apr-11','28-Jun-11',6);
    insert into t_dt values('29-Jun-11','20-Sep-11',6);
    insert into t_dt values('21-Sep-11','10-Oct-11',4);
    insert into t_dt values('11-Oct-11','31-Dec-11',8);
    Result should be like below..
    dt_start     dt_end     Amount
    1-Jan-10     10-Feb-10     12
    11-Feb-10     10-Mar-10     10
    11-Mar-10     20-Apr-10     8
    21-Apr-10     10-Oct-10     10
    11-Oct-10     10-Feb-11     8
    11-Feb-11     10-Mar-11     7
    11-Mar-11     20-Sep-11     6
    21-Sep-11     10-Oct-11     4
    11-Oct-11     31-Dec-11     8
    Just to explain the example, take a row with start date as 21-Apr-10 in the above insert statements, since it has the same amount for next two rows (i.e. with start date '29-Jun-10' and '21-Sep-10') these 3 rows should be converted to represent only 1 row in the result and the start date and end date should be changed per the result shown above.
    Thanks.

    Hello
    I think this gives yuo what you need....
    SELECT
        MIN(dt_start),
        MAX(dt_end),
        amount
    FROM
        (   SELECT
                dt_start,
                dt_end,
                MAX(marker) OVER(ORDER BY dt_start) marker,
                amount
            FROM
                    Select
                        dt_start,
                        dt_end,
                        amount,
                        CASE
                            WHEN LAG(amount) OVER(ORDER BY dt_start) <> amount THEN
                                ROW_NUMBER() OVER(ORDER BY dt_start)
                        END marker
                    from t_dt
    GROUP BY
         amount,
         marker
    order by     
         MIN(dt_start)
    MIN(DT_START)        MAX(DT_END)              AMOUNT
    01-JAN-2010 00:00:00 10-FEB-2010 00:00:00         12
    11-FEB-2010 00:00:00 10-MAR-2010 00:00:00         10
    11-MAR-2010 00:00:00 20-APR-2010 00:00:00          8
    21-APR-2010 00:00:00 10-OCT-2010 00:00:00         10
    11-OCT-2010 00:00:00 10-FEB-2011 00:00:00          8
    11-FEB-2011 00:00:00 10-MAR-2011 00:00:00          7
    11-MAR-2011 00:00:00 20-SEP-2011 00:00:00          6
    21-SEP-2011 00:00:00 10-OCT-2011 00:00:00          4
    11-OCT-2011 00:00:00 31-DEC-2011 00:00:00          8
    9 rows selected.HTH
    David
    Edited by: Bravid on Feb 23, 2012 12:08 PM
    Beaten to it by Frank! :-)

  • Set height size for each state enabling browser scrollbar if needed..

    I'm working on a flex project, completely new to it. I'm trying to resize my application based on the set height size for each state. I'd like the wrapper to resize in the browser so that the  browser's scroll bar appears if needed. hope this makes sense....
    My enitial opening page I've set the height to 1000. now when I click on a link to another state from this page, we'll call it 'home' which i have set to 2000
    The page opens in its 2000 height but no scroll bar appears to scroll down in the browser...
    If anyone's done this or knows how to, I'd really appreciate your input.

    I've done something similar with a few of my apps, you have to use a little javascript on the html page and the ExternalInterface class in your app. Basically, you need to resize the "browser's" height based on your flash file.  So here's quick example:
    In your html template page (which you can edit in your flashbuilder project panel ->html-template->indext.template.html)
    in your html add the jscript function:
    <script type="text/javascript">
             function setWindowHeight(heightVal){
                 document.getElementById('theWindow').style.height=heightVal; // make sure to give the body tag an id of 'theWindow' or whatever
    </script>
    In your flashbuilder app you need to call the javascript fx, you can use the ExternalInterface class for this:
      ExternalInterface.call('setWindowHeight',val+'px');
    you need to send the jscript fx the height of your container or whatever you want it resized to....

  • What to use to study for the Clad exam?

    Hello to all who may read this.
    I will be going for my CLAD exam in just a few months and I hope that I will pass it and finally attain my certification.
    I have a question for anyone who can answer it. What materials should I consider using to study for this test? I have been to the Basics 1 and 2, with Daq following that. I was a novice using LabView and could write a fairly decent program measuring temperatures and frequency sensors / transducers. However, I transferred to a new lab and haven't been able to even crack the book to maintain my level of knowledge for approximately 1 1/2 years. I haven't ever built a state machine or anything like that. My test will be in about 2 months, and I need a little direction on the study materials. Any help for me cramming all this in my head would be useful and appreciated. Preferably an app engineer or a clad, cld holder advice would be most helpful.
    Please email me with any questions and / or advice you may have.
    [email protected]
    thanx in advance,
    Myke

    To add to one of the previous posts, if you can get a hold of a newer (7.x) version (while there are differences between 7.0 and 7.1 they're not huge) write programs using as many of the main concepts (Loops, cases, etc.,) as possible. It will help you in the CLAD exam, things that are theoretical will also be remembered in the practical part of your brain!. Plus, if and when you are ready to take the CLD exam being _very_ familiar with the environment will really help. The following only applies when you are ready to take the CLD exam:
        As an addition to the previous post, (when you are taking the CLD exam), while you will be tested up to the version previous to the latest release, the test center may have the latest release on the computer you will use. Not much difference between 7.0 and 7.1, environment wise, but if all you have programmed in were the previous to 7.x releases, the environment (look and feel) of the "out of the box" installation is very different. The biggest problem that many have with the CLD exam isn't the difficulty of the problem as much as thinking of a solution and then implementing it within the test time. A good friend, and one of the best LabVIEW programmers I've known, wasn't familiar with the new lay out and didn't know that NI had given switches to make 7.x look like 6.x and the mental context switching and the looking for familiar tools in unfamiliar places cost him the exam (CLD) the first time he took it. The exam(s) are not terribly tough if you are prepared, but they are definitely not trivial either. Which is as it should be for them to have any validity!
    Study hard and good luck.
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Importing Crystal Report layout for customer statements

    Hello,
    I have imported a crystal report layout to use for the customer statements when running them from the ageing report.  The problem is even if we only select one business partner in the ageing report, when we print preview the statement it displays statements for all business partners - this is because in the crystal report there are no parameters.  I know that when you import a layout like this for other documents you need to use for example, {ORDR.DocEntry}={DocKey@} as the parameter however the customer statements don't have a docentry.  When I look at the system statement layout (collection layout), when you run the report you get an ADO.NET (XML) connection prompt.  Is it possible to use the crystal layout i have for the customer statements but for only the customer(s) showing on the ageing report?
    Many thanks,
    Kate

    So just to make it clear,
    you want an overview of open invoices from 1 customer.
    If so, try this in crystal reports :
    Create a parameter field (field explorer)
    Name : CardName
    Type : String
    Value : Static
    do not select a value field (none)
    press ok.
    Select expert
    Create new
    Starts with
    type this : {?CardName}
    press add
    Click formula editor and make it look like this :
    {OINV.DocStatus} = "o" and
    {OINV.CardName} startswith {?CardName}

  • Advice needed on monitor for Photoshop and Lightroom use

    Hi. I am aserious amature photographer wishing to move to the next level and sell some of my work.
    I just had a custom pc built to work with the new copies of Photoshop CS5 and Lightroom 3 I bought (lots or RAM and HD space, ssd, etc....)
    The last piece of my system is to purchase a monitor. I want to be somewhere in the better then Best Buy but less than NEC/Eizo range in price, or between $500 - $900. I have worked with cameras since the early 80's and moved to digital several years ago but the only post processing I have done is with Photoshop Elements.  I would be doing mostly prints to sell but also need to have a web site to do so. Will also use the pc for daily net surfing... but do not game or watch a lot of video on the pc.
    Being really new to this whole process I have a few questions.
    The first thing I need to decide is whether I need to look for a wide gamut display or not.
    I realize the whole chain must be 10 bit (Adobe -OS - graphics driver - graphics card - display port.
    I have Adobe Photoshop CS5 and Lightroom 3, Win7 64 bit, Zotac ZT 50701 10M video card (which uses GeForce GTX 560  fermi and an nvidia chipset. It does have displayport). I am having a hard time determining whether my video card actually supports wide gamut (10bit).
    Standard vs Wide Gamut? Is wide gamut important enough to deal with the issues it brings (calibration, viewing things other than PS and LR or color managed, which appear to be rare?) Is sRGB good enough for most prints (don't do fine art, mostly nature and portraits but starting to do some HRD things). If wide gamut is the way to go I have no problem with that and have the time to learn about calibration, color management, etc... But I also want to make sure the juice is worth the squeeze.
    24" vs 27"? Is there any advantage to one or the other when editing photos?
    IPS vs PLS? I realize they are similar but are there differences worth noting?
    Glossy vs Matte Anti-Glare? seems to be a lot of comments regarding the anti-glare coating, mostly poor. Yet I can see issues using a glossy screen in my study with a window to my back.
    One manufacturer vs another? I realize Eizo, NEC and LaCie are at the top of the heap. But with my budget, after upgrading my pc and camera equipment, I can't make that work now. So I need to choose from the next group down (Dell, HP, Samsung, Asus...)
    One or two monitors? It looks like many (mid-grade) wide gamut monitors do a lousy job of displaying anything but color managed sites. Is that necessarily true of all the mid-grades? Or can some be used for graphics but as well for routine net surfing, MS Office, etc...? Or am I better off getting two monitors, one for graphics and one for the rest? That would pretty much limit me to 24" or less given my budget (used to using a Dell 21" TN monitor that oddly crapped out just as my new pc was done).
    The more I read reviews the more confusing it gets. There seems to be a difference of opinion even among pros on whether to go wide gamut or stick with an easier sRGB. Realizing a standard gamut monitor would be cheaper, I do want to make the right decision up front, given my budget.
    The one thing I have found astounding is that there is nowhere to actually see many of the monitors I am considering. We live in Nashville TN but my wife is from Atlanta Ga so we drove there a few weeks ago to visit family and for me to visit monitor shops. Even the largest ones there (Fry's and Microcenter) had minimal IPS monitors, a few Dells and HP's. The knowledge of their sales folks was so poor I finally gave up. Felt bad about this until I posted this on another board and got a reply from a guy in LA (second largest city in the US) that he wanted to see a particular monitor and there was no place even there to do so.
    Anyhow, here is what I have considered:
    24" Wide Gamut: Dell U2410 and Asus PA246Q. Dells appear to be good IF you get a good one. The Asus appears to be a clone of the Dell that gets a lot of good press.
    27" Wide Gamut: Dell U2711 that also gets a ton of good reviews
    24: Standard Gamut: Dell U2412 and HP ZR2440.
    27" Standard Gamut: Samsung S27A850D and Apple Cinema- The Samsung uses PLS technology versus IPS while the Apple is a glossy screen that will work with a pc.
    Sorry for the long post. Any comments are greatly appreciated.

    dkg62 wrote:
    I realize the whole chain must be 10 bit
    Not trying to talk you out of setting up a 10 bit pipeline, but it's still not very mature, and it really isn't a necessity to get a good editing experience.
    Personally I find advantage in using two 4:3 ratio monitors for Photoshop work.  All my panels are on the right monitor, while pretty much the entire left one shows the Photoshop main window and the working canvas space.  My desktop is 3200 x 1200 pixels overall, and I find having the panels remain visible all the time is important.
    Regarding whether a wide gamut is important...  Will you be printing to devices that deliver a wide gamut?  What other things will you be doing with your system?
    It's not a no-brainer whether a wider gamut monitor is always "better" for everything, since it can accentuate the differences between the output from color-managed and non-color-managed applications, and it's definitely true that not everything is color-managed.  With a monitor that's close to sRGB, for example, you might find Internet Explorer output acceptable, while using a wide gamut monitor will result in garishly oversaturated IE displays.  On the other hand, FireFox (with a settings tweak) seems to get color management right, so there is an alternative.
    I think, as John has implied above, you should work to get your head completely around how color-management works, soup to nuts.  If you don't, there will always be things that are a mystery or which surprise you at the wrong times.  Being able to order a print and have it come back with the expected color can be very important, as you might imagine.
    -Noel

  • ID 5.5 Interact. PDF, cannot remove white background for Multi-States and buttons.

    Hi
    I am working on an Interactive PDF Portfolio document. The problem I have is with Multi-State object feature with several buttons going to states that need to be exported as a SWF and imported back into InDesign 5.5. See, the background of my entire doc. is GREY, but when I import the SWF (as directed in Lynda.com videos correctly) and export the entire doc as Interactive PDF and view it in Adobe Acrobat Pro (version 10.1.1) is when all the trouble starts.
    When I try to get rid of the WHITE background around the Multi-State objects and the buttons for them (using Select Object Tool and then control+click on it to change the Properties to Transparent Background Appearance) it does not change, even when I go forward and backward to the page.
    Does the option of removing white background and making it transparent work only for Animation, but not Multi-State feature with buttons?
    Can anyone suggest any other tecnique to create a nice slide show that works in Interactive PDF in ID CS5.5? Please..
    Sincerely,
    in need of help,
    Eve

    I have 8 Multi-State objects in one stack on the left and the 8 buttons for each state in the stack on the right. The background of my document is dark grey. There is space inbetween Multi-State objects and the buttons that show the grey background. But after exporting as SWF the Multi-States together with the buttons and placing the SWF back in the PDF file, the space inbetween Multi-States and buttons that is supposed to show the grey background appears white. The problem is that I cannot even change this white background to transparent in Acrobat Pro, as well. I used to do that to animations and it worked, but not in this case.

  • GROUP BY - Is there a way to have some sort of for-each statement?

    Hi there,
    This discussion is a branch from https://forums.oracle.com/thread/2614679
    I data mart I created for a chain of theatres. The fact table contain information about ticket sales, and I have a some dimensions including DimClient and DimTime.
    Here is an example of each table:
    FactTicketPurchase
    TICKETPURCHASEID
    CLIENTID
    PRODUCTIONID
    THEATREID
    TIMEID
    TROWID
    SUMTOTALAMOUNT
    60006
    2527
    66
    21
    942
    40
    7
    60007
    2527
    72
    21
    988
    36
    6
    60008
    2527
    74
    21
    1001
    40
    6
    60009
    2527
    76
    21
    1015
    37
    6
    60010
    2527
    79
    21
    1037
    39
    6
    DDL for FactTicketPurchase
    CREATE TABLE FactTicketPurchase(
    TicketPurchaseID NUMBER(10) PRIMARY KEY,
    ClientID NUMBER(5) CONSTRAINT fk_client REFERENCES DimClient,
    -- ProductionID NUMBER(5) CONSTRAINT fk_prod REFERENCES DimProduction,
    -- TheatreID NUMBER(5) CONSTRAINT fk_theatre REFERENCES DimTheatre,
    TimeID NUMBER(6) CONSTRAINT fk_time REFERENCES DimTime,
    -- TRowID NUMBER(5) CONSTRAINT fk_trow REFERENCES DimTRow,
    SumTotalAmount NUMBER(22) NOT NULL);
    DimClient
    CLIENTID
    CLIENT#
    NAME
    TOWN
    COUNTY
    2503
    1
    LEE M1
    West Bridgford
    Nottingham
    2504
    2
    HELEN W2
    Hyson Green
    Nottingham
    2505
    3
    LEE M3
    Lenton Abbey
    Nottingham
    2506
    4
    LORA W4
    Beeston
    Nottingham
    2507
    5
    SCOTT M5
    Radford
    Nottingham
    2508
    6
    MINA W6
    Hyson Green
    Nottingham
        ..cff.
    DDL for DimClient
    CREATE TABLE DimClient(
    ClientID NUMBER(5) PRIMARY KEY,
    Name VARCHAR2(30) NOT NULL);
    DimTime
    TIMEID
    FULLDATE
    YEAR
    SEASON
    MONTH
    MONTHDAY
    WEEK
    WEEKDAY
    817
    02-MAR-10
    2010
    Spring
    3
    2
    9
    3
    818
    03-MAR-10
    2010
    Spring
    3
    3
    9
    4
    819
    04-MAR-10
    2010
    Spring
    3
    4
    9
    5
    820
    05-MAR-10
    2010
    Spring
    3
    5
    9
    6
    821
    06-MAR-10
    2010
    Spring
    3
    6
    9
    7
    822
    07-MAR-10
    2010
    Spring
    3
    7
    9
    1
    DDL for DimTime
    CREATE TABLE DimTime(
    TimeID NUMBER(6) PRIMARY KEY,
    Year NUMBER(4) NOT NULL,
    Season VARCHAR2(20));
    I have the following analysis request to perform on this data mart:
    Top 5 clients by value of ticket sale for each season
    For this requirement I came up with the following query:
    SELECT * FROM
    (SELECT FacTIC.ClientID, DimCLI.Name, SUM(SumtotalAmount) SumTotalAmount, DimTIM.Season
    FROM FactTicketPurchase FacTIC, DimClient DimCLI, DimTime DimTIM
    WHERE FacTIC.ClientID = DimCLI.ClientID
    AND FacTIC.TimeID = DimTIM.TimeID
    AND Season = 'Spring'  AND Year = 2010
    GROUP BY Season, FacTIC.ClientID, DimCLI.Name
    ORDER BY Season ASC, SumTotalAmount DESC)
    WHERE rownum <=5;
    As you can see, in line 06 of the above query, I am explicitly specifying the season for the query to return.
    However what I would like to do is just one query that could autocratically go through the seasons and years available in the time dimension in a fashion similar to a FOR-EACH statement. This way, if we get more years added to the time dimension, we wouldn't have to amend the query.
    Is this possible?
    Regards,
    P.

    I think I fixed it!
    The trick was to look into the r_num value. As soon as I added it to my query I started to see how r_num was being calculated and I realised that I had to add Season to my partition, right after Year.
    SELECT Year, Season, TotalAmount, Name
    FROM (
       SELECT   DimCLI.Name
       ,        DimTIM.Year
       ,        DIMTIM.Season
       ,        SUM(FacTIC.SumTotalAmount) TotalAmount
       ,        RANK() OVER (PARTITION BY Year, Season
                             ORDER BY SUM(FacTIC.SumTotalAmount) DESC
                            ) AS r_num
       FROM     FactTicketPurchase FacTIC
       ,        DimClient DimCLI
      ,         DimTime DimTIM
       WHERE    FacTIC.ClientID = DimCLI.ClientID
       AND      FacTIC.TimeID = DimTIM.TimeID
       GROUP BY DimTIM.Year
       ,        DimTIM.Season
       ,        DimCLI.Name
    WHERE r_num <= 5 -- Need to amend this line on my data sample to show 2 rows.
    ORDER BY Year, Season, TotalAmount DESC;
    Looking at my data sample, I got the following:
    YEAR
    SEASON
    TOTALAMOUNT
    CLIENTID
    2010
    Autumn
    29
    2504
    2010
    Autumn
    26
    2503
    2010
    Spring
    25
    2503
    2010
    Spring
    14
    2506
    2010
    Summer
    26
    2506
    2010
    Summer
    26
    2504
    2010
    Winter
    28
    2503
    2010
    Winter
    26
    2506
    2011
    Autumn
    23
    2506
    2011
    Autumn
    14
    2503
    2011
    Spring
    25
    2505
    2011
    Spring
    13
    2503
    2011
    Summer
    21
    2505
    2011
    Summer
    14
    2503
    2011
    Winter
    19
    2505
    Now, looking at my real data, (considering the top 5 rows, not the top 2), I got:
    YEAR
    SEASON
    TOTALAMOUNT
    NAME
    2010
    Autumn
    141
    BUSH M225
    2010
    Autumn
    140
    DIANA W66
    2010
    Autumn
    136
    HANA W232
    2010
    Autumn
    120
    DIANA W220
    2010
    Autumn
    120
    WILSON M459
    2010
    Spring
    137
    DAVID M469
    2010
    Spring
    125
    ALEX M125
    2010
    Spring
    124
    PETER M269
    2010
    Spring
    115
    ZHOU M463
    2010
    Spring
    114
    TANIA W304
    2010
    Summer
    138
    JANE W404
    2010
    Summer
    105
    MINA W8
    2010
    Summer
    97
    DAVID M275
    2010
    Summer
    96
    CLINTON M483
    2010
    Summer
    93
    ANNA W288
    2011
    Spring
    12
    LUISE W20
    2011
    Spring
    7
    ANNA W432
    2011
    Spring
    7
    LEE M409
    2011
    Spring
    7
    CHRIS W274
    2011
    Spring
    7
    HELEN W136
    2011
    Spring
    7
    LILY W114
    2011
    Spring
    7
    LUISE W348
    2011
    Spring
    7
    LIU M107
    2011
    Spring
    7
    VICTORY W194
    2011
    Spring
    7
    DIANA W240
    2011
    Spring
    7
    HELEN W120
    2011
    Spring
    7
    LILY W296
    2011
    Spring
    7
    MATTHEW M389
    2011
    Spring
    7
    PACO M343
    2011
    Spring
    7
    YANG M411
    2011
    Spring
    7
    ERIC M101
    2011
    Spring
    7
    ALEX M181
    2011
    Spring
    7
    SMITH M289
    2011
    Spring
    7
    DIANA W360
    2011
    Spring
    7
    MATTHEW M63
    2011
    Spring
    7
    SALLY W170
    2011
    Spring
    7
    JENNY W258
    2011
    Spring
    7

  • I'm needing a laptop for the end of Highschool/University

    I was thinking a a MBP but now seeing other's opinions I'm debating whether to look into a Pro or a Air. I'm expecting to do video editing, Internet, viewing word documents, spreadsheets, Power points, and app developing. I need it to be somewhat portable, for often I find myself in a state in which I need a computer for a project and I have to get home to do it, but for university I might need portability over power. I do believe that I will be viewing video so a 15 inch Pro would be handy but then not for portability. I'm almost considering a 13 inch MBP for that but you don't get the choice of the larger screen size or hi def. Also, would it be nice to have the possessing power of the i7 over the Intel core 2 duo? Please help me!

    Just so you know..............
    MBP is NOT a laptop and should NOT be used as one.  It is a "notebook."
     

  • Problem For/Each statement (or the problem is the MouseListener...)

    Hi guys,
    I'm making a program in java for school.
    Now I have this:
              for(Stap2TrampolineModel trampoline : lijstTrampolines)
                   trampoline = new Stap2TrampolineModel(0,215,100,"Poing",lijstKinderen); //model
                   trampolineView = new Stap2TrampolineView(trampoline); //view
                   trampolineController = new Stap2TrampolineController(trampoline, trampolineView); //controller
                   trampolineView.setBounds(trampoline.getXInvoer(),trampoline.getYInvoer(),trampoline.getFormaat()+1,20);
                   add(trampolineView);
                   repaint();
    and in the mouselistener this:
    public void mouseClicked( MouseEvent e )
              System.out.println(lijstTrampolines.size());
              // Onderzoek of met de rechterknop is geklikt
    if( e.isMetaDown() )
         // x = e.getX(); (for later needs)
    //y = e.getY(); (for later needs)
    lijstTrampolines.add(trampoline);
    repaint();
    The program should display a "trampoline" when I click...but it doesnt. It is added to the list, because I can see that in the console because of the System.out.println
    But it doesn't show the display I want. When I delete the for each statement, it does show the "trampoline". So the mouselistener works (it gets added when I click) and the arraylist works (it shows that in the console), but the for each statement doesnt work...
    Anyone knows how to solve this problem?

    Where is this foreach loop located? In inialisation presumably. But that's over and done with when your mouseListener is called. I'd guess your list is empty when the loop is called, and it does nothing.
    Your mouse listener, when it adds a trampoline must also add a trampoline view object. And the repaints don't do you any good, use revalidate() after adding a trampoline view to recalculate the layout.

Maybe you are looking for