Need help plz with hw!!

Write a program called SortWords. The program prompts the user for the name of an input file. This file contains words, one word per line. The words are in any order. The program sorts all the words in the input file into alphabetical order and writes these sorted words back into the original file.
Note: you are NOT allowed to solve this problem using data structures that have not yet been covered in this unit, such as arrays or linked lists. You may only use methods from the String class, the Scanner class, the PrintWriter class and the File class (along with as many temporary text files as may be needed). One possible approach is to read the first 2 words from the input file and compare them. If the first word comes before the second word in alphabetical order, then write the first word into the temporary file. If the first word comes after the second word in alphabetical order, then write the second word into a temporary file. The word that was NOT written into the temporary file becomes the first word. Read the next word from the input file and compare the two words, writing one of them into the temporary file using the rules stated above. When all the words have been read from the original input file, then the temporary file becomes the original file and the original file becomes the temporary file. The program keeps reading words from the original file until the program goes through the original file, writing only the first word every time, into the temporary file. Once this happens it means that the words in the file are properly sorted and the program can stop.
Note: the above approach is one way of solving the problem, but you may use another approach if you wish.

kevinaworkman wrote:
I think you should use some arrays, maybe some linked lists.
No, but seriously, here's one possible approach:
Read the first 2 words from the input file and compare them. If the first word comes before the second word in alphabetical order, then write the first word into the temporary file. If the first word comes after the second word in alphabetical order, then write the second word into a temporary file. The word that was NOT written into the temporary file becomes the first word. Read the next word from the input file and compare the two words, writing one of them into the temporary file using the rules stated above. When all the words have been read from the original input file, then the temporary file becomes the original file and the original file becomes the temporary file. The program keeps reading words from the original file until the program goes through the original file, writing only the first word every time, into the temporary file. Once this happens it means that the words in the file are properly sorted and the program can stop.
Does that help?We've added a third way to the "give a man a fish / teach a man to fish" dichotomy: slap a man with a fish.

Similar Messages

  • I need help plz with this easy code

    The output shows null in the frame ,, no buttons no areas or fields .. plz help ASAP
    import java.awt.* ;
    import javax.swing.* ;
    public class GUI extends JFrame{
        public void function (){
             setSize(500,500);
             setTitle("SokAndO");
             Container first = this.getContentPane();
             JButton _send = new JButton ("Send") ;
             JTextField _text = new JTextField () ;
             JTextArea _history = new JTextArea (100,100);
             JPanel p1 = new JPanel();
             JPanel p2 = new JPanel();
             JPanel p3 = new JPanel();
             p1.add(_send);
             p2.add(_history);
             p3.add(_text);
                first.setLayout (new FlowLayout());
             setVisible(true);
             public static void main(String arg[]){
              GUI lol=new GUI();
              lol.function();
    }

    and wht is the use of this statment ???
    Container first =
    this.getContentPane();With this statement you have a variable first that refers to the JFrame's contentPane, but as noted above, you do nothing with it. You need to look at Swing examples on how to add components to JPanels and such. The Sun tutorials should be a good place to start.

  • Need help urgently with OS X and Windows 7

    I need help urgently.
    I installed Windows 7 on my macbook pro with OS X Lion. After installing Windows7, I accidently converted the basic volumes to dynamic volumes and now i can't even boot to OS X.
    Please help me how to recover my OS X Lion. If I have to delete Windows and bootcamp partitions, it is OK.
    I just want to get back my OS X bootable.
    Thanks

    thihaoo wrote:
    Sorry
    I can't even see the OS X partition when I hold down the "Option" key.
    I could see OS X and Windows partitions if I hold down Option key before changing the partitions to Dynamic partitions from Basic in Windows 7.
    Now can't see OS X partiton and only see Winodws partition but when I tried to boot onto Windows7 , I got BSOD and macbook pro restart.
    Please help
    The usual reason for the OSX partition to be invisible under these circumstances is that it has been trashed by Windows.
    Do you have a backup?

  • Need Help/Advice with Photo Web Gallery coming from SQL Database

    This is my first attempt at a database driven website. I assume what I am trying to accomplish should be fairly easy for more experienced but I am stuck at this point.
    First, let me explain what I am trying to accomplish.
    I want to create a thumbnail photo gallery displayed in columns and rows. I want to be able to hover over or click on the thumbnail image and have a lightbox script display the image over the thumb page. I am developing locally right now with intent to upload to the hosting site upon completion.
    I am developing with ASP vbScript pages. I have an SQL database where the paths to the image thumbnails and pictures are stored in a table. On the gallery page, I have created a div tag to hold my image recordset. Within this div, I have inserted 3 absolute positioned divs to hold the pictureID, the pictureName and the image inserted as a datasource. I then inserted the information from the bindings panel of my recordset. Last, I used a horizontal looper extension from Tom Muck to get the thumbnails to display in columns and rows. Everything works up to this point just fine.
    Now, I want to be able to hover or click on a thumnail image and have it displayed in a lightbox. I downloaded and used a javascript called Lightbox 2 which contains 3 javascript files and a css stylesheet. I inserted the files into the head tag like instructed to but could not get things to work properly. Here is where I need help. Currently, I am clicking on the thumbImage binding within the image Div and creating a link holder. I am then binding the larger pictureImage to it with the a.href selected in the bind to. I am then adding the command to call the lightbox javascript. Now, when I test my page, my thumbnail images do not show up (my alt text does in its place) but the links are in place and you can click on the alt text and it will return the correct larger image, but not in the lightbox, just in a new window with no styles.
    Am I going about this correctly? Can you use lightbox scripts with data-driven galleries? Does anybody have any suggestions of what I may be doing wrong or missing? Are there better ways to go about accomplishing this?
    Any help would be appreciated as this dynamic data thing has my head spinning. Although I know a database is needed to simplify the update and maintenance of the photos while allowing them to be searchable by keywords and tags also set up in the database.
    Thanks

    As I explained, I am developing locally a the moment. I will see about getting the databased moved up to the hosting server and then provide a link for an example.
    In the mean time, can you or anyone else explain a way that you would go about displaying an image thumbnail photo gallery laid out in rows / columns, with any lighbox script that would overlay the larger image over the existing page instead of opening a new browser window?
    I don't have to use the method I tried to describe.
    In all of the lightbox examples I have looked at thus far, they give instructions on how to append that javascript to a single static image or a group of static images, not images from a datasource. That is where I am getting confused.
    Don't know if this will help or not but please see code below:
    Javascript and CSS positioned in head tag
    <!--beginning of lightbox script with css -->
    <link href="CSS/lightbox.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/protype.js" type="text/javascript"></script>
    <script src="Scripts/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
    <script src="Scripts/lightbox.js" type="text/javascript"></script>
    <!--end of lightbox script with css -->
    Calling for javascript in the galleryimage div when hovering over thumbnail image
        <!--beginning of gallery div -->
        <div id="gallery">
          <p>
            <!--beginning of galleryImage div -->
          </p>
          <table width="400" border="0" align="center" id="galleryNav2">
            <tr>
              <td width="100" align="center"><% If MM_offset <> 0 Then %>
                  <a href="<%=MM_moveFirst%>">First</a>
              <% End If ' end MM_offset <> 0 %></td>
              <td width="100" align="center"><% If MM_offset <> 0 Then %>
                <a href="<%=MM_movePrev%>">Previous</a>
              <% End If ' end MM_offset <> 0 %></td>
              <td width="100" align="center"><% If Not MM_atTotal Then %>
                <a href="<%=MM_moveNext%>">Next</a>
              <% End If ' end Not MM_atTotal %></td>
              <td width="100" align="center"><% If Not MM_atTotal Then %>
                <a href="<%=MM_moveLast%>">Last</a>
              <% End If ' end Not MM_atTotal %></td>
            </tr>
          </table>
          <p> </p>
          <table align="center" id="HorzLooper">
            <%
    startrw = 0
    endrw = HLooper1__index
    numberColumns = 5
    numrows = 5
    while((numrows <> 0) AND (Not rs_ssfGallery.EOF))
    startrw = endrw + 1
    endrw = endrw + numberColumns
    %>
            <tr align="center" valign="top">
              <%
    While ((startrw <= endrw) AND (Not rs_ssfGallery.EOF))
    %>
              <td><div id="galleryImage">
                <div id="galleryThumb"><a href="images/pic/<%=(rs_ssfGallery.Fields.Item("picture_url").Value)%>"rel="lightbox"><img src="images/thumb/<%=(rs_ssfGallery.Fields.Item("thumb_url").Value)%>" alt="<%=(rs_ssfGallery.Fields.Item("alt_url").Value)%>" /></a></div>
                <div id="galleryImageID"><%=(rs_ssfGallery.Fields.Item("picture_ID").Value)%></div>
                <div id="galleryImageFamily"><%=(rs_ssfGallery.Fields.Item("family").Value)%></div>
              </div></td>
              <%
    startrw = startrw + 1
    rs_ssfGallery.MoveNext()
    Wend
    %>
            </tr>
            <%
    numrows=numrows-1
    Wend
    %>
          </table>
          <p> </p>
          <table width="400" border="0" align="center" id="galleryNav">
            <tr>
              <td width="100" align="center"><% If MM_offset <> 0 Then %>
                  <a href="<%=MM_moveFirst%>">First</a>
              <% End If ' end MM_offset <> 0 %></td>
              <td width="100" align="center"><% If MM_offset <> 0 Then %>
                  <a href="<%=MM_movePrev%>">Previous</a>
              <% End If ' end MM_offset <> 0 %></td>
              <td width="100" align="center"><% If Not MM_atTotal Then %>
                  <a href="<%=MM_moveNext%>">Next</a>
              <% End If ' end Not MM_atTotal %></td>
              <td width="100" align="center"><% If Not MM_atTotal Then %>
                  <a href="<%=MM_moveLast%>">Last</a>
              <% End If ' end Not MM_atTotal %></td>
            </tr>
          </table>
    <!--end of galleryImage div -->
        </div>
        <!--end of gallery div -->
    Thanks for any help or suggestions.

  • Need help ASAP with photoshop elements 11

    Please I need help its photoshop elements 11 but I can't put up the pic I need help with could someone help me out by using Facebook, Amanda Jayne Clarke I have a pic of a little girl n a horse
    Please i need help ASAP

    well you can find many tutorials about how to change background in Photoshop Elements. It ranges all the way from using magic extractor to making a selection using lasso and magnetic lasso tools. But I really prefer using a mask for it. Here is how I would change the background of image A and use Image B as the background.
    Open image B in photoshop elements editor- expert mode.
    go to file->place and choose the image A to place over image B
    go to layers panel by choosing Window-> layers from menu bar. Right click the layer A choose simplify layer.
    with layer A selected, choose layer>layer mask> reveal All from menu bar. It would create a layer mask on the layer A.
    Select the mark layer of layer A, choose the brush tool and change foreground color to black. Paint all over the are you want to remove from the layer A. if you make an error, change the color white to get your image area back. it is a good practice to use lower opacity(~60) while using layer mark as it gives you more control over with how much opacity you want to remove the background
    Happy Editing

  • Need Help Please with Ipod 20G

    Long story short....I had my Ipod 4G and computer stolen several month ago on a business trip(have police report). A friend of mine recently purchased a new Video Ipod and gave me his old 20G...pretty nice of him! I am about to have iTunes loaded on to my new computer. Here are my questions I need help with please.
    1. Will I need to setup a new iTunes account or can I use my old one?
    2. Will I have to reset my newly acquired Ipod before I can place my music on it? I did back up about 80% of the songs from my old Ipod. Or will I be able to keep the 1500 songs my friend placed on it?
    3. Or would it be easier for me to give him back his, cough up the $300 dollars for a new one and start all over?
    Can't think of anything else I might need to know. If there is something I am missing and you could help fill in the blanks for me I would truly appreciate the help.
    Thanks so much!!
    20G   Windows 2000  
    20G   Windows 2000  

    1. No. You can use your old one.
    2. Will I have to reset my newly acquired Ipod before I can place my music on it? No, but iTunes may automatically do this, I will explain.
    I did back up about 80% of the songs from my old Ipod. Or will I be able to keep the 1500 songs my friend placed on it?
    Sorry, but it would not be legal to keep the 1500 songs on this iPod that were your friend's songs, assuming that he's still using/listening to them on another computer.
    3. No, I think it would be worth it to keep going, and use the 20GB iPod on your computer. It's not many hoops to jump through, and you should be up and syncing in no time.
    Overall, it's fairly easy, and I would suggest that you keep going with this iPod.
    My note from question #2:
    If you connect an iPod that hasn't been attatched to your computer before, iTunes will most likely display [to the effect of] this message when you connect the iPod for the first time:
    "The songs on the iPod "~~" are linked to another iTunes library. Would you like to replace the content of the iPod with this current iTunes library?"
    Be sure to click on "NO" when you recieve this message.
    Then, click on your iPod's name in the left panel of iTunes.
    Click on the "Music" tab.
    Deselect "Sync Music" if it is already set to this option.
    This means that your iPod is on manual managing now, instead of iTunes automatically transferring songs to your iPod, or deleting them, which is not what you want at this time.
    Now, if you have any songs on the iPod that you need to keep (i.e., if you have some of your songs on this iPod)you have a few options to transfer your iPod songs to your computer.
    Method 1 - Manually transfer your iPod songs to iTunes using MacMuse's post. See it here -> iPod songs to computer (MacMuse post)
    Method 2 - Add your iPod's folder into the iTunes library (via iTunes). Read this post here -> Using iTunes settings to transfer iPod songs to iTunes
    Method 3 - Use a third-party program to get the transferring done. For a Windows computer, CopyPod should work good. Also, you can try out YamiPod
    I hope that info helps you.
    -Kylene

  • Need help dealing with nested audio in Premiere Pro CC 7.2.2

    Hi, so previously I have been working with nested multicam video and nested audio together (one video track, and one audio track).
    However, I am hitting some issues with the nested audio workflow, and am hoping someone could help me iron out my issues.
    1. Once I've completed my edit, how do I efficiently flatten my nested edits so I have all of my original audio back? (For mixing purposes)
    2. Audio nesting sometimes seems glitchy. When making new nests, sometimes I will only get the topmost audio track in my nest, and I'm not sure what's causing that to happen.
    I REALLY need helping getting my workflow together, as it's at a bit of a stand still right now. I think I'm going to switch to unnested audio to avoid issues, but still need to flatten my existing edits to do that as well.
    Many thanks!

    This bug is NOT FULLY FIXED.  I'm on a tight deadline so i'm not looking very hard online to see if i'm alone - so please forgive me for just posting here...
    I'm using CC7.2.1 it's 1/21... very grateful that match frame FINALLY works on merged clips, but, again, this insert/overwrite bug is only PARTIALLY FIXED.
    Insert/overwrite with merged clips on 3-point edit now works, but ONLY when cutting in BOTH merged video+audio... if you're just trying to cut in the audio from a merged clip using a 3-point/4-point edit via hotkey, it's a no-go.
    I, for example, needed to re-cut in audio under some video with effects on it. So, I unpatched the video source completely and patched source audio tracks 1-4 to the appropriate sequence tracks. Upon hitting insert or overwrite multiple times, nothing responds. The only way to cut anything in from the source (merged clip) was to patch the source video back into the timeline on an unused video track, then cut ALL the tracks from the source in, I then had to delete the video track re-link the now free audio to the original video. Not a big deal, but annoying enough & waste of precious time on tight deadline.
    So, yeah, I have a workaround but is still not appropriate to have a core function not work properly. Especially when I'm working with a very complicated timeline.
    That said, thanks for keeping on top of our gripes, Mark.

  • I need help badly with my ibook and palm pilot

    Good day. I recently fixed my ibook and my palm to sync with each other. I configured my palm to sync with entourage. I then realized that it would be much better that if I sync my palm pilot with the palm desktop. Gow do I now reverse this? How do i cancel entourage to sync with my pal pilot. please advise. need help badly on this. thanks... i just like to feep my files organized and i find it difficult using entourage...my palm pilot is a palm TX...

    I also have a Palm handheld. I use iCal and Address Book more than Entourage. This is what I did:
    At first, I tried to adapt to Palm Desktop. I didn't like it, so I looked for the *iSync Conduit*. I found it and installed it. Then, I ignored the Palm desktop software (except the HotSync utility) and have used iSync with iCal and Address Book since.
    I know that doesn't answer the question about switching from Entourage, but Desktop isn't that great either. iSync is what I recommend.
    -NA

  • Need Help Need Help PLZ PLZ

    my problem is that i have made a calendar by using jtable and i can't highlight or put any sign to keep track on date, but the biggest problem is that i have to submit this project after two days, so i will appreciate any help or tips from you. Here is my code:
    CODE
    /*Contents of CalendarProgran.class */
    //Import packages
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class CalendarProgram{
    static JLabel lblMonth, lblYear;
    static JButton btnPrev, btnNext;
    static JTable tblCalendar;
    static JComboBox cmbYear;
    static JFrame frmMain;
    static Container pane;
    static DefaultTableModel mtblCalendar; //Table model
    static JScrollPane stblCalendar; //The scrollpane
    static JPanel pnlCalendar;
    static int realYear, realMonth, currentYear, currentMonth;
    public static void main (String args[]){
    //Look and feel
    try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}
    catch (ClassNotFoundException e) {}
    catch (InstantiationException e) {}
    catch (IllegalAccessException e) {}
    catch (UnsupportedLookAndFeelException e) {}
    //Prepare frame
    frmMain = new JFrame ("Gestionnaire de clients"); //Create frame
    frmMain.setSize(330, 375); //Set size to 400x400 pixels
    pane = frmMain.getContentPane(); //Get content pane
    pane.setLayout(null); //Apply null layout
    frmMain.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Close when X is clicked
    //Create controls
    lblMonth = new JLabel ("January");
    lblYear = new JLabel ("Change year:");
    cmbYear = new JComboBox();
    btnPrev = new JButton ("<<");
    btnNext = new JButton (">>");
    mtblCalendar = new DefaultTableModel(){public boolean isCellEditable(int rowIndex, int mColIndex){return false;}};
    tblCalendar = new JTable(mtblCalendar);
    stblCalendar = new JScrollPane(tblCalendar);
    pnlCalendar = new JPanel(null);
    //Set border
    pnlCalendar.setBorder(BorderFactory.createTitledBorder("Calendar"));
    //Register action listeners
    btnPrev.addActionListener(new btnPrev_Action());
    btnNext.addActionListener(new btnNext_Action());
    cmbYear.addActionListener(new cmbYear_Action());
    //Add controls to pane
    pane.add(pnlCalendar);
    pnlCalendar.add(lblMonth);
    pnlCalendar.add(lblYear);
    pnlCalendar.add(cmbYear);
    pnlCalendar.add(btnPrev);
    pnlCalendar.add(btnNext);
    pnlCalendar.add(stblCalendar);
    //Set bounds
    pnlCalendar.setBounds(0, 0, 320, 335);
    lblMonth.setBounds(160-lblMonth.getPreferredSize().width/2, 25, 100, 25);
    lblYear.setBounds(10, 305, 80, 20);
    cmbYear.setBounds(230, 305, 80, 20);
    btnPrev.setBounds(10, 25, 50, 25);
    btnNext.setBounds(260, 25, 50, 25);
    stblCalendar.setBounds(10, 50, 300, 250);
    //Make frame visible
    frmMain.setResizable(false);
    frmMain.setVisible(true);
    //Get real month/year
    GregorianCalendar cal = new GregorianCalendar(); //Create calendar
    realMonth = cal.get(GregorianCalendar.MONTH); //Get month
    realYear = cal.get(GregorianCalendar.YEAR); //Get year
    currentMonth = realMonth; //Match month and year
    currentYear = realYear;
    //Add headers
    String[] headers = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; //All headers
    for (int i=0; i<7; i++){
    mtblCalendar.addColumn(headers);
    tblCalendar.getParent().setBackground(tblCalendar.getBackground()); //Set background
    //No resize/reorder
    tblCalendar.getTableHeader().setResizingAllowed(false);
    tblCalendar.getTableHeader().setReorderingAllowed(false);
    //Single cell selection
    tblCalendar.setColumnSelectionAllowed(true);
    tblCalendar.setRowSelectionAllowed(true);
    tblCalendar.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    //Set row/column count
    tblCalendar.setRowHeight(38);
    mtblCalendar.setColumnCount(7);
    mtblCalendar.setRowCount(6);
    //Populate table
    for (int i=realYear-100; i<=realYear+100; i++){
    cmbYear.addItem(String.valueOf(i));
    //Refresh calendar
    refreshCalendar (realMonth, realYear); //Refresh calendar
    public static void refreshCalendar(int month, int year){
    //Variables
    String[] months = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
    int nod, som; //Number Of Days, Start Of Month
    //Allow/disallow buttons
    btnPrev.setEnabled(true);
    btnNext.setEnabled(true);
    if (month == 0 && year <= realYear-10){btnPrev.setEnabled(false);} //Too early
    if (month == 11 && year >= realYear+100){btnNext.setEnabled(false);} //Too late
    lblMonth.setText(months[month]); //Refresh the month label (at the top)
    lblMonth.setBounds(160-lblMonth.getPreferredSize().width/2, 25, 180, 25); //Re-align label with calendar
    cmbYear.setSelectedItem(String.valueOf(year)); //Select the correct year in the combo box
    //Clear table
    for (int i=0; i<6; i++){
    for (int j=0; j<7; j++){
    mtblCalendar.setValueAt(null, i, j);
    //Get first day of month and number of days
    GregorianCalendar cal = new GregorianCalendar(year, month, 1);
    nod = cal.getActualMaximum(GregorianCalendar.DAY_OF_MONTH);
    som = cal.get(GregorianCalendar.DAY_OF_WEEK);
    //Draw calendar
    for (int i=1; i<=nod; i++){
    int row = new Integer((i+som-2)/7);
    int column = (i+som-2)%7;
    mtblCalendar.setValueAt(i, row, column);
    //Apply renderers
    tblCalendar.setDefaultRenderer(tblCalendar.getColumnClass(0), new tblCalendarRenderer());
    static class tblCalendarRenderer extends DefaultTableCellRenderer{
    public Component getTableCellRendererComponent (JTable table, Object value, boolean selected, boolean focused, int row, int column){
    if (column == 0 || column == 6){
    setBackground(new Color(255, 220, 220));
    else{
    setBackground(new Color(255, 255, 255));
    super.getTableCellRendererComponent(table, value, selected, focused, row, column);
    return this;
    static class btnPrev_Action implements ActionListener{
    public void actionPerformed (ActionEvent e){
    if (currentMonth == 0){ //Back one year
    currentMonth = 11;
    currentYear -= 1;
    else{ //Back one month
    currentMonth -= 1;
    refreshCalendar(currentMonth, currentYear);
    static class btnNext_Action implements ActionListener{
    public void actionPerformed (ActionEvent e){
    if (currentMonth == 11){ //Foward one year
    currentMonth = 0;
    currentYear += 1;
    else{ //Foward one month
    currentMonth += 1;
    refreshCalendar(currentMonth, currentYear);
    static class cmbYear_Action implements ActionListener{
    public void actionPerformed (ActionEvent e){
    if (cmbYear.getSelectedItem() != null){
    String b = cmbYear.getSelectedItem().toString();
    currentYear = Integer.parseInt(b);
    refreshCalendar(currentMonth, currentYear);

    Welcome to the forum. You will need to learn a couple things if you want to receive help and not get flamed to death:
    1) All code needs to be posted within code tags. You can read up on them here:
    http://forum.java.sun.com/help.jspa?sec=formatting
    You want to make it as easy as possible for the volunteers here to help you. That means making your code readable.
    2) Do not put "urgent" "need help" "hurry please" in your posts if you are smart. Definitely don't put them in the header of the post. The urgency is yours, not ours. Putting that stuff in there only turns people off. If you have a problem deemed worthwhile by the volunteers here, if you have put thought into your post so you make it easy as possible for others to help you, and if you show some effort on your own, you are almost guaranteed to get timely help.
    3) List all error messages completely.
    4) Keep all necessary code, get rid of all unnecessary code. Your code should be compilable on its own, but it should not contain anything that isn't necessary for demonstrating your problem.
    5) Specifics:
    Why are you throwing out all those exceptions?
    Why is everything in one big huge GUI class? Break your code down into functional units. Make sure the logic works in a non-GUI way, THEN add a GUI class.
    Why the huge main method? The main should be short and sweet.
    Why the static inner classes? Do you know what is the difference between static inner classes and non-static inner classes?
    Why all the static variables anyway? You are doing procedural programming with an OOP language. You should use OOP if you can with an OOP language.
    Sorry, but this code looks like it was thrown together in a big hurry. I think that you have a lot of work to do. Good luck!

  • ReDeploying Portal Content - Need Help Plz.

    Hello All,
    Is there is way to redeploy all Portal Content. All of a sudden the Links and Iview in the my Portal are not working it keep saying that it cannot find the iViews and the Application is missing, can some one please help me with this.
    Best Wishes,
    John.
    Message was edited by: John Bray

    Hi John,
    if you have a backup of your portal server file system you could restore from the backup the ...\irj\root\WEB-INF\deployment directory (with subfolder) and remove from every PAR-File the .bak extension.
    By that all PARs will be deployed on the next server startup.
    If the PCD content (iViews,Pages,etc) is missing, you need to restore the DB or you could import a transport package from another server.
    Hope this helps,
    Robert

  • Hello everbody - i need help please with forms

    hi
    i am new in forms
    and i have a project to do
    i learn a lot and read oracle books about forms but in the many time it didnot help alot when i try to build and write scripts or procedure or triggers.
    i would like to ask a little help
    if anyone can help me with links or a web site that i can download form FMB file so i could run them and learn from its scripts_ and
    how to build form in the best way
    some of my problem are:
    - how to call a reports from a form with a button
    - how to work with date, hoe to calc the hours between two dates
    - i have built a query and i need to find the number of the rows (and the summary with count didnot work coz all the items aren't numbers
    thanks alot
    hope to get some information

    Did you take a look at this?
    regards

  • Need help please with ipod mini

    Hi,I had my ipod mini sent into service as the pasue button was bust and I now have a totally new ipod mini send out and Im trying to install it on the pC and it doesnt let me,need help pls

    You may need to format the iPod for use with Windows.
    Try this instead of using the supplied installation CD.
    Download the iPod Updater, install this to your computer, restart the computer, run the Updater, then connect your iPod when prompted (not before), then follow the set up procedure.
    If this is what you are having problems with, then post back with what happens and any error messages you see.

  • HT5312 I need help plz   

    I need help! I forgot my security question and when I send it to my rescue email but I also forgot that password too so I wanted to change my rescue emial but I don't know how? Can you help me plz!!! 

    From a Kappy  post
    The Three Best Alternatives for Security Questions and Rescue Mail
       1. Use Apple's Express Lane.
    Go to https://expresslane.apple.com ; click 'See all products and services' at the
    bottom of the page. In the next page click 'More Products and Services, then
    'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
    ID security questions' and click 'Continue'. Please be patient waiting for the return
    phone call. It will come in time depending on how heavily the servers are being hit.
    2.  Call Apple Support in your country: Customer Service: Contact Apple support.
    3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • I can't update the apps in my ipad once I try it update it says this update not for this Apple ID . I need help plz

    I can't update the apps in my ipad once I try it update it says this update not for this Apple ID . I need help plz

    Help please any one ?

  • I need help printing with HP laserjet 2200 and OS 10.6

    I need help setting up my HP laserjet 2200 and OS 10.6 -- I've downloaded and installed all the software and still can't print.

    Hey jeo1951,
    If you haven't already, try running through the recommended steps in the following article:
    Mac 101: Printing (Mac OS X v10.6)
    http://support.apple.com/kb/HT3771
    It should help you set up your printer.
    Welcome to Apple Support Communities!
    All the best,
    Delgadoh

Maybe you are looking for