Please help... How to do a LOOP?

I'm really very new to Java. In fact, I will need to admit that I haven't learned anything significant about it yet. I've got a professor who wants us to do a systems stability determination. And he wants us to come up with a program written in Java to do it. I've got it down to the code below. It works. But the thing is, after working once, the program ends.
All I want is to ask the user if he/she wants to do it all over again.
Do you want to continue? y/n
If it's a "y" then the program asks the user to enter the order of equation again, and the whole shebang... I'm sure it's as simple as heck, but I really am clueless to this. Please, please help. This is going to be due in about an hour! I kid you not...
Here's the working code...
import java.util.Scanner;
public class control
    public static void main(String args[]) {
         Scanner input = new Scanner(System.in);
         int numcoe, min2, temp, temp2 = 0, temp3, temp4, numroots = 0, col, prevS = 0, currentS;
         double linezero = 1,firstzero = 0;
         System.out.print("Enter order of equation: ");
         numcoe = input.nextInt();
         min2 = numcoe - 3;
         double coeff[] = new double[numcoe+1];
            col = numcoe/2 + numcoe%2;
            double sofx[][] = new double[numcoe+1][col+1];
            System.out.print("Enter coefficients separated by space: ");
         for (temp = 0; temp < numcoe; temp++)
                 coeff[temp] = input.nextInt();
         coeff[temp] = 0;
        for (temp = 0; temp < col; temp++)
              sofx[numcoe-1][temp] = coeff[temp2];
              sofx[numcoe-2][temp] = coeff[temp2+1];
              temp2 += 2;
         for (temp2 = min2; temp2 >= 0; temp2--)
              for(temp=0; temp < col-1; temp++)
              if (temp == 0)
                   sofx[temp2][temp] = ((sofx[temp2+1][temp]*sofx[temp2+2][temp+1])-(sofx[temp2+2][temp]*sofx[temp2+1][temp+1]))/sofx[temp2+1][temp];
                   firstzero = sofx[temp2][temp];
              else
                      sofx[temp2][temp] = ((sofx[temp2+1][temp-1]*sofx[temp2+2][temp+1])-(sofx[temp2+2][temp-1]*sofx[temp2+1][temp+1]))/sofx[temp2+1][temp-1];
                     linezero *= sofx[temp2][temp];
                 if (firstzero == 0 && linezero != 0)
                   sofx[temp2][0] = 0.00000001;
              if (firstzero == 0 && linezero == 0)
                   temp3 = temp2;
                   temp4 = numcoe - temp2 - 1;
                   for(temp=0; temp < col-1; temp++)
                        sofx[temp2][temp] = temp3 * coeff[temp4];
                        temp3--;
                        temp4++;      
           for (temp = numcoe - 1 ; temp >= 0; temp--)
              for (temp2 = 0; temp2 < col; temp2++)
                   System.out.printf("%.4f",sofx[temp][temp2]);     
                   System.out.print("\t\t\t\t");
         System.out.println();
         for (temp = numcoe - 1 ; temp >= 0; temp--)
              if(sofx[temp][0]<0)     
                   currentS = 1;
              else
                   currentS = 0;
              if (prevS != currentS)
                   numroots = numroots + 1;
              prevS=currentS;
            if (numroots > 0)
                 System.out.print("\nThe system is Unstable w/ ");
                 System.out.print(numroots);
                    System.out.print(" roots at RHP\n\n");
            else
                 System.out.print("The system is stable\n");
}Should it also matter that I am using Netbeans IDE 6.5.1 ?
Thanks
Edited by: jeffimperial on Mar 20, 2009 7:12 AM
Edited by: jeffimperial on Mar 20, 2009 7:14 AM

I absolutely agree...
I'm doing it for the 1st and last time for you. If you want some one to solve your homework... then this is not the right site. If you try and then stuck with some problem, only then people will be more than happy to help you...
And moreover, if you don't try it by yourself its impossible to learn...no offense And Happy Coding...
package prac;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Properties;
import java.util.Scanner;
public class asd {
     private void getXYZ()
         Scanner input = new Scanner(System.in);
         int numcoe, min2, temp, temp2 = 0, temp3, temp4, numroots = 0, col, prevS = 0, currentS;
         double linezero = 1,firstzero = 0;
         System.out.print("Enter order of equation: ");
         numcoe = input.nextInt();
         min2 = numcoe - 3;
         double coeff[] = new double[numcoe+1];
            col = numcoe/2 + numcoe%2;
            double sofx[][] = new double[numcoe+1][col+1];
            System.out.print("Enter coefficients separated by space: ");
         for (temp = 0; temp < numcoe; temp++)
                 coeff[temp] = input.nextInt();
         coeff[temp] = 0;
        for (temp = 0; temp < col; temp++)
              sofx[numcoe-1][temp] = coeff[temp2];
              sofx[numcoe-2][temp] = coeff[temp2+1];
              temp2 += 2;
         for (temp2 = min2; temp2 >= 0; temp2--)
              for(temp=0; temp < col-1; temp++)
              if (temp == 0)
                   sofx[temp2][temp] = ((sofx[temp2+1][temp]*sofx[temp2+2][temp+1])-(sofx[temp2+2][temp]*sofx[temp2+1][temp+1]))/sofx[temp2+1][temp];
                   firstzero = sofx[temp2][temp];
              else
                      sofx[temp2][temp] = ((sofx[temp2+1][temp-1]*sofx[temp2+2][temp+1])-(sofx[temp2+2][temp-1]*sofx[temp2+1][temp+1]))/sofx[temp2+1][temp-1];
                     linezero *= sofx[temp2][temp];
                 if (firstzero == 0 && linezero != 0)
                   sofx[temp2][0] = 0.00000001;
              if (firstzero == 0 && linezero == 0)
                   temp3 = temp2;
                   temp4 = numcoe - temp2 - 1;
                   for(temp=0; temp < col-1; temp++)
                        sofx[temp2][temp] = temp3 * coeff[temp4];
                        temp3--;
                        temp4++;      
           for (temp = numcoe - 1 ; temp >= 0; temp--)
              for (temp2 = 0; temp2 < col; temp2++)
                   System.out.printf("%.4f",sofx[temp][temp2]);     
                   System.out.print("\t\t\t\t");
         System.out.println();
         for (temp = numcoe - 1 ; temp >= 0; temp--)
              if(sofx[temp][0]<0)     
                   currentS = 1;
              else
                   currentS = 0;
              if (prevS != currentS)
                   numroots = numroots + 1;
              prevS=currentS;
            if (numroots > 0)
                 System.out.print("\nThe system is Unstable w/ ");
                 System.out.print(numroots);
                    System.out.print(" roots at RHP\n\n");
            else
                 System.out.print("The system is stable\n");
     public asd() {
      * @param args
     public static void main(String[] args) {
          asd a = new asd();
          a.getXYZ();
          try {
               BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
               System.out.println("Would you like to Continue: yes/no");
               String yesNo ="";
               yesNo = br.readLine();
               while(!yesNo.equals("") || !yesNo.equalsIgnoreCase("no")){
                    if(yesNo.equalsIgnoreCase("yes")){                         
                         a.getXYZ();
               System.exit(1);
          } catch (IOException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
}

Similar Messages

  • Hi, when ever I'm using 3G, on my Iphone4 sim stops working and Network is lost, this started after I updated my phone with  6.0.1(10A523)version. Please help how to solve this problem.

    Hi, when ever I'm using 3G, on my Iphone4 sim stops working and network is lost, this started after I updated my phone with  6.0.1(10A523)version. Please help how to solve this problem. Thanks.

    Photos/videos in the Camera Roll are not synced. Photos/videos in the Camera Roll are not touched with the iTunes sync process. Photos/videos in the Camera Roll can be imported by your computer which is not handled by iTunes. Most importing software includes an option to delete the photos/videos from the Camera Roll after the import process is complete. If is my understanding that some Windows import software supports importing photos from the Camera Roll, but not videos. Regardless, the import software should not delete the photos/videos from the Camera Roll unless you set the app to do so.
    Photos/videos in the Camera Roll are included with your iPhone's backup. If you synced your iPhone with iTunes before the videos on the Camera Roll went missing and you haven't synced your iPhone with iTunes since they went missing, you can try restoring the iPhone with iTunes from the iPhone's backup. Don't sync the iPhone with iTunes again and decline the prompt to update the iPhone's backup after selecting Restore.

  • After updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid

    after updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid good money for this mack, I feel calm

    Hi Buterem,
    I'm sorry to hear you are having issues with your MacBook Pro since your recent Yosemite update. I also apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are having intermittent but persistent responsiveness issues with your mouse or trackpad, you may want to try using Activity Monitor to see if these incidents correspond to occupied system resources, especially system memory or CPU. You may find the following article helpful:
    How to use Activity Monitor - Apple Support
    If the entire system hangs or locks up (for example, if the system clock freezes and stops counting up), you may also be experiencing some variety of Kernel Panic. If that is the case, you may also find this article useful:
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Regards,
    - Brenden

  • HT201270 i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    capriz wrote:
    i have just updated my old 3GS ...
    To what... iOS 7 is Not supported on the 3 GS

  • Please Help,how do i get my iphone 4 to play all my songs from icloud, it is currently only playing just a smal number of songs from my library which is stored in icloud.

    Please Help,how do i get my iphone 4 to play all my songs from icloud, it is currently only playing just a smal number of songs from my library which is stored in icloud.

    There are a number of OS X apps, many free, that will save your messages, allowing to view and print them. 
    http://www.softwarebbs.com/wiki/How_to_transfer_SMS_from_iPhone_to_Mac,_backup_i Phone_SMS_message_on_Mac
    Google, for other options
    Your "other" of 6 GB may include corrupted data or file sytem errors. If after removing the messages there is still >2GB, you will need to restore the phone in iTunes, first using a backup (made after deleting the messages) and if needed as a new iPhone.
    iTunes: Restoring iOS software

  • I bought a used iphone from a friend and I am not able to use it in Ethiopia. It is carrier blocked. Can you please help how could I unlock my iphone 4?.

    I bought a used iphone from a friend and I am not able to use it in Ethiopia. It is carrier blocked. Can you please help how could I unlock my iphone 4?.

    Unlikely as you do not meet there requirements for unlocking.
    Have your friend the provided the phone contact them.  Based on your statements I am concluding he was or still is an AT&T customer, that is one of the requirements of getting the device unlocked.

  • For updation of IOS 7.1.1 passcode required,I forget my passcode please help how can I get my passcode

    Hello,
    I forget my passcode please help how can I get my it

    You will need to try to restore your iPad from the same computer that you most recently synced to.
    Read this: http://support.apple.com/kb/ht1212
    If you can't do the restore then you will need to try Recovery Mode.
    Read this: http://support.apple.com/kb/ht1808
    Follow the instructions very carefully.

  • I have windows 8 and I got this error "Adobe Photoshop has stopped working" whenever I start a program. please help. how can I fix this problem? many thanks

    i have windows 8 and I got this error "Adobe Photoshop has stopped working" whenever I start a program. please help. how can I fix this problem? many thanks

    Please read these and proceed accordingly:
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    http://forums.adobe.com/docs/DOC-2325

  • I want to cahage my peyment method ( i wana do take out my credit card  from there) please help how???

    want to cahage my peyment method ( i wana do take out my credit card  from there) please help how???

    You can't change to 'None' until you clear up the previous payment problem.  Add a fresh iTunes gift card, or add a credit card, and then once the billing issue clears, you can choose 'None' again.

  • Hi, please help my other daughter her ipod touch is disabled connect to itunes after say its itunes couldnt connect to the ipod touch coz its is locked with a passcode?? please help how...

    hi, my daughter hers ipod touch is disabled connect to itunes after say its itunes couldnot connect to the "ipod touch" because its is locked with a passcode please help how to fix connect...i did turn off her ipod touch put usb back on there same in doenot say still ipod is disabled i dont understand please help how???

    If You Are Locked Out Or Have Forgotten Your Passcode or Just Need to Restore Your Device
      1. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
      2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
      3. iOS- Understanding passcodes
         If you have forgotten your Restrictions code, then follow the instructions
         below but DO NOT restore any previous backup. If you do then you will
         simply be restoring the old Restrictions code you have forgotten. This
         same warning applies if you need to restore a clean system.
    A Complete Guide to Restore or Recover Your iDevice (if You Forget Your Passcode)
    If you need to restore your device or ff you cannot remember the passcode, then you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and re-sync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.
    Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
    Before restoring your iOS device, Apple recommends that you either sync with iTunes to transfer any purchases you have made, or back up new data (data acquired after your last sync). If you have movie rentals on the device, see iTunes Store movie rental usage rights in the United States before restoring.
    Follow these steps to restore your device:
         1. Verify that you are using the latest version of iTunes before attempting to update.
         2. Connect your device to your computer.
         3. Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices.
         4. Select the Summary tab.
         5. Select the Restore option.
         6. When prompted to back up your settings before restoring, select the Back Up
             option (see in the image below). If you have just backed up the device, it is not
             necessary to create another.
         7. Select the Restore option when iTunes prompts you (as long as you've backed up,
             you should not have to worry about restoring your iOS device).
         8. When the restore process has completed, the device restarts and displays the Apple
             logo while starting up:
               After a restore, the iOS device displays the "Connect to iTunes" screen. For updating
              to iOS 5 or later, follow the steps in the iOS Setup Assistant. For earlier versions of
              iOS, keep your device connected until the "Connect to iTunes" screen goes away or
              you see "iPhone is activated."
         9. The final step is to restore your device from a previous backup. If you do not have a
              backup to restore, then restore as New.
    If you are restoring to fix a forgotten Restrictions Code or as a New device, then skip Step 9 and restore as New.

  • Please help -- How can I install flash player plugin (version 8) in browser without downloading setup or redirecting to macromedia site if flash plugin is not available in browser

    Hi,
    Please help
    How can I install flash player plugin (version 8) in browser
    without
    downloading setup or redirecting to macromedia site if flash
    plugin is not
    available in browser
    Thanks

    Via Javascripting. Look for Flash detection kits at the
    Adobe/Maromedia web
    site and also at Internet search engines.
    As well this forum focuses on database access issues and you
    might find more
    takers for this type of question in the Flash General forum.
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "jiby" <[email protected]> wrote in message
    news:e3odp2$pdc$[email protected]..
    Hi,
    Please help
    How can I install flash player plugin (version 8) in browser
    without
    downloading setup or redirecting to macromedia site if flash
    plugin is not
    available in browser
    Thanks

  • IPhoto app stops responding upon launch. Please help how I can fix this problem., iPhoto app stops responding upon launch. Please help how I can fix this problem.

    iPhoto app stops responding upon launch. Please help how I can fix this problem., iPhoto app stops responding upon launch. Please help how I can fix this problem.

    Please clarify:
    What is your iPhoto version?
    And what do you mean by "not responding"? Is iPhoto hanging and showing the spinning beachball?
    Can you launch iPhoto, if you hold down the options key while launching and select or create a different library?

  • Please help how to execute jfree......

    please help how to execute[b] jfree  programs
    step by step procedure.....
    package org.jfree.chart.demo;
    import org.jfree.chart.ChartFactory;
    import org.jfree.chart.ChartPanel;
    import org.jfree.chart.JFreeChart;
    import org.jfree.chart.axis.CategoryAxis;
    import org.jfree.chart.axis.CategoryLabelPosition;
    import org.jfree.chart.axis.CategoryLabelPositions;
    import org.jfree.chart.axis.CategoryLabelWidthType;
    import org.jfree.chart.plot.CategoryPlot;
    import org.jfree.chart.plot.PlotOrientation;
    import org.jfree.data.category.CategoryDataset;
    import org.jfree.data.category.DefaultCategoryDataset;
    import org.jfree.text.TextBlockAnchor;
    import org.jfree.ui.ApplicationFrame;
    import org.jfree.ui.RectangleAnchor;
    import org.jfree.ui.RefineryUtilities;
    import org.jfree.ui.TextAnchor;
    import org.jfree.util.Log;
    import org.jfree.util.PrintStreamLogTarget;
    * A simple demonstration application showing how to create a horizontal 3D bar chart using data
    * from a {@link CategoryDataset}.
    public class BarChart3DDemo2 extends ApplicationFrame {
        // * JFREECHART DEVELOPER GUIDE                                               *
        // * The JFreeChart Developer Guide, written by David Gilbert, is available   *
        // * to purchase from Object Refinery Limited:                                *
        // * http://www.object-refinery.com/jfreechart/guide.html                     *
        // * Sales are used to provide funding for the JFreeChart project - please    *
        // * support us so that we can continue developing free software.             *
         * Creates a new demo.
         * @param title  the frame title.
        public BarChart3DDemo2(final String title) {
            super(title);
            // create the chart...
            final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
            dataset.addValue(23.0, "Series 1", "London");
            dataset.addValue(14.0, "Series 1", "New York");
            dataset.addValue(14.0, "Series 1", "Istanbul");
            dataset.addValue(14.0, "Series 1", "Cairo");
            dataset.addValue(13.0, "Series 2", "London");
            dataset.addValue(19.0, "Series 2", "New York");
            dataset.addValue(19.0, "Series 2", "Istanbul");
            dataset.addValue(19.0, "Series 2", "Cairo");
            dataset.addValue(7.0, "Series 3", "London");
            dataset.addValue(9.0, "Series 3", "New York");
            dataset.addValue(9.0, "Series 3", "Istanbul");
            dataset.addValue(9.0, "Series 3", "Cairo");
            final JFreeChart chart = createChart(dataset);
            // add the chart to a panel...
            final ChartPanel chartPanel = new ChartPanel(chart);
            chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
            setContentPane(chartPanel);
         * Creates a chart.
         * @param dataset  the dataset.
         * @return The chart.
        private JFreeChart createChart(final CategoryDataset dataset) {
            final JFreeChart chart = ChartFactory.createBarChart3D(
                "3D Bar Chart Demo 2",       // chart title
                "Category",                  // domain axis label
                "Value",                     // range axis label
                dataset,                     // data
                PlotOrientation.HORIZONTAL,  // orientation
                true,                        // include legend
                true,                        // tooltips
                false                        // urls
            final CategoryPlot plot = chart.getCategoryPlot();
            plot.setForegroundAlpha(1.0f);
            // left align the category labels...
            final CategoryAxis axis = plot.getDomainAxis();
            final CategoryLabelPositions p = axis.getCategoryLabelPositions();
            final CategoryLabelPosition left = new CategoryLabelPosition(
                RectangleAnchor.LEFT, TextBlockAnchor.CENTER_LEFT,
                TextAnchor.CENTER_LEFT, 0.0,
                CategoryLabelWidthType.RANGE, 0.30f
            axis.setCategoryLabelPositions(CategoryLabelPositions.replaceLeftPosition(p, left));
            return chart;       
         * Starting point for the demonstration application.
         * @param args  ignored.
        public static void main(final String[] args) {
            Log.getInstance().addTarget(new PrintStreamLogTarget());
            final BarChart3DDemo2 demo = new BarChart3DDemo2("3D Bar Chart Demo 2");
            demo.pack();
            RefineryUtilities.centerFrameOnScreen(demo);
            demo.setVisible(true);
    }this is the first time i'm trying to execute jfree programs...
    regards,
    R.Raghavan

    here's error message
    E:\raghav>javac BarChart3DDemo2.java
    BarChart3DDemo2.java:3: cannot find symbol
    symbol : class ChartFactory
    location: package org.jfree.chart
    import org.jfree.chart.ChartFactory;
    ^
    BarChart3DDemo2.java:4: cannot find symbol
    symbol : class ChartPanel
    location: package org.jfree.chart
    import org.jfree.chart.ChartPanel;
    ^
    BarChart3DDemo2.java:5: cannot find symbol
    symbol : class JFreeChart
    location: package org.jfree.chart
    import org.jfree.chart.JFreeChart;
    ^
    BarChart3DDemo2.java:6: package org.jfree.chart.axis does not exist
    import org.jfree.chart.axis.CategoryAxis;
    ^
    BarChart3DDemo2.java:7: package org.jfree.chart.axis does not exist
    import org.jfree.chart.axis.CategoryLabelPosition;
    ^
    BarChart3DDemo2.java:8: package org.jfree.chart.axis does not exist
    import org.jfree.chart.axis.CategoryLabelPositions;
    ^
    BarChart3DDemo2.java:9: package org.jfree.chart.axis does not exist
    import org.jfree.chart.axis.CategoryLabelWidthType;
    ^
    BarChart3DDemo2.java:10: package org.jfree.chart.plot does not exist
    import org.jfree.chart.plot.CategoryPlot;
    ^
    BarChart3DDemo2.java:11: package org.jfree.chart.plot does not exist
    import org.jfree.chart.plot.PlotOrientation;
    ^
    BarChart3DDemo2.java:12: package org.jfree.data.category does not exist
    import org.jfree.data.category.CategoryDataset;
    ^
    BarChart3DDemo2.java:13: package org.jfree.data.category does not exist
    import org.jfree.data.category.DefaultCategoryDataset;
    ^
    BarChart3DDemo2.java:14: package org.jfree.text does not exist
    import org.jfree.text.TextBlockAnchor;
    ^
    BarChart3DDemo2.java:15: package org.jfree.ui does not exist
    import org.jfree.ui.ApplicationFrame;
    ^
    BarChart3DDemo2.java:16: package org.jfree.ui does not exist
    import org.jfree.ui.RectangleAnchor;
    ^
    BarChart3DDemo2.java:17: package org.jfree.ui does not exist
    import org.jfree.ui.RefineryUtilities;
    ^
    BarChart3DDemo2.java:18: package org.jfree.ui does not exist
    import org.jfree.ui.TextAnchor;
    ^
    BarChart3DDemo2.java:19: package org.jfree.util does not exist
    import org.jfree.util.Log;
    ^
    BarChart3DDemo2.java:20: package org.jfree.util does not exist
    import org.jfree.util.PrintStreamLogTarget;
    ^
    BarChart3DDemo2.java:27: cannot find symbol
    symbol: class ApplicationFrame
    public class BarChart3DDemo2 extends ApplicationFrame {
    ^
    BarChart3DDemo2.java:80: cannot find symbol
    symbol : class CategoryDataset
    location: class org.jfree.chart.demo.BarChart3DDemo2
    private JFreeChart createChart(final CategoryDataset dataset) {
    ^
    BarChart3DDemo2.java:80: cannot find symbol
    symbol : class JFreeChart
    location: class org.jfree.chart.demo.BarChart3DDemo2
    private JFreeChart createChart(final CategoryDataset dataset) {
    ^
    BarChart3DDemo2.java:50: cannot find symbol
    symbol : class DefaultCategoryDataset
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
    ^
    BarChart3DDemo2.java:50: cannot find symbol
    symbol : class DefaultCategoryDataset
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
    ^
    BarChart3DDemo2.java:64: cannot find symbol
    symbol : class JFreeChart
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final JFreeChart chart = createChart(dataset);
    ^
    BarChart3DDemo2.java:67: cannot find symbol
    symbol : class ChartPanel
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final ChartPanel chartPanel = new ChartPanel(chart);
    ^
    BarChart3DDemo2.java:67: cannot find symbol
    symbol : class ChartPanel
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final ChartPanel chartPanel = new ChartPanel(chart);
    ^
    BarChart3DDemo2.java:82: cannot find symbol
    symbol : class JFreeChart
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final JFreeChart chart = ChartFactory.createBarChart3D(
    ^
    BarChart3DDemo2.java:87: cannot find symbol
    symbol : variable PlotOrientation
    location: class org.jfree.chart.demo.BarChart3DDemo2
    PlotOrientation.HORIZONTAL, // orientation
    ^
    BarChart3DDemo2.java:82: cannot find symbol
    symbol : variable ChartFactory
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final JFreeChart chart = ChartFactory.createBarChart3D(
    ^
    BarChart3DDemo2.java:93: cannot find symbol
    symbol : class CategoryPlot
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryPlot plot = chart.getCategoryPlot();
    ^
    BarChart3DDemo2.java:97: cannot find symbol
    symbol : class CategoryAxis
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryAxis axis = plot.getDomainAxis();
    ^
    BarChart3DDemo2.java:98: cannot find symbol
    symbol : class CategoryLabelPositions
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryLabelPositions p = axis.getCategoryLabelPositions();
    ^
    BarChart3DDemo2.java:100: cannot find symbol
    symbol : class CategoryLabelPosition
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryLabelPosition left = new CategoryLabelPosition(
    ^
    BarChart3DDemo2.java:100: cannot find symbol
    symbol : class CategoryLabelPosition
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryLabelPosition left = new CategoryLabelPosition(
    ^
    BarChart3DDemo2.java:101: cannot find symbol
    symbol : variable RectangleAnchor
    location: class org.jfree.chart.demo.BarChart3DDemo2
    RectangleAnchor.LEFT, TextBlockAnchor.CENTER_LEFT,
    ^
    BarChart3DDemo2.java:101: cannot find symbol
    symbol : variable TextBlockAnchor
    location: class org.jfree.chart.demo.BarChart3DDemo2
    RectangleAnchor.LEFT, TextBlockAnchor.CENTER_LEFT,
    ^
    BarChart3DDemo2.java:102: cannot find symbol
    symbol : variable TextAnchor
    location: class org.jfree.chart.demo.BarChart3DDemo2
    TextAnchor.CENTER_LEFT, 0.0,
    ^
    BarChart3DDemo2.java:103: cannot find symbol
    symbol : variable CategoryLabelWidthType
    location: class org.jfree.chart.demo.BarChart3DDemo2
    CategoryLabelWidthType.RANGE, 0.30f
    ^
    BarChart3DDemo2.java:105: cannot find symbol
    symbol : variable CategoryLabelPositions
    location: class org.jfree.chart.demo.BarChart3DDemo2
    axis.setCategoryLabelPositions(CategoryLabelPositions.replaceLeftPosition(p, left));
    ^
    BarChart3DDemo2.java:118: cannot find symbol
    symbol : class PrintStreamLogTarget
    location: class org.jfree.chart.demo.BarChart3DDemo2
    Log.getInstance().addTarget(new PrintStreamLogTarget());
    ^
    BarChart3DDemo2.java:118: cannot find symbol
    symbol : variable Log
    location: class org.jfree.chart.demo.BarChart3DDemo2
    Log.getInstance().addTarget(new PrintStreamLogTarget());
    ^
    BarChart3DDemo2.java:120: cannot find symbol
    symbol : method pack()
    location: class org.jfree.chart.demo.BarChart3DDemo2
    demo.pack();
    ^
    BarChart3DDemo2.java:121: cannot find symbol
    symbol : variable RefineryUtilities
    location: class org.jfree.chart.demo.BarChart3DDemo2
    RefineryUtilities.centerFrameOnScreen(demo);
    ^
    BarChart3DDemo2.java:122: cannot find symbol
    symbol : method setVisible(boolean)
    location: class org.jfree.chart.demo.BarChart3DDemo2
    demo.setVisible(true);
    ^
    44 errors

  • Please help how to save a movieclip in flash to svg...and how to retrive the saved svg to movieclip in flash?

    hi all
    please help how to save a movieclip in flash to svg...and how
    to retrive the saved svg to movieclip in flash?
    thanks

    Do you mean from flash in a web page or do you mean
    converting the swf file format (maybe with a decompiler or
    whatever).
    If you're meaning to do it from flash in a web page:
    You can't save a movieclip from flash to svg. You could
    perhaps record drawingAPI commands and create the appropriate svg
    output in an internal xml object which you then send to the server.
    But I don't know of any pre-built classes to do that (disclaimer:
    because I don't know of any doesn't mean they don't exist).
    Going from svg to flash is doing it the other way around.
    Converting the svg paths back to actionscript drawing commands. I
    think I've seen some examples of this online somewhere.

  • Please help : How to print a matrix from the console...

    Hi..
    Please help:
    How to print a matrix on the console , but i want to take all the input from the console.. like...
    if the matrix is of size...
    mxn
    where
    m : row
    n : column
    and the all the elements of the matrix from the console it self... .
    Please help...

    Thanks...
    I am able to print the elements of the array but i am not able to assign those values to the array ....
    How to do that...
    I just did a little change in my code...
    import java.util.Scanner;
    public class CreatingAMatrix {
        public static void main(String[] args) {
         // TODO Auto-generated method stub
         System.out.print("Enter the number of rows: ");
         Scanner scanner1 = new Scanner(System.in);
         int m = scanner1.nextInt();
         System.out.print("Enter the number of coulmns:");
         Scanner scanner2 = new Scanner(System.in);
         int n = scanner2.nextInt();
         System.out.println("The size of the matrix is : " +m+" x "+n );
         int[][] a = new int[100][100];
         for(int i=0;i<=m;i++)
             for(int j =0; j <= n; j++)
              Scanner scanner3 = new Scanner(System.in);
              int o = scanner3.nextInt();
             System.out.println();
         for(int i=0;i<=m;i++)
             for(int j =0; j <= n; j++)
              System.out.print(a[i][j] + "\t");
             System.out.println();
    }I am getting an output as this
    output:
    Enter the number of rows: 2
    Enter the number of coulmns:1
    The size of the matrix is : 2 x 1
    1
    2
    1
    2
    3
    5
    0     0     
    0     0     
    0     0     
    how should i assig those input values to my array..
    Please help

  • My ipad2 is asking old id password, when i go to forget password link for that id then I am not getting any mail to reset the same. Please help how can i remove or change the old id.

    my ipad2 is asking old id password, when i go to forget password link for that id then I am not getting any mail to reset the same. Please help how can i remove or change the old id.

    You cannot remove or change the old ID. This is Find My iPhone Activation Lock. You need to recover the credentials for the Apple ID originally used to activate the iPad.
    Check your spam and junk folders.

Maybe you are looking for

  • Time--Privilege leaves accumulation for New Joinees after 1 year of service

    Dear Experts, We have configured Privilege leaves for Client and its working fineu2026 Requirement u2013 Where as a new joinee should avail the PL accumulated for first years only after completing on year of service. New Joinee is getting quota every

  • How do i prevent restoring my iphone4 after updating to the new ios?

    I decided tonight to finally update to the new version of ios7. I already updated to 7 when it came out but have been avoiding the newer versions of it...until tonight. After it loaded the update and tried turning on, it showed the charger chord inse

  • Receiver channel file-name

    Hi, Scenario File -> File (using an SFTP adapter) Is there anyway I can configure my receiver determination in a way to look at a file-name which determines which comm channel is used? The mapping does not contain this info, only the filename so I ca

  • Tried to download latest version of iTunes but...

    Thought I was updating my 8.something but I now have 9.02 0n my desktop and still have 8.something as operating itunes. It downloaded to an icon on my desktop. I tried to install from there but still have 8.something in there. Restarted countless tim

  • Give me answere for this

    hi all,     If i send 10 materials as outbound i have to get 2 invoices in first invoice i have to get 5 materials in second invoice another 5