Need help with saving my project

When I try to export and save my project, iMovie answers that I need more storage space to go on and that I need to end and restart the program. What can I do to save my project? There is lots of work in it. Thank you.

If iMovie is only preventing you from sharing/exporting your movie, your project itself should still be OK.
If you have everything on your internal drive it is probably getting too full (you can check with finder).   You need to free up some space or get an external hard drive.  An external drive is almost essential if you are going to do a lot of video work since file are so large.
Geoff.

Similar Messages

  • Need help with saving data and keeping table history for one BP

    Hi all
    I need help with this one ,
    Scenario:
    When adding a new vendor on the system the vendor is suppose to have a tax clearance certificate and it has an expiry date, so after the certificate has expired a new one is submitted by the vendor.
    So i need to know how to have SBO fullfil this requirement ?
    Hope it's clear .
    Thanks
    Bongani

    Hi
    I don't have a problem with the query that I know I've got to write , the problem is saving the tax clearance certificate and along side it , its the expiry date.
    I'm using South African localization.
    Thanks

  • Need help with lost iMovie project.

    I was creating an iMovie project for school and needed to save it on a USB, so I clicked on 'Export Movie' from the 'Share' options menu in iMovie. I chose the type I wanted it saved in (viewing for computers) and then a smaller screen in iMovie popped up saying it was exporting the movie, or something like that. It took about a good 30 minutes and my project was a 7 minute movie with film clips, music, transitions, ect. I exported this project to my USB but when it finished it wasn't on there and when I finally found it on the Mac somewhere, I went to drag it into my USB but it said it was full. I then dragged the project onto my desktop and tried to open it to see if it worked. When I did the iMovie icon jumped once and stopped. I clicked on iMovie and it was still there in the projects screen. I then decided to close iMovie and open the project again from my desktop to see if it would play like a normal movie but once I clicked it the iMovie icon jumped again, opened but my project that I was trying to open was not there anymore and wouldn't open from my desktop file. I cannot open it at all and view it, it has been lost from my iMovie. Is there a way that I can get it back? Really need some help with this.

    What version of iMovie are you using?
    Matt

  • I need help with my hangman project

    I'm working on a project where we are developing a text based version of the game hangman. For every project we add a new piece to the game. Well for my project i have to test for a loser and winner for the game and take away a piece of the game when the user guesses incorrectly. these are the instrcutions given by my professor:
    This semester we will develop a text based version of the Game Hangman. In each project we will add a new a piece to the game. In project 4 you will declare the 'figure', 'disp', and 'soln' arrays to be attributes of the class P4. However do not create the space for the arrays until main (declaration and creation on separate lines). If the user enters an incorrect guess, remove a piece of the figure, starting with the right leg (looking at the figure on the screen, the backslash is the right leg) and following this order: the left leg (forward slash), the right arm (the dash or minus sign), the left arm (the dash or minus sign), the body (vertical bar), and finally the head (capital O).
    Not only will you need to check for a winner, but now you will also check to see if all the parts of the figure have been removed, checking to see if the user has lost. If the user has lost, print an error message and end the program. You are required to complete the following operations using for loops:
    intializing appropriate (possible) variables, testing to see if the user has guessed the correct solution, testing to see if the user has guessed a correct letter in the solution, and determining / removing the next appropriate part of the figure. All other parts of the program will work as before.
    Declare figure, disp, and soln arrays as attributes of the class
    Creation of the arrays will remain inside of main
    Delete figure parts
    Check for loss (all parts removed)
    Implement for loops
    Init of appropriate arrays
    Test for winner
    Test if guess is part of the solution
    Removal of correct position from figure
    Output must be
    C:\jdk1.3.1\bin>java P3
    |
    |
    O
    -|-
    Enter a letter: t
    |
    |
    O
    -|-
    t _ _ t
    Enter a letter: a
    |
    |
    O
    -|-
    t _ _ t
    Enter a letter: e
    |
    |
    O
    -|-
    t e _ t
    Enter a letter: l
    |
    |
    O
    -|-
    t e _ t
    Enter a letter: s
    |
    |
    O
    -|-
    t e s t
    YOU WIN!
    C:\jdk1.3.1\bin>java P3
    Pete Dobbins
    Period 5, 7, & 8
    |
    |
    O
    -|-
    Enter a letter: a
    |
    |
    O
    -|-
    Enter a letter: b
    |
    |
    O
    -|-
    Enter a letter: c
    |
    |
    O
    -|
    Enter a letter: d
    |
    |
    O
    |
    Enter a letter: e
    |
    |
    O
    |
    _ e _ _
    Enter a letter: f
    |
    |
    O
    _ e _ _
    Enter a letter: g
    |
    |
    _ e _ _
    YOU LOSE!
    Well i have worked on this and come up with this so far and am having great dificulty as to i am struggling with this class. the beginning is just what i was suppose to comment out. We are suppose to jave for loops for anything that can be put into a for loop also.
    /* Anita Desai
    Period 5
    P4 description:
    1.Declare figure, disp, and soln arrays as attributes of the class
    2.Creation of the arrays will remain inside of main
    3.Delete figure parts
    4.Check for loss (all parts removed)
    5.Implement for loops
    A.Init of appropriate arrays
    B.Test for winner
    C.Test if guess is part of the solution
    D.Removal of correct position from figure
    //bringing the java Input / Output package
    import java.io.*;
    //declaring the program's class name
    class P4
    //declaring arrays as attributes of the class
    public static char figure[];
    public static char disp[];
    public static char soln[];
    // declaring the main method within the class P4
    public static void main(String[] args)
    //print out name and period
    System.out.println("Anita Desai");
    System.out.println("Period 5");
    //creating the arrays
    figure = new char[6];
    soln = new char[4];
    disp = new char[4];
    figure[0] = 'O';
    figure[1] = '-';
    figure[2] = '|';
    figure[3] = '-';
    figure[4] = '<';
    figure[5] = '>';
    soln[0] = 't';
    soln[1] = 'e';
    soln[2] = 's';
    soln[3] = 't';
    //for loop for disp variables
    int i;
    for(i=0;i<4;i++)
    disp='_';
    //Using a while loop to control program flow
    while(true)
    //drawing the board again!
    System.out.println("-----------");
    System.out.println(" |");
    System.out.println(" |");
    System.out.println(" " + figure[0]);
    System.out.println(" " + figure[1] + figure[2] + figure[3]);
    System.out.println(" " + figure[4] + " " + figure[5]);
    System.out.println("\n " + disp[0] + " " + disp[1] + " " + disp[2] + " " + disp[3]);
    //getting input
    System.out.print("Enter a letter: ");
    //declaring a string variable
    String data = " ";
    // call the readString method
    data = readString();
    //retrieves the character at position zero
    char temp;
    temp=data.charAt(0);
    int h;
    for(h=0;h<4;h++)
    if(temp==soln[h])
    disp[h]=soln[h];
    return;
    if(disp[h]==soln[h])
    System.out.println("You Win");
    else
    for(h=0;h<6;h++)
    if(temp!=soln[h])
    figure[h] = ' ';
    return;
    if(disp[h]!=soln[h])
    System.out.println("You Lose");
    ///Test if statements to replace user input with soln if correct
    int j;
    for(j=0;j<4;j++)
    if(temp==soln[j])
    disp[j]=soln[j];
    //declared the readString method, we specified that it would
    //be returning a string
    public static String readString()
    //make connection to the command line
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    //declaring a string variable
    String s = " ";
    //try to do something that might cause an error
    try
    //reading in a line from the user
    s = br.readLine();
    catch(IOException ex)
    //if the error occurs, we will handle it in a special way
    //give back to the place that called us
    //the string we read in
    return s;
    If anyone cann please help me i would greatly appreciate it. I have an exam coming up on wednesday also so i really need to understand this material and see where my mistakes are. If anyoone knows how to delete the parts of the hangman figure one by one each time user guessesincorrectly i would appreciate it greatly. Any other help in solving this program would be great help. thanks.

    Hi thanks for responding. Well to answer some of your questions. The professors instructions are the first 2 paragraphs of my post up until the ende of the output which is You lose!. I have to have the same output as the professor stated which is testing for a winner and loser. Yes the program under the output is what i have written so far. This is the 3rd project and in each we add a little piece to the game. I have no errors when i run the program my problem is when it runs it just prints the hangman figure, disp and then asks user ot enter a letter. Well once i enter a letter it just prints that letter to the screen and the prgram ends.
    As far as the removal of the parts. the solution is TEST. When the user enters a letter lets say Tthen the figure should display again with the disp and filled in solution with T. Then ask for a letter again till user has won and TEST has been guessed correctly. Well then we have to test for a loser. So lets the user enters a R, well then the right leg of the hangman figure should be blank indicating a D the other leg will be blank until the parts are removed and then You lose will be printed to the screen.
    For the program i am suppose to use a FOR LOOPto test for a winner, to remove the parts one at a time, and to see if the parts have been removed if the user guesses incorrectly.
    so as u can see in what i have come up with so far i have done this to test for a winner and loser:
    //declaring a string variable
    String data = " ";
    // call the readString method
    data = readString();
    //retrieves the character at position zero
    char temp;
    temp=data.charAt(0);
    int h;
    for(h=0;h<4;h++)
    if(temp==soln[h])
    disp[h]=soln[h];
    return;
    if(disp[h]==soln[h])
    System.out.println("You Win");
    else
    for(h=0;h<6;h++)
    if(temp!=soln[h])
    figure[h] = ' ';
    return;
    if(disp[h]!=soln[h])
    System.out.println("You Lose");
    Obviously i have not writtern the for loops to do what is been asked to have the proper output. the first for loop i am trying to say if the user input is equal to the soln thencontinue till all 4 disp are guessed correctly and if all the disp=soln then the scrren prints you win.
    then for the incorrect guesses i figured if the user input does not equal the soln then to leave a blank for the right leg and so on so i have a blank space for the figure as stated
    :for(h=0;h<6;h++)
    if(temp!=soln[h])
    figure[h] = ' ';
    well this doesnt work and im not getting the output i wanted and am very confused about what to do. I tried reading my book and have been trying to figure this out all night but i am unable to. I'm going to try for another hr then head to bed lol its 4am. thanks for your help. Sorry about posting in two different message boards. I wont' do it again. thanks again, anita

  • Need help with saving text

    i,ve created frame with a JTable, and add new button.
    every time i run project table gets empty, of course, that is normal, but i would like that when i tipe something in my table and press button, things i wrote in table get saved. lets say that the variable name of JTable is "table" and name of button "save". i'm not expert in java programing but i really need this code. could someone please be so generous and wrote that code for me? i need it till tomorrow :S

    What you need is Serialization.
    I did a quick google search and found this:
    http://java.sun.com/developer/technicalArticles/Programming/serialization/
    It basically allows you to save your object and load it later.
    You could also save your stuff in plain text. Follow this tutorial to learn how, This is maybe a bit easier if you don't know what objects are.
    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • Need help with saving data

    I recently started studying in IT at college, and I think I have the basics in Java programming, however we haven't
    been taught how to save data in our apps, so everytime i close my app, I lose all changes.
    I went through Sun's IO tutorial, as well as a few tutorials online and I made a small application to practice saving my
    Objects, however I can't seem to get it to work. I was hoping someone could look at my code and tell me what seems
    to be my problem.
    There are 3 classes in my project. The Base class makes a List that holds objects of type Person. the UIPerson class
    has 3 buttons (Add, Save, Load) and a JList. When clicking on Add, it adds a new Person in the base and is shown in
    the JList. The saving and loading is what I have trouble with.
    UIPerson :
    public class UIPerson extends JFrame implements Serializable{
         private JFrame jFrame = null; 
         private JPanel jContentPane = null;
         private JButton jbAdd = null;
         private JButton jbSave = null;
         private JButton jbLoad = null;
         private JList list = null;
         private Base base = null;
         public static void main(String args[]){
              UIPerson personList = new UIPerson();
         public UIPerson(){
                   base = new Base();
                   Container pane = getContentPane();
                   setSize(288, 309);
                   setVisible(true);
                   jContentPane = new JPanel();
                   jContentPane.setLayout(null);
                   jbAdd = new JButton();
                   jbAdd.setBounds(new Rectangle(24, 59, 58, 24));
                   jbAdd.setText("Add");
                   jbAdd.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             String Name, famName;
                             Name = JOptionPane.showInputDialog("Enter Name", null);
                             famName = JOptionPane.showInputDialog("Enter Family Name", null);
                             base.addPerson(new Person(Name, famName));
                             list.setListData(base.listPerson());
                   jbSave = new JButton();
                   jbSave.setBounds(new Rectangle(19, 106, 69, 34));
                   jbSave.setText("Save");
                   jbSave.addActionListener(new java.awt.event.ActionListener(){
                        public void actionPerformed(java.awt.event.ActionEvent e){
                             try{
                                  FileOutputStream fos = new FileOutputStream("temp.dat");
                                  ObjectOutputStream oos = new ObjectOutputStream(fos);
                                  oos.writeObject(base);
                             catch(Exception ex){
                                  System.out.println("Save Failed");
                   jbLoad = new JButton();
                   jbLoad.setBounds(new Rectangle(23, 154, 70, 29));
                   jbLoad.setText("Load");
                   jbLoad.addActionListener(new java.awt.event.ActionListener(){
                        public void actionPerformed(java.awt.event.ActionEvent e){
                             try{
                                  FileInputStream fis = new FileInputStream("temp.dat");
                                  ObjectInputStream ois = new ObjectInputStream(fis);
                                  base = (Base)ois.readObject();
                                  list.setListData(base.listPerson());
                             catch(Exception exc){
                                  System.out.println("Load Failed");
                   list = new JList();
                   list.setBounds(new Rectangle(133, 47, 139, 151));
                   jContentPane.add(jbAdd);
                   jContentPane.add(jbSave);
                   jContentPane.add(jbLoad);
                   jContentPane.add(list);
                   pane.add(jContentPane);
    }Base :
    public class Base implements Serializable{
         private ArrayList<Person> list;
         public Base(){
              list = new ArrayList<Person>();
              list.clear();
         public void addPerson(Person person){
              list.add(person);
         public void deletePerson(Person person){
              list.remove(person);
         public Person[] listPerson(){
              Person tab[] = new Person[list.size()];
              list.toArray(tab);
              return tab;
         public Person getPerson(Person person){
              ListIterator<Person> iterator = list.listIterator();
              Person current = null;
              while (iterator.hasNext()){
                   current = iterator.next();
                   if (current.equals(person))
                        return current;
              return null;
    }Person :
    public class Person {
         private String name, familyName;
         public Person(String name, String familyName){
              this.name = name;
              this.familyName = familyName;
         public String getName(){
              return name;
         public String getFamilyName(){
              return familyName;
         public String toString(){
              return name + " " + familyName;
    }I'd appreciate any help that could be given.

    My probelm is with my save/load funtions only, sorry for the extra code. Everytime i press on save or load, they
    throw an IOException. Heres the code I specifically wanted viewed to know if there are any mistakes in it.
    Save Button :
    jbSave.addActionListener(new java.awt.event.ActionListener(){
              public void actionPerformed(java.awt.event.ActionEvent e){
                   try{
                        FileOutputStream fos = new FileOutputStream("temp.dat");
                        ObjectOutputStream oos = new ObjectOutputStream(fos);
                        oos.writeObject(base);
                   catch(FileNotFoundException ex){
                        System.out.println("(Save)File Not Found Exception");
                   catch(IOException ex){
                        System.out.println("(Save)IOException");
         });Load Button :
    jbLoad.addActionListener(new java.awt.event.ActionListener(){
              public void actionPerformed(java.awt.event.ActionEvent e){
                   try{
                        FileInputStream fis = new FileInputStream("temp.dat");
                        ObjectInputStream ois = new ObjectInputStream(fis);
                        base = (Base)ois.readObject();
                        list.setListData(base.listPerson());
                   catch(FileNotFoundException exc){
                        System.out.println("(Load) File not found exception");
                   catch(IOException exc){
                        System.out.println("(Load) IO Exception");
                   catch(ClassNotFoundException exc){
                        System.out.println("(Load) Class not found exception");
         });

  • Need help with saving item from combobox to textfile

    Hi all. right now my codes can only save one stock information in the textfile but when I tried to save another stock in the textfile , it overrides the pervious one.
    So I was wondering which part of my codes should be changed??
    DO the following
    Create a fypgui class and put this bunch of codes inside
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
    import java.io.BufferedInputStream;
    import java.io.BufferedReader;
    import java.io.DataInputStream;
    import java.io.File;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.io.InputStream;
    import java.net.URL;
    import java.util.ArrayList;
    import java.util.Scanner;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTabbedPane;
    import javax.swing.JTable;
    public class fypgui {
         private ArrayList<Stock> stockList = new ArrayList<Stock>();
         private String[] stockArray;
         private JComboBox choice1;
         private JTabbedPane tabbedPane = new JTabbedPane();
         private JPanel displayPanel = new JPanel(new GridLayout(5, 1));
         private JButton saveBtn = new JButton("Save");
         private JPanel choicePanel = new JPanel();
         String yahootext;
         String     symbol;
         int index;
         public fypgui() {
              try {
                   //read from text file for stockname
                   File myFile = new File("D:/fyp/savedtext2.txt");
                   FileReader reader = new FileReader(myFile);
                   BufferedReader bufferedReader = new BufferedReader(reader);
                   String line = bufferedReader.readLine();
                   while (line != null) {
                        Stock stock = new Stock();
                        // use delimiter to get name and symbol
                        Scanner scan = new Scanner(line);
                        scan.useDelimiter(",");
                        String name = "";
                        String symbol = "";
                        while (scan.hasNext()) {
                             name += scan.next();
                             symbol += scan.next();
                        stock.setStockName(name);
                        stock.setSymbol(symbol);
                        stockList.add(stock);
                        line = bufferedReader.readLine();
                   //size of the array(stockarray) will be the same as the arraylist(stocklist)
                   stockArray = new String[stockList.size()];
                   for (int i = 0; i < stockList.size(); i++) {
                        stockArray[i] = stockList.get(i).getStockName();
                   //create new combobox
                   choice1 = new JComboBox(stockArray);
                   //For typing stock symbol manually
                   choice1.setEditable(true);
                   //set the combobox as blank
                   choice1.setSelectedIndex(-1);
              } catch (IOException ex) {
                   ex.printStackTrace();
              JFrame frame1 = new JFrame("Stock Ticker");
              frame1.setBounds(200, 200, 300, 300);
              JPanel panel1 = new JPanel();
              panel1.add(choice1);
              choice1.setBounds(20, 35, 260, 20);
              JPanel panel2 = new JPanel();
              JPanel panel5 = new JPanel();
              panel5.add(saveBtn);
              displayPanel.add(panel1);
              displayPanel.add(panel5);
              tabbedPane.addTab("Choice", displayPanel);
              tabbedPane.addTab("Display", choicePanel);
              JLabel label2 = new JLabel("Still in Progress!");
              choicePanel.add(label2);
              frame1.add(tabbedPane);
              frame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame1.setVisible(true);
              saveBtn.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        // initalize index as the postion of the stock in the combo box
                        index = choice1.getSelectedIndex();
                        /*if the postion of the combobox is not blank,
                             it will get the StockName and symbol according to the
                             position and download the stock*/
                        if(index != -1){
                             symbol = stockList.get(index).getSymbol();
                             save(symbol);
         @SuppressWarnings("deprecation")
         public void save(String symbol){
              try {
                   String part1 = "http://download.finance.yahoo.com/d/quotes.csv?s=";
                   String part2 = symbol;
                   String part3 = "&f=sl1d1t1c1ohgv&e=.csv";
                   String urlToDownload = part1+part2+part3;
                   URL url = new URL(urlToDownload);
                   //read contents of a website
                   InputStream fromthewebsite = url.openStream(); // throws an IOException
                   //input the data from the website and read the data from the website
                   DataInputStream yahoodata = new DataInputStream(new BufferedInputStream(fromthewebsite));
                   // while there is some contents from the website to read then it will print out the data.
                   while ((yahootext = yahoodata.readLine()) != null) {
                        File newsavefile = new File("D:/fyp/savedtext.txt");
                        try {
                             FileWriter writetosavefile = new FileWriter(newsavefile);
                             writetosavefile.write(yahootext);
                             System.out.println(yahootext);
                             writetosavefile.close();
                        } catch (IOException e) {
                             e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
         public static void main(String[] args) {
              // TODO code application logic here
              new fypgui();
    Create a Stock class a put this bunch of codes inside
    public class Stock {
         String stockName ="";
         String symbol="";
         double lastDone=0.0;
         double change =0.0;
         int volume=0;
         public String getStockName() {
              return stockName;
         public void setStockName(String stockName) {
              this.stockName = stockName;
         public String getSymbol() {
              return symbol;
         public void setSymbol(String symbol) {
              this.symbol = symbol;
         public double getLastDone() {
              return lastDone;
         public void setLastDone(double lastDone) {
              this.lastDone = lastDone;
         public double getChange() {
              return change;
         public void setChange(double change) {
              this.change = change;
         public int getVolume() {
              return volume;
         public void setVolume(int volume) {
              this.volume = volume;
    Create a folder called fyp in D drive and create two txt file in it.
    -savedtext.txt
    -savedtext2.txt
    in the saved savedtext2.txt add
    A ,AXP
    B ,B58.SI
    C ,CLQ10.NYM
    this is my whole application. if you guys can tell me what can I do to make sure that the stock info doesn't overrides . I will more than thankful.
    Edited by: javarookie123 on Jul 9, 2010 9:49 PM

    javarookie123 wrote:
    Hi all. right now my codes can only save one stock information in the textfile but when I tried to save another stock in the textfile , it overrides.. 'over writes'
    ..the pervious one.
    So I was wondering which part of my codes should be changed??Did not look at the code closely, but I am guessing the problem lies in the instantiation of the FileWriter. Try [this constructor|http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/io/FileWriter.html#FileWriter(java.io.File,%20boolean)] (<- link). The documentation is a wonderful thing. ;-)
    And generally on the subject of getting help:
    - There is no need for two question marks. One '?' means a question, while 2 or more typically means a dweeb.
    - Do your best to [write well|http://catb.org/esr/faqs/smart-questions.html#writewell] (<- link). Each sentence should start with an upper case letter. Not just the first one.
    Also, when posting code, code snippets, XML/HTML or input/output, please use the code tags. The code tags protect the indentation and formatting of the sample. To use the code tags, select the sample and click the CODE button.

  • HT5622 need help with saving to Icloud

    I have an Ipad and was saving movies on it until it let me know that I was running out of space.  I went in and purchased additional space on Icloud but now cannot figure out how to get things moved over to Icloud...help?!

    iCloud storage space are meant mainly for backup purposes. You can't move your data from iPad to iCloud like other cloud storage like Dropbox or Box.net.
    You need to clear up space from your iPad.
    Settings>General>Usage>Storage>Delete what is not wanted

  • Need help with saving file for printer

    I am using Acrobat 9. I have a document with four pages. I need to save it in two files-- one file with p. 4 and 1 side by side to print on 11 x 17 paper, and the other file with p. 2 and 3 the same. The person printing does not have Acrobat so the pdf itself has to be formatted this way so they can print it. I can rearrange the pages, delete pages, and so forth, but I cannot get them to display side by side except in a "view" option.
    Thanks for any help.

    Thanks could remember that for nothing

  • Need help with a class project

    I'm new to Java and I'm having problems converting a small program to be more functional. Here is my original codeimport java.util.Arrays;
    public class Product
    // initialize arrays
       private int cdNums[] = { 0,0,0,0 };
       private String cdNames[] = { "null", "null", "null", "null" };
       private int cdUnits[] = { 0,0,0,0 };
       private double cdValue[] = { 0.0, 0.0, 0.0, 0.0 };
       private double inventoryValue[] = { 0.0, 0.0, 0.0, 0.0 };
    // initialize instance variable
       private double totalValue = 0;
       private int count;
       public Product( int invNumber[], String albumName[], int invUnits[], double invValue[] )
             cdNums = invNumber;  // store inventory number
             cdNames = albumName;  //store album name
             cdUnits = invUnits;  //store number of units
             cdValue = invValue; // store unit price
       public double calcInventoryValue()
             // calculate Inventory value
                for ( int count = 0; count < cdNums.length; count++ )
                       totalValue =0; // initialize totalValue
                       totalValue =( cdUnits[ count ] * cdValue [ count ] );
               System.out.printf( "%s%d%s%s%s%d%s%.2f%s%.2f\n", "Item #", cdNums[ count ], " is: ", cdNames[ count ], " with ", cdUnits [ count ], " units priced at $", cdValue [ count ], " gives value of $", totalValue );
             return totalValue;
          } // end calcinventoryValue method
    } // end classand the test application: import java.util.Arrays;
    public class ProductTest
       public static void main( String args[] )
            int invNumber [] = { 1,2,3,4 };
            String albumName[] = { "Wish You Were Here", "Abacab", "Animals", "Security" };
            int invUnits[] = { 200, 150, 50, 500 };
            double invValue[] = { 14.99, 9.99, 23.49, 12.99 };
         Product myProduct = new Product (invNumber, albumName, invUnits, invValue );       
            myProduct.calcInventoryValue();
         } // end main
    } // end class ProductTestWhat I want to do is convert it to read in user input instead of static lists. Here is what I have so far:
    import java.util.Arrays;
    public class Product
    // initialize arrays
       private int cdNums[];
       private String cdNames[];
       private int cdUnits[];
       private double cdValue[];
       private double inventoryValue[];
    // initialize instance variable
       private double runValue = 0;
       private double totalValue = 0;
       private int count;
       public Product( int invNumber[], String albumName[], int invUnits[], double invValue[] )
             cdNums = invNumber;  // store inventory number
             cdNames = albumName;  //store album name
             cdUnits = invUnits;  //store number of units
             cdValue = invValue; // store unit price
       public double calcInventoryValue()
             // calculate Inventory value
                totalValue = 0; // Initialize totalValue variable
                for ( int count = 0; count < cdNums.length; count++ )
                       runValue =0; // initialize runValue
                       runValue =( cdUnits[ count ] * cdValue [ count ] );
               System.out.printf( "%s%d%s%s%s%d%s%.2f%s%.2f\n", "Item #", cdNums[ count ], " is: ", cdNames[ count ], " with ", cdUnits [ count ], " units priced at $", cdValue [ count ], " gives value of $", runValue );
                     totalValue = totalValue += runValue;
              calcTotalValue( totalValue );
             return totalValue;
          } // end calcinventoryValue method
        public double calcTotalValue( double totalValue )
             System.out.printf( "%s%.2f\n", "The total value of the inventory is: $", totalValue );
              return totalValue;
           } // end calcTotalValue method
    } // end classand the new test application:
    import java.util.Arrays;
    import java.util.Scanner;
    public class ProductTest
       public static void main( String args[] )
            double totalValue = 0;
          do 
            { //  open dowhile
             int count = 0; // initialize counter
             Scanner input = new Scanner( System.in ); // call scanner to get input
             for ( int count = 0; count > 0; count++ )
               {  // open for loop
                         System.out.printf ( "%s%d%s\n", "Please enter the inventory # of Item ", count, " or 0 to quit: " );  // prompt for inventory number or sentinel value
                          int invNumber[ count ] = input.nextInt();  // get user input of Item Number
                 if ( invNumber[ count ] != 0 )  // check for sentinel
                   {  // open if
                         System.out.printf ( "%s%d\n","Please enter the album name of Item #", invNumber[ count ] );  // prompt for album name
                         String albumName[ count ] = input.nextLine();  // get input album name
                         System.out.printf ( "%s%d\n", "Please enter the number of units in stock for Item #", invNumber[ count ] );  // prompt for number of units in stock
                         int invUnits[ count ] = input.nextint();  // input rate of payment
                         System.out.printf ( "%s%.2f\n", "Please enter the unit price for Item #", invNumber[ count ] );  // prompt for unit price
                         double unitValue = input.nextDouble();  // input rate of payment
                         System.out.println();  // print blank line for readability
                   } // close if
                else
                   {  // open else
                      Product myProduct = new Product (invNumber, albumName, invUnits, invValue );       
                         myProduct.calcInventoryValue();
                   } // close else
               } // close for loop           
           } while ( invNumber != 0 );  // loop back to inputting employee name and close dowhile
        } // end main
    } // end class ProductTestthe compiler is telling me for ProductTest that it is expecting "]" for the following line: int invNumber[ count ] = input.nextInt();Do I need to store the data in a variable first and then feed it into the array? What do I need to do to complete this code?

    OK, yeah. Change the Product constructor so that it takes scalar values (as opposed to arrays) -- a single int for units in stock, and single String for name, etc.
    Then you can create multiple objects of that class, one for each CD or whatever.
    It makes sense to hardcode values in the ProductTest class, but not really in the Product class. Your ProductTest class is almost there. You know how in the main method you create a single Product object with those arrays? Change it so that you have a loop. Loop through the prices, album names, etc., and create a Product for each set of values. Then put the Product objects in an array, or better yet (and if you've covered it in class) into a Collection like a java.util.HashSet or a java.util.ArrayList.
    You said you wanted to make it take values from user input, rather than hardcoded lists. Once you've made the above change, move on to doing that. You can read user input with a java.util.Scanner. Or you can use a java.io.BufferedReader. Did the prof say to use one particular method or another?

  • Need help with saving pdf form

    I created a quote form for our sales people to fill out and email to their customers. I can't figure out how to set it up so that after they fill out the form it can be saved with the field locked so they cant be changed. Is that even a possibility? I've been working on this for 2 days  and just keep going in circles with it.

    You can set up the form so that the fields get set to read-only after the salesman completes the form but before sending it out. This idea is discussed in this topic: http://forums.adobe.com/message/3314067#3314067
    If you get stuck, post again.

  • Need Help with Saved Drafts

    I created a new page from exiting one...Edited it for new
    content..Saved it as a draft...Opened the next day finding a
    horrific corrupt looking ....The entire editable area within the
    blue line and the line itself had shifted way below as in out of
    the normal area. Could'nt resolve..started over...same steps..same
    results.
    Help!!!

    This problem may be resolved..Website host/designer is making
    changes.
    Thanks

  • Need help with an array project please =)

    I'm having trouble figuring out where to start. My project is to create an applet that accepts 20 numbers from a text field one by one and adds them to an array. The numbers have to be between 10 and 50 or else the applet shouldn't include them in the 20 but duplicates should be included in the 20. The applet then has to display all the numbers except for duplicates. example:
    user inputs:
    10,11,12,13,14,15,16,16,16,17,18,19,20,20,20,21,23,24,25,26
    applet detects that 20 numbers have been entered and displays them exluding duplicates:
    10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26
    If the user imputs a number like 72 I need to make it alert them that the number was not in the 10-50 range and not add that number to the total 20.
    I'm not asking anyone to do this for me, I'm just asking for tips on where to get a good start.
    Thanks!

    //i haven't tryed that code, and it might not work
    // anyhow, just in case, i'll also say that this is not an applet
    public class NoDublicates {
    public static void main(String[] args) {
      if (args.length < 20) {
       System.out.println("usage:\njava NoDublicates "
         + "<and 20 space separated numbers from 10 to 50 here>");
       System.exit(1);
      byte[] nums = new byte[args.length];
      int i = 0;
      for (int j = 0; j < args.length; j++) {
       try {
        int temp = Integer.parseInt(args[j]);
        if (temp <= 50 && temp >= 10) {
         nums[i++] = temp;
       } catch (NumberFormatException nfe) {
        // very bad exception, i think i'll ignore it
      if (i != 20) {
       System.out.println("it seems that i didn't get exactly 20 "
        + "parseable numbers as arguments, let's exit now.");
       System.exit(1);
      java.util.Arrays.sort(nums);
      int old = 0;
      for (int j = 0; j < 20; j++) {
       if (nums[j] != old) {
        System.out.print(nums[j] + " ");
       old = nums[j];
    }

  • Need help with saving Premiere files to work with any update

    Hey everybody,
    I've been editing with Premiere for a while now and I haven't really had too many issues until now. I live on campus at school and they just opened up a new Library with extensive Mac Pro editing stations, some with 4K monitors! The problem is that the school is not updating the software. So I am running the latest version on my Macbook Pro, but when I try and open the files on the library computers, it tells me something like, "Cannot open file because file was saved on a newer version." Now I know it seems obvious that I should just stick to my computer, but it's nice having a much faster editing station with 27"+ screens. Because the library is so new, they are having trouble keeping up with all the updates and they don't seem to plan on updating them except every semester. So, are there any workarounds? Can I save my files as a more multi-platform file?

    I would take your computer back to the earlier version the college uses, there are workarounds to go back versions but they are not perfect.

  • I need help with saving all of the photos and videos on my iPhone.

    When I access the screen that has Photos, Shared, and Albums and I click on Photos, there are more photos there than the phone is counting that
    I have on my iPhone. How do I save all those photos or put them onto my computer? I have saved the photos it will let me but I cannot access the photos from more than 2 years ago. Also my phone says I have 43 videos but only 10 save.
    Also, when I upgrade and switch to a newer iPhone, will I see all those photos from the whole history of my phone, will I see all 43 videos, and all my iMessages and SMSs?
    Thank you.

    Hi Sharon,
    The best thing for you to do is 2 things.
    When you purchase a new device(whether it be a iPhone, iPod or iPad)
    1) Perform a full backup of your old device via iTunes. This will save contacts, calendars, photos, text messages, emails, apps in folders how you left them, music, videos, podcasts etc. Note it won't import your photos unless you tell it to.
    1.1) When you get your new device it will ask whether to set up as a new device or from a backup, select from backup and your new phone will look and be exactly the same as your old one, same settings etc.
    2)[optional] I personally like to backup my photos to iPhoto on my mac once a month. When  it reaches the end of the library it asks whether to delete originals or not. If you hit no it doesn't change the photos on your device and you have a copy in your iTunes library. This is handy if you want to use photos from your phone on your mac.

Maybe you are looking for

  • Ctrl and left click not working in DW CS5

    When Im working in design view for some reason my links are not working when I press ctrl and left click. To make them work I have to right click and select follow link. Its not a major problem because I can still carry on, but its annoying!

  • Can't open ACR files in CS4 - HELP!

    I have a Canon EOS 1000D and am using Photoshop CS4. Every time I try opening it through PS I have a pop-up saying "could not complete your request because Photoshop does not recognize this type of file". And the option to "open in camera raw" in bri

  • XML mapping, PDF output

    Hi! I am working with the latest JDeveloper release. Does JDeveloper have a tool to create custom layouts from xml data and print(output) the results as a pdf file?

  • KM Document Iview Source Code

    Hello all, The standard KM Document Iview needs to fill manually value for property "Path to Document". I would like to make it dynamic by getting that Path value from a backend system. Is there any way to get the source code of KM Document Iview? Th

  • Why when I export photos from I photo to the desk top , and then to a CD they end up as alis  and some are not really there?

    Why when I export photos from I photo to the desk top , and then to a CD they end up as alis  and some are not really there?