Hopeing someone can explain the error im getting

The error I am getting is this:
C:\P2_Methods_DataFile.java:45: cannot find symbol
symbol : method readDataFile(P2_Methods_DataFile.Pack4Int)
location: class P2_Methods_DataFile
fileFlag = readDataFile (myValue);
^
1 error
Process completed.
The code is as follow, im sorry i forget how to make it show up colored
import java.util.Scanner;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
public class P2_Methods_DataFile
// ==================== method main ====================
public static void main (String[] args)
int myAge = 0;
int fileFlag = 0;
// Declare a reference to Pack4Int and set to null
Pack4Int myValue = null;
// Allocate storage for a Pack4Int & assign reference to myValue
myValue = new Pack4Int ();
// Call the readDataFile method to read data from a file
fileFlag = readDataFile (myValue);
// If fileFlag equals 1, the data file exists.
if (fileFlag == 1)
myAge = myValue.get_intValue ();
outputInfo (myAge);
// Always have this output statement at the end of main.
System.out.println ("\n\n\n\n");
return;
// End of public static void mail
// ==================== method readDataFile ====================
METHOD DESCRIPTION:
This method assigns a data file, reads an int value from the data file,
and returns the value through the parameter list.
If the assigned data file exists, the method returns 1 (one).
Otherwise, it returns 0 (zero).
public static int readDataFile (Pack4Int myData_int)
int age;
int dataFileFlag = 1;
Scanner scanInput = null; // Create a Scanner called scanInput.
try
// Assign data file to scanInput
scanInput = new Scanner
(new FileInputStream ("P2_Methods_DataFile.dat"));
// If file assignment is successful, execute the following.
// Otherwise execute catch.
// Input age from assigned data file
age = scanInput.nextInt ();
// Assign age to the object myData_int
myData_int.set_intValue (age);
scanInput.close();
catch (FileNotFoundException e)
System.out.println ("\n\n\n\n"
+ "**** The following data file was not found. ****");
System.out.println
( "**** P2_Methods_DataFile.dat ****");
dataFileFlag = 0;
finally // If file was assigned, free the file.
if (scanInput != null)
scanInput.close();
return dataFileFlag;
}     // End of public static int readDataFile
// ==================== method outputinfo ====================
METHOD DESCRIPTION:
This method prints an outline of program items and then information
about the programmer.
public static void outputInfo (int age)
// Display text in command window.
System.out.println ("\n\n\n\n My First Java Program that "
+ "Uses Methods & Data File Input\n");
System.out.println (" Input Method: ");
System.out.println (" 1. Uses one object parameter.");
System.out.println (" 2. Assigns a data file.");
System.out.println (" 3. Checks the existence of the data file.");
System.out.println (" 4. Reads a value from the data file.");
System.out.println (" 5. Returns teh value to method main using "
+ "a parameter.\n");
System.out.println (" Output Method:");
System.out.println (" 1. Uses one input parameter.");
System.out.println (" 2. Prints outline information.");
System.out.println (" 3. Prints information about the programmer.\n\n");
System.out.println ( " Name: Chase LeBlanc #35");
System.out.println ( " Course: CSC 102.004");
System.out.println ( " Due Date: October 2, 2007");
System.out.println ( " My Age: " + age);
return;
} // End of public static void outputInfo
// ==================== class Pack4Int ====================
CLASS DESCRIPTION:
An object of this type is used as a parameter in a method to return a
value of type int to the calling program.
public static class Pack4Int
private int intValue = 0;
// Method used to assign a value to intValue.
void set_intValue (int value)
intValue = value;
return;
// Method used to get an int value from age.
int get_intValue ()
return intValue;
} // End of public static class Pack4Int
} // End of public class P2_Methods_DataFile

import java.util.Scanner;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
public class P2_Methods_DataFile
//  ====================  method main  ====================
     public static void main (String[] args)
          int myAge = 0;
          int fileFlag = 0;
                  // Declare a reference to Pack4Int and set to null
          Pack4Int myValue = null;
                  // Allocate storage for a Pack4Int & assign reference to myValue
          myValue = new Pack4Int ();
                  // Call the readDataFile method to read data from a file
          fileFlag = readDataFile (myValue);
                  // If fileFlag equals 1, the data file exists.
          if (fileFlag == 1)
               myAge = myValue.get_intValue ();
               outputInfo (myAge);
                  // Always have this output statement at the end of main.
          System.out.println ("\n\n\n\n");
          return;
                  // End of public static void mail
// ====================  method readDataFile  ====================
METHOD DESCRIPTION:
    This method assigns a data file, reads an int value from the data file,
    and returns the value through the parameter list.
    If the assigned data file exists, the method returns 1 (one).
    Otherwise, it returns 0 (zero).
    public static int readDataFile (Pack4Int myData_int)
        int age;
        int dataFileFlag = 1;
        Scanner scanInput = null;     // Create a Scanner called scanInput.
        try
                    // Assign data file to scanInput
            scanInput = new Scanner
                (new FileInputStream ("P2_Methods_DataFile.dat"));
                // If file assignment is successful, execute the following.
                // Otherwise execute catch.
                        // Input age from assigned data file
            age = scanInput.nextInt ();
                        // Assign age to the object myData_int
            myData_int.set_intValue (age);
            scanInput.close();
        catch (FileNotFoundException e)
            System.out.println ("\n\n\n\n"
                    + "****  The following data file was not found.  ****");
            System.out.println
                    ( "****  P2_Methods_DataFile.dat                 ****");
            dataFileFlag = 0;
        finally     // If file was assigned, free the file.
            if (scanInput != null)
                scanInput.close();
        return dataFileFlag;
    }            // End of public static int readDataFile
// ====================  method outputinfo  ====================
METHOD DESCRIPTION:
    This method prints an outline of program items and then information
    about the programmer.
    public static void outputInfo (int age)
                           // Display text in command window.
        System.out.println ("\n\n\n\n My First Java Program that "
                + "Uses Methods & Data File Input\n");
        System.out.println (" Input Method: ");
        System.out.println (" 1. Uses one object parameter.");
        System.out.println (" 2. Assigns a data file.");
        System.out.println (" 3. Checks the existence of the data file.");
        System.out.println (" 4. Reads a value from the data file.");
        System.out.println (" 5. Returns teh value to method main using "
                + "a parameter.\n");
        System.out.println (" Output Method:");
        System.out.println (" 1. Uses one input parameter.");
        System.out.println (" 2. Prints outline information.");
        System.out.println (" 3. Prints information about the programmer.\n\n");
        System.out.println (        "     Name: Chase LeBlanc #35");
        System.out.println (        "   Course: CSC 102.004");
        System.out.println (        " Due Date: October 2, 2007");
        System.out.println (        "   My Age: " + age);
        return;
    }           // End of public static void outputInfo
// ====================  class Pack4Int  ====================
CLASS DESCRIPTION:
    An object of this type is used as a parameter in a method to return a
    value of type int to the calling program.
    public static class Pack4Int
        private int intValue = 0;
                // Method used to assign a value to intValue.
        void set_intValue (int value)
            intValue = value;
            return;
                // Method used to get an int value from age.
        int get_intValue ()
            return intValue;
    }           // End of public static class Pack4Int
}              // End of public class P2_Methods_DataFile
{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • SI have included a clip of the playlist hoping someone can explain what the issue may be.mart Playlist Not Working Correctly

    I set up a smart playlist that seemed to work fine, but now it's playing songs I don't want it to play.  I have placed all my Christmas songs into their own playlist.  I also made rule to eliminate the word Christmas showing up in any other field.  Yet recently, I find Christmas songs being played when I select this playlist.

    Can you send me a PM with the serial number? I'll look into it more. Click here to send me a Private Message.
    - Peter

  • When I try to update my macbook air to the new OS X Maverick it say unknown error and to please try again later. This has been going on for a few days and was hoping someone can help. Thanks.

    When I try to update my macbook air to the new OS X Maverick it say unknown error and to please try again later. This has been going on for a few days and was hoping someone can help. Thanks.

    After I upgraded to Mavericks I was also having this message when I tried to update. There was a previous post about this problem which offered this simple solution which worked for me:
    b0n0b0
    Re: Recently upgraded to Maverick from SnowLeopard. Unable to get updates from App store.
    Mar 15, 2014 9:05 AM (in response to Terence Devlin)
    Got it! Thanx.  What I did was go to my account, check that they had my new ID and Password which they did, then hit reset button. All fixed.

  • Hopefully someone can help.... I have an Iphone 5 and want to create a music video playlist on my phone so then i can play through my apple tv... but when i make a playlist in itunes and try to add it over to my iphone it wont let me sync the playlist...?

    Hopefully someone can help.... I have an Iphone 5 and want to create a music video playlist on my phone so then i can play through my apple tv... but when i make a playlist in itunes and try to add it over to my iphone it wont let me sync the playlist...? I have already added the music videos to my iphone so that is not the problem.... i cant seem to figure out how to make a playlist for them... IE: to make the videos play consecutively in the order i want without stopping after each video and gong back to the list.... this is what i have had to resort to make it work....what i want to do....is be able to make a playlist of videos on my iphone 5....take my apple tv to friends houses and with wifi....set up apple tv and play videos at the party and not have to stand by with the remote and find a new video to play stopping the music between the songs/videos....very annoying....and have spent over 4 hours one day and an hour and a half today on the phone today with a sr. advisor with apple and they have no clue.... this seems sooooo simple.... please somebody that really knows how to do this....i will be indebted forever...............
    Mike

    Thank you for replying.    Yes I deleted the old email address..   

  • When I try to download apps, a message appears saying that to move forward I have to agree to the new terms of the contract, but does not allow me to agree and not low Apps. Someone can explain what is happening?? thank you

    When I try to download apps, a message appears saying that to move forward I have to agree to the new terms of the contract, but does not allow me to agree and not low Apps. Someone can explain what is happening?? thank you

    Delete some stuff to make room on the device.
    iCloud is not local storage and has nothing to do with your situation.

  • Hi my acrobat pro will not open, this is the error I get - "the application  Adobe acrobat pro can't open  -1712

    Hi my acrobat pro will not open, this is the error I get - "the application  Adobe acrobat pro can't open  -1712

    Hi Scott,
    1. What is the version of Acrobat and Operating System?
    2. Have you tried repairing the product? if not then Go to Help -> Repair Acrobat Installation.
    Regards,
    Anoop

  • MAC PRO (Early 2008) RAID CARD ISSUE - SYSTEM FREEZEHello (hopefully someone can shed some light on my issue)  I own as above a MAC PRO (Early 2008) this has a RAID card installed along with two 15k.7 cheetah hdd (320gb) and a spare drive, (which i m

    Hello (hopefully someone can shed some light on my issue)
    I own as above a MAC PRO (Early 2008) this has a RAID card installed along with two 15k.7 cheetah hdd (320gb) and a spare drive, (which i made a regular drive)
    a while ago i had to replace the RAID card battery, so i did this, over a year later the same thing happened again, but as previous just left it and the system seemed fine for ages, until last night i was working in PHOTOSHOP and everything just froze and the screen kind of appeared GREEN, could not do a single thing. So restarted the mac, this time grey screen for ages and a message appeared, (macs version of blue screen) (see attached).
    I restarted the machine and this time a flashing question mark folder!
    could not do a thing.
    so i found my copy of snow leopard and got the computer to run this and at least launch the DISK UTILITY and (Interestingly in the drop down menu RAID UTILITY was also in the menu) but it did not matter which utility i used the (RAID or DISK) neither could see any of drives, just the dvd drive.
    so looked around on you tube and various forums and discovered if i take out the RAID CARD and re-plug the main lead from the RAID card back in to the LOGIC BOARD I would be reverting the MAC to a normal regular non-RAID computer.
    After performing this HARDWARE task and inserting all three HDD, and running the DISK utility from the drop down menu via the SNOW LEOPARD disc.
    (interestingly since the RAID card had been removed the RAID UTILITY  from the drop down menu no longer appeared). running disk utility I can now only see the regular (spare) hdd and DVD Drive, but the two RAID HDD , again, still do not show up DISK UTILITY?
    O.K. so i could chuck out the RAID card (AND RAID HDD) and just go with a regular set-up, and run a back restore from Time Machine on a NEW hdd purchased.
    but what is wrong with the RAID, is the card at fault or are both HDD used for the RAID knackered? can i perform any tests, to see whats what?
    thanks for your help in advanced.

    hello people, the issue was in fact the GRAPHICS card nothing to do with the HDD or RAID system ( although this did cause issues with the RAID system it basically lost its way) below is my replay to another similar  problem some one else had!
    working in photoshop and then everything stopped working and the lot froze! only option was to force shutdown (via button).
    and try to restart, hoping all was fine, this was not the case :-(
    I had the added issue of the RAID card system, that i have, this was confused to say the lease and would not behave or work, causing the start up to hang.
    so i thought the HDD must be bust and the root cause. ( but soon learnt it was not the cause )
    ...bought a new HDD removed the RAID card and replugged the cable from RAID card into LOGIC board, ( making the computer act like any normal non-RAID system). I managed to install the OSX, using the snow leopard disk way. once the mac was running, i started to notice the screen would flicker and started to see 'artefacts'. so i started to reveal my symptoms to the web and forums and soon discovered that my graphics card could be the issue all along?.
    (nvidia geforce 8800gt 2x dvi).
    I read up on that a fix, could be either A. reply the thermal paste, as the card could be over heating or B. stick the card in the oven trick.
    Tried option A. first and nothing still issues, so last night took the plunge carried out option B. and ta da it worked! i even managed to run
    from my new HDD my lasted install OS X, absolutely fine. I then thought, maybe i could repair my RAID so replugged all the HARDWARD back in and
    carried out a disk repair and disk permissions on drives( took a small amount of time), via the SNOW LEOPARD disc - (Disk utilities) and this worked and now have my system working as it was just over 6 days ago.
    what was the cost to get this?  bought a new hdd so 40.00gbp and thermal paste and cleaner kit ( your still need to do this ) search video card trick on you tube.
    and renew thermal paste, approx 15.00gbp, technically i don't need the new HDD, but it was all part of the trial and error way i went. ( i do have extra storage as a result!)"

  • Having major issues with iphone 5 hoping someone can figure it our

    Been having issues since I got my phone seems I'm being redirected to fake websites. It doesn't matter what browser I use but for example when using chrome and I check the security of the website it says your encryption to verizonwireless.com is encrypted with 257 bit encryption however this page includes other resources which are not secure. these resources can be viewed by others while in transit and can be modified by an attacker to change the look of a page. I also get you are not authorized to access this information please see your administrator webmaster for further details. I get error codes all the time 404 not found error-err-aborted I get that sites are either down or may have been moved permanently and then in almost all of my URL's there is always done kind of jargon. I have had the phone replaced 3 times even got a new number and sim one time I've erased it wiped the firmware and reinstalled everything took it to apple they wiped it nothing works. My software looks like I have 7.0.4 but it is actually developer software no one can explain how it is getting on my phone and why we can't get it off please help
    When you could see logs and I would connect to wifi the log would say a wifi picker has been enabled had to add mcdonalds back into our network cache
    When making phone calls the log would show a virtual audio plugin attaching
    There is a bootstrap on my App Store

    Call the senior advisor back, they should have given you their phone number and extention. If not call back, and ask for a senior advisor, they can look up that senior advisor and get a hold of them. Or just start working with a new senior advisor. They may need to set up a ticket for the engeeinering team. You can also ask them for the senior advisor, contact. You should at least have the Case number.

  • Hoping someone can help please. Can't open itunes.

    Hoping someone can help please.
    Whenever I try to start itunes it asks me to accept terms and conditions and then when i click "agree" to continue nothing else happens and it won't open.
    I recently had to re-install itunes as it wouldn't work when i connected my new iphone.
    Any help would be much appreciated as I have been trying to resolve this for weeks and it is getting increasingly frustrating.
    Thanks again!

    Just found the answer on another discussion page. I had to un-install quicktime.
    Thanks anyway!

  • What can be the reason behind getting the Dialer Detail

    what can be the reason behind getting the Dialer Detail
    CallResult = 2 "Error condition while dialing"

    Sorry buddies, for bothering you, without providing enough details.
    We are running Java based ERP for our client, with Oracle Application Server 10.1.3.1.
    OS is Sun Solaris 10
    Database is Oracle 11g
    We found the following errors in /product/10.1.3.1/OracleAS_1/Apache/Apache/logs/error_log file.
    [Mon Jun  8 11:01:41 2009] [error] [client <ipaddr>] [ecid: 1244439100:<server ip>:17034:0:70,0] mod_oc4j: request to OC4J iisapp:8890 failed: AJP error: bad header
    [Mon Jun  8 11:11:36 2009] [error] [client <ipaddr>] [ecid: 1244439685:<server ip>:16312:0:2255,0] request failed: error reading the headers
    [Mon Jun  8 13:25:52 2009] [warn] [client <ipaddr>] oc4j_socket_recvfull timed out
    We have done the following changes recently
    => KeepAlive TImout changed to 5 secs from default 15
    => Changed the MaxPermSize to 512M in opmn.xml
    => Our Max Clients setting changed to 350 from default 150.
    Can someone help us by providing the possible reasons for the occurence of said errors.
    Regards,

  • Hi, i have a user that is working with the Adobe acrobat 9 standard. when he adds a stamp to a PDF that he opens from an Email in Outlook, this is the error he gets. (snapshot in the attached files)

    hi good morning,
    I have a user that is working with the Adobe acrobat 9 standard. when he adds a stamp to a PDF that he opens from an Email in Outlook, this is the error he gets. (snapshot in the attached files)
    can you help us with this problem?

    Hi, thanks for the fast response.
    This is the Extended Font Pack i have installed on the Terminal server.
    what do you mean by properly embedded? how can i check that?
    BR
    Eric Mizrachi

  • After login but before I can access the internet I get a request for my login password so that - aosnotifyd - can access my login key chain. How can I get it to remember my password?

    After login but before I can access the internet I get a request for my login password so that - aosnotifyd - can access my login key chain. How can I get it to remember my password?

    Rephrase your question. Do you mean you keep getting login key chain errors?

  • What table where i can find the errors in Sales Order

    hi,
    what table where i can find the errors in Sales Order. here's my situations, I need to create a abap report of CRM sales order not replicated to R/3 and show what's the error. I can't find the actual error in CRMD_ORDDERADM_H and CRMD_ORDERADM_I. I also tried calling program "CRM_ORDER_READ" but the program doesn't display/returns error's on header and item level.
    please help.
    earl g. faren

    hi,
    what i need is a table where i can find the sales transaction errors. I'm doing a abap report to list down sales transactions with error(s). I checked the table CRMD_ORDERADM_H and CRMD_ORDERADM_I but there's no field for transaction errors.
    please help me find a table where I can link the tables above to get the specific errors for a sales transactions.
    thanks alot.

  • I Cannot get my organizer to work for Elements 13. "A problem caused the program to stop working correctly. Windows will close the program......" is the error I get. I've uninstalled and reinstalled the program and tried various other things based on the

    I Cannot get my organizer to work for Elements 13. "A problem caused the program to stop working correctly. Windows will close the program......" is the error I get. I've uninstalled and reinstalled the program and tried various other things based on the MANY other complaints with this same issue and nothing is working. How can this problem be corrected?

    Hi,
    Which operating system are you running on?
    Are you upgrading from a previous version of Photoshop elements or is this your first?
    Are you trying to load the organizer or the editor or do both fail?
    Brian

  • Could someone please explain the difference between Projects Intelligence and Projects Analytics?

    Could someone please explain the difference between Projects Intelligence and Projects Analytics?
    Thanks,
    Adrien

    Older iPads got 3G service and were called Wi-Fi + 3G. Newer iPads can connect to faster cellular networks and those are given different names by the major carrier so to simplify things Apple calls the newer models Wi-Fi + Cellular.
    iPads with 3G or Cellular are NOT used like a mobile phone. They do not make phone calls or send SMS or MMS text messages, They do connect to the data network and can connect to the web.

Maybe you are looking for

  • Have OSX & OS 9. Can't change chooser in OS 9 for new printer.

    Hi - Here I am hours later. Please help. I have a new printer ip4200. I am running both OS X and OS 9. All is well with OS X and printer, but I can not get the ip4200 to show up on my OS 9 Chooser. It shows 4 items: AppleShare, FaxPrint, LaserWrier8

  • How to make a loop run for specific period of time ?

    hello ! i'm new to labview and could'nt found how to make a loop run for 2 sec for example, and then to exit. Solved! Go to Solution.

  • Adobe License

    Hello , We are trying to install NW 2004s - here are the details 1. AS Java  on 64 bit windows server 2003 2. AS Java on 32 bit windows server 2003 ( to use Adobe document services as it doesnt not support 64 bit environment ) In this scenario , Do w

  • Everytime i try to update software it says unsucessful. what could be the prob?

    EVERYTIME I TRY TO UPDATE SOFTWARE IT SAYS UNSUCESSFULL.WHAT CAN I DO TO FIX THIS SEEMS TO BE WORKING FINE BESIDES THAT?

  • No applicable data found - Error in BEx

    Experts, I have data (material, qty and amt related with future commitments) in cube. I see that data activated in cube and available for reporting. But when I execute report (no filters) I can see that some material is no displayed and if I run repo