New modification problem(Array)

OK I had a previous code here a while back and it worked,.then i had to modify it to hold data,so i hit the books hard trying to figure it out.The program, Netbeans is wanting the Merch constructor to have a class of its own and i know that it is incorrect. I have switched the data entered to all double except the string and still error comes up. Please help me understand whats going on thanks.
package inventory2;
public class Merch
public static void main(String args [])
    double total;
    Merch prodArray[];
prodArray = new Merch[4];
prodArray[0] = new Merch("Computer",(double)8.0,(double)86.0,(double)79.95);
prodArray[1] = new Merch("Printer",(double)9.0,(double)68.0,(double)355.00);
prodArray[2] = new Merch("Apple",(double)1234.0,(double)10.0,(double)32.32);
prodArray[3] = new Merch("Baseball",(double)12345.0,(double)11.0,(double)20.32);
      for (int counter = 0; counter < 4; counter++)
         System.out.printf(Merch[counter].toString());
      total = (Merch[ 0 ].getTValue() +
               Merch[ 1 ].getTValue() +
               Merch[ 2 ].getTValue() +
               Merch[ 3 ].getTValue());
      System.out.printf( "The total value of the inventory is: $%.2f\n\n", total );
package inventory2;
public class Inventory2 {
    public class inventory2
          private String name;
          private double cost;
          private double amount;
          private double id;
          public double total;
          public inventory2(String name, double cost,double amount, double id)
                    this.name = name;
                    this.cost = cost;
                    this.amount = amount;
                    this.id = id;
          public String getName()
                    return this.name;
          public double getCost()
                     return this.cost;                 
          public double getAmount()
                     return this.amount;
          public double getId()
                     return this.id;
          public double getTValue()
              total = cost * amount;
              return amount;
   @Override
   public String toString ()   
        String formatString    = "Product Name : %s\n";
        formatString          += "ID Number : %d\n";
        formatString          += "Amount of units on hand : %d\n";
        formatString          += "Price per unit : $%.2f\n";
        formatString          += "Total value of  : $%.2f\n\n";
        return (String.format ( formatString, name, id, amount, cost, getTValue()) );
}

Error
Compiling 2 source files to C:\Documents and Settings\\My Documents\NetBeansProjects\Inventory2\build\classes
C:\Documents and Settings\\My Documents\NetBeansProjects\Inventory2\src\inventory2\Merch.java:15: cannot find symbol
symbol  : constructor Merch(java.lang.String,double,double,double)
location: class inventory2.Merch
prodArray[0] = new Merch("Computer",8.0,86.0,79.95);
C:\Documents and Settings\\My Documents\NetBeansProjects\Inventory2\src\inventory2\Merch.java:16: cannot find symbol
symbol  : constructor Merch(java.lang.String,double,double,double)
location: class inventory2.Merch
prodArray[1] = new Merch("Printer",9.0,68.0,355.00);
C:\Documents and Settings\\My Documents\NetBeansProjects\Inventory2\src\inventory2\Merch.java:17: cannot find symbol
symbol  : constructor Merch(java.lang.String,double,double,double)
location: class inventory2.Merch
prodArray[2] = new Merch("Apple",1234.0,10.0,32.32);
C:\Documents and Settings\\My Documents\NetBeansProjects\Inventory2\src\inventory2\Merch.java:18: cannot find symbol
symbol  : constructor Merch(java.lang.String,double,double,double)
location: class inventory2.Merch
prodArray[3] = new Merch("Baseball",12345.0,11.0,20.32);
C:\Documents and Settings\\My Documents\NetBeansProjects\Inventory2\src\inventory2\Merch.java:22: cannot find symbol
symbol  : variable Merch
location: class inventory2.Merch
         System.out.printf(Merch[counter].toString());
C:\Documents and Settings\\My Documents\NetBeansProjects\Inventory2\src\inventory2\Merch.java:25: cannot find symbol
symbol  : variable Merch
location: class inventory2.Merch
      total = (Merch[ 0 ].getTValue() +
C:\Documents and Settings\\My Documents\NetBeansProjects\Inventory2\src\inventory2\Merch.java:26: cannot find symbol
symbol  : variable Merch
location: class inventory2.Merch
               Merch[ 1 ].getTValue() +
C:\Documents and Settings\\My Documents\NetBeansProjects\Inventory2\src\inventory2\Merch.java:27: cannot find symbol
symbol  : variable Merch
location: class inventory2.Merch
               Merch[ 2 ].getTValue() +
C:\Documents and Settings\\My Documents\NetBeansProjects\Inventory2\src\inventory2\Merch.java:28: cannot find symbol
symbol  : variable Merch
location: class inventory2.Merch
               Merch[ 3 ].getTValue());
C:\Documents and Settings\\My Documents\NetBeansProjects\Inventory2\src\inventory2\Merch.java:27: incompatible types
found   : java.lang.String
required: double
               Merch[ 2 ].getTValue() +
10 errors
BUILD FAILED (total time: 0 seconds)

Similar Messages

  • Pdf form in read-mode for the users and...allowing me to save my new modifications

    I wanted to save a modification in my pdf form. Unfortunally, it was opened by another user in read-only mode.
    When I tried to save my new modifications, my screen pops me up the classic error message: cannot not save because it is opened in read....
    The form is stored in network shared drive and I am the owner. The users have the read only permission.
    I open it with Acrobat Pro X and users open it with Adobe Reader XI. Both sofwares are setted with the enable protected mode and javascript disabled,
    I tried to not use the preview mode in Windows explorer without succes.
    Is my problem a bug or is it the normal way abobe acrobat works ?
    Thank you for any replyer !

    Hello Gkaiseril,
    Thank you for your fast reply !
    I am not at my office right now, however I am pretty sure in the Word case, I will be able to edit.
    During my problem, I checked in the File manager on the server side (windows 2003 r2 sp1 x64). The reader had not write permission on the file, and I am the only owner with the full permissions.

  • Was just loading indesign and cannot start it. seem to have no rights for some presets. i deinstalled and installed new, same problem. help!

    was just loading indesign and cannot start it. seem to have no rights for some presets. i deinstalled and installed new, same problem. who can help?

    Not easy if vital information is missing. Sometimes it seems like people are using the internet the first time...
    What version of Indesign?
    What OS? "Rights" sounds like Windows
    What is happening when starting it?
    If Windows, where was it installed?
    If Windows, do you have admin permissions?

  • Creating String frm new String(charBuffer.array()) Vs charBuffer.toString()

    Whats the difference in creating String from CharBuffer by using array and by using toString() ?
    When ever i have some UTF-8 chars in my file (""someFile"), String created from new String( charBuffer.array()) appends some extra null/junk charaters at the very end of the file.
    How ever when i try charBuffer.toString() its working fine.
    For simple ASCII i.e ISO-*** charset both methods are working fine.
    Please see below code for reproducing. Here "someFile" is any text file with some UTF-8 characters.
    public char[] getCharArray()
    throws IOException
    Charset charset = Charset.forName("UTF-8");
    CharsetDecoder decoder = charset.newDecoder();
    FileInputStream fis = new FileInputStream("someFile");
    FileChannel channel = fis.getChannel();
    int size = (int) channel.size();
    MappedByteBuffer mbb = channel.map(FileChannel.MapMode.READ_ONLY, 0 , size);
    CharBuffer cb = decoder.decode(mbb);
    channel.close();
    fis.close();
    return cb.array();
    public String getAsString()
    throws IOException
    Charset charset = Charset.forName("UTF-8");
    CharsetDecoder decoder = charset.newDecoder();
    FileInputStream fis = new FileInputStream("someFile");
    FileChannel channel = fis.getChannel();
    int size = (int) channel.size();
    MappedByteBuffer mbb = channel.map(FileChannel.MapMode.READ_ONLY, 0 , size);
    CharBuffer cb = decoder.decode(mbb);
    channel.close();
    fis.close();
    return cb.toString();
    String fromToString = getAsString();
    String fromCharArray = new String(getCharArray());

    Whats the difference in creating String from CharBuffer by using array and by using toString() ?array() returns the entire backing array regardless of offset and position. toString() takes those into account.
    When ever i have some UTF-8 chars in my file (""someFile"), String created from new String( charBuffer.array()) appends some extra null/junk charaters at the very end of the file.More probably you haven't filled the array.
    How ever when i try charBuffer.toString() its working fine.So there you go.

  • New year problem? - files 'deleted'

    i open up an aw file - make changes - try to save - get a window that says file has been deleted - cannot save as either - and other funny garbled window mesages appear when i try and open other aw docs - evrything else is fine
    seems like it could be some sort of new year thing -
    any ideas what to do

    New! Re: new year problem? - files 'deleted'
    Posted: Jan 1, 2006 10:33 AM in response to: heidig
    Reply Email
    Hi Heidig,
    Welcome to the discussions and the AppleWorks Forum.
    It's unlikely that this is a "New Year's" issue. The most probable cause is a corrupted preferences file.
    Check Peggy's post here:
    http://discussions.apple.com/message.jspa?messageID=607287&ft=y&amp;#607287
    Regards,
    Barry
    For future reference: Using the search feature can lead to a quick answer to many problems. For this one, a search, restricted to the AppleWorks forum, using "has been deleted" (without the quotes) brought up four posts on this topic, including a reference by Peggy to her User Contributed Tip, on the first page of results.

  • XML News content modification problem in Portal application

    Hi,
    We are trying to update the xml news content in Portal application with KM API.
    We are getting following exception while updating the content.
    javax.xml.transform.TransformerException: Namespace fixup failed. Prefix 'xsi' used in attribute 'xsi:noNamespaceSchemaLocation' is not declared anywhere
    Please let me know what's to be done
    Thanks

    Hello,
    I faced the same problem in a similar implementation: Message "Namespace fixup failed. Prefix 'xsi' used in attribute 'xsi:noNamespaceSchemaLocation' is not declared anywhere".
    When looking at the attributes of the org.w3c.dom.Document, I saw that the namespace URI of xsi was already null after parsing.
    The solution which made it work for me was
    factory.setNamespaceAware(true);
    before parsing the XML text. The URI of xsi was then the one provided by the document.
    P.S.: Unfortunately, the error message did not pop up in this test code:
    package mytests;
    import java.io.StringReader;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Result;
    import javax.xml.transform.Source;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import junit.framework.TestCase;
    import org.w3c.dom.Document;
    import org.xml.sax.InputSource;
    import com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl;
    public class XmlFormsHelperTest2 extends TestCase {
        Document doc;
        String xmldoc =
            "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
                + "<News_Header_v2 xmlns:xf=\"http://www.sapportals.com/wcm/app/xmlforms\" xmlns:xsi=\"http//www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"/etc/xmlforms/News_Header_v2/btexx_News_Header_v2-Schema.xml\">"
                + "<text>This is the main text</text>" + "</News_Header_v2>";
        protected void setUp() throws Exception {
            super.setUp();
        public void testToDoc() throws Exception {
            Document doc = setupDocumentSap(xmldoc);
            assertEquals("News_Header_v2", doc.getDocumentElement().getTagName());
            assertEquals("This is the main text", doc.getDocumentElement().getFirstChild().getTextContent());
        public void testFromDoc() throws Exception {
            Document doc = setupDocumentSap(xmldoc);
            String actual = xmlToString(doc);
            assertEquals(xmldoc, actual);
         private Document setupDocument(String xmltext) throws Exception {
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            factory.setValidating(false);
            factory.setCoalescing(true);
            DocumentBuilder builder = factory.newDocumentBuilder();
            return builder.parse(new InputSource(new StringReader(xmltext)));
        private Document setupDocumentSap(String xmltext) throws Exception {
            DocumentBuilderFactory factory = new DocumentBuilderFactoryImpl();
            factory.setValidating(false);
            factory.setCoalescing(true);
            //factory.setNamespaceAware(true);
            DocumentBuilder builder = factory.newDocumentBuilder();
            return builder.parse(new InputSource(new StringReader(xmltext)));
        public static String xmlToString(Document xmlDocument) throws Exception {
            Source xmlSource = new DOMSource(xmlDocument);
            StringWriter stringWriter = new StringWriter();
            Result outputTarget = new StreamResult(stringWriter);
              TransformerFactory.newInstance().newTransformer().transform(xmlSource, outputTarget);
            return stringWriter.getBuffer().toString();

  • Kernel Panic when using a new RAID 5 array

    I recently set up a new Sans Digital 5 disk 7.2TB hardware RAID 5 array that's connected to a Sonnet Tempo-X eSATA 4+4 PCI-X card which has been updated to the latest drivers. The same card supports a number of JBOD enclosures that run as mirrored RAIDs under SoftRAID 4.0. My system is a 2.7Ghz DP Tower.
    Upon trying to copy to the new RAID 5 volume I encountered a kernel panic and system freeze complete with wailing fans. After a few system restarts and a call to Sans Digital I tried to connect the RAID via USB upon the recommendation of tech support. Rather than causing a crash while copying I received an error message in the copy progress window that said that some files were locked and the process could not be completed and the RAID was no longer mounted in the finder.
    I called Sans Digital back and they said it was probably a defective enclosure. I have just received a new one and have put that into service. All seemed fine until, when I was 30GB into a 900GB copy, the system froze. I have also tried to copy fewer files (400GB) and still get a Panic. When the RAID is idle there does not seem to be a problem. The last time the problem occurred the copy progress bar hung but the system did not fully lock up. The LEDs on the front panel of the RAID enclosure were flickering rapidly but no data was copying from my other drive. I turned off the RAID and was able to use my mouse again and restart my machine with a normal restart.
    My system is running OS 10.5.8. When the RAID is off my computer runs fine.
    Not sure what to try next. Any help would be appreciated - Thank you.

    Hi-
    I'd be interested to know if Sonnet has any comments regarding the issue.
    In Utilities/Console/Logs, there should be some indication of what is occurring when the crashes occur.

  • [BUG]: Dll modifies input array constant

    Hi,
    Not really an important one, but some of you (Ben might like it... Tested
    in LV6, 6.1, 7.0 and 7.1.
    When a dll function modifies more (1d or 2d) input arrays, one constant is
    used to initialize them and less then all indicators are wired, LV
    overwrites the constant values...
    To reproduce this, I created a two dlls (one in assembler and one in
    LabVIEW, assembler one is attached). The dll fills the array with the number
    2.
    Run the VI, update the diagram (close and open again, or scroll). The values
    in the constant array now have the same values as the output array!
    This behavior is reproducible with (at least) 1d and 2d arrays, and (at
    least) U32 and DBLs.
    I'm sure other array data types (SGL, U8, I8 etc.) s
    how the same behavior,
    but pointers to scalar values do not. Perhaps strings also do this?
    Try putting a flat sequence frame around it, and put a few seconds wait
    before and after it. You can see the constant changing while the vi is
    running.
    Regards,
    Wiebe.
    [Attachment Callbug.dll, see below]
    [Attachment Callbug.vi, see below]
    Attachments:
    Callbug.dll ‏3 KB
    Callbug.vi ‏13 KB

    Ben,
    The topic from the advanced course does seem to be describing this. So this
    behavior doesn't seem to be a bug. I couldn't find anything about this in
    the "Using External Code in LabVIEW" manual.
    When pointers to values are used, the constants are not updated, so that is
    inconsistent, but it does say "may receive", so that is covered...
    Perhaps the only bug is the fact that the block diagram is not refreshed
    properly, after the values are changed... Just kidding...
    Next question is how to make use of this?
    Regards,
    Wiebe.
    "Ben" wrote in message
    news:50650000000500000078D30100-1079395200000@exch​ange.ni.com...
    > Hi Wiebe
    >
    > Your question reminds me of a phrase from proverbs
    >
    > "A wise man goes into his store house and brings forth treasures both
    > old and new".
    >
    > I was not able to find documentaion on the the call library function
    > that talks about this issue but I did find the following in the
    > "LabVIEW Advanced 1 Course Manual, August 1998 Edition, part number
    > 321366C-01 page 242".
    >
    > "If you do not wire an indicator to the output terminal of a terminal
    > pair, LabVIEW assumes that the CIN will not modify the value you pass
    > to it. If another node uses the input data, LabVIEW does not make a
    > copy of the data.
    >
    > Note: If you don't wire the output terminal, the source code should
    > not modify the value passed into the terminal. Nodes connected to the
    > input terminal wire may receive the modified data.
    > "
    >
    > This topic brought our class to a stand still when we(those who were
    > still awake) realized that data could flow backwards through a wire!
    >
    > I believe the behaviour you have observed is correct and the quote I
    > cited above.
    >
    > I will venture a guess that the requirement from the CLA exam
    > "CLD-VPP-03-04 ...Review a LabVIEW application for run-time behavoiur
    > and memory management issue, ....Destructive and non-destructive
    > buffer reads on branched wires"
    >
    > had the behaviour in mind.
    >
    > I posted a Q re:this req years ago but never got a definative answer.
    >
    > All of the above is just my opinion.
    >
    > I would love to hear from others.
    >
    > What do you think?
    >
    > Ben
    >
    > BTW: I do not think they teach that anymore.

  • Modification of Array contents

    I have a data array of 22 columns and typically 4000 rows. The data in the array is generated by a towed body and  occasionally has corrupt rows of data.  There can be several isolated groups of corrupt data.  The corrupt data is easily detected as a transient in an otherwise slowly changing data stream.
    The user would like to review and modify the contents of the array to either remove the corrupt rows and/or to interpolate from the last good data to the next good data,
    I can identify the corrupt rows and generating the interpolating array to replace the corrupt data.   I can find no way of inserting the new data back into the original array or even generating a single modified array containing all the modifications.  I can generate a new array for each modification but that is not what I need.  Every attempt to modify an existing array gives the error message "Member of a Circle".
    Is this is due to my not understanding Labview?
    I am a infrequent user of Labview.

    here is my way:
    the array is stored in a shift register of a while loop 
    one additional copy is made to cancel the changes
    you can add new events (or better copy the 'replace' event) and add other functions
    you don't have to use an event structure...
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
    Attachments:
    manipulate array.vi ‏49 KB

  • Neo platinum new system problems

    hi guys after having help with issues from people here with my old sys decided to upgrade.
    so now have a neo platinum
    amd64 clawhammer 3200+
    twin maxtor sata
    twin maxtor ide
    used to run twin sata as mirrored array on my ilsr delta no probs,
    but cant seem to set up with new system.!!!!!!!!
    ive managed finally to load win xp on one hd , after various attempts to load it with 2 sata drives connected and a complete failure ( did the whole f6 thing to load prmise drivers as before)
    but i want to connect my second sata drive and run as a mirrored array
    do i nead to load promise drivers etc. ???
    do i just set up raid array in the msi bios ?????
    have read lots of posts but not got anything really definative .
    spent 6 hours last night tryin to get windows on 1 drive so dont wanna mess it up !!
    also the temp thing worries me a bit core centre says 65 c !!!!!!!!!!!
    water cooling sensor on water block says 32 c and water temp is 30 c case high 20s c.  bios also says in the 60`s c.  !!!!!! have not yet flashed bios waitning till system running properly first. any ideas,
    again have read posts but all acknowledge there is a problem with temp sensing but is there a fix ?
    thx.

    ah sorted !!!!
    why didnt i have section 5 in the manual ?????????( or anything past 3)
    after reading online and realising the drivers were on the disc all fine,
    but why do you have to reinstall windows when goin thru the f6 process ?

  • New RAM problems with my Dual G4 1.25 MDD

    Howdy I've had my Dual G4 1.25 MDD for 2 years and love it. I got it with 1GB RAM, thinking I was set. For Christmas I wanted to Upgrade the RAM to 2GB. from My PowerMac G4 Manual I knew I needed 2x 512MB PC2700 DDR333 CL2.5 SDRAM DIMM's.
    I went to DealRam (part of DealMac) and found 18004memory.com The price seemed great $39 per stick. I ordered it and within a week got 2x 512MB DIMM's. Problem was it was the Wrong RAM spec. I tried that RAM in my Mac 30 different ways and Everytime the computer either wouldn't boot, or it would suffer Kernel Protection Faults. One time it did boot up but the RAM only recognized as 2x 256MB DIMM's. I called the company, got an RMA and returned the RAM, this time they sent me 2 replacement DIMM's.... for a POWERBOOK, SO-DIMM's. I returned it again and finally Got from them the
    2x 512MB PC2700 DDR333 CL2.5 SDRAM DIMM's. They call it Hyperspeed RAM. Anywho, I powered down let the system cool over night and in the morning, popped it open, put the RAM in the 2 open slots DIMM2/J23 & DIMM3/J20. closed it back up and powered up. Everything was snappier, the boot was quicker and I checked About this Mac, it says 2GB. Apple System Profiler showed all 4 DIMM's and I thought everything was fine.
    Computer ran great for hours, no issues. Everything seemed quicker. Computer went to sleep overnight, next day woke from sleep and Tried to use iTunes and during an extensive sort for Songs, the system Locked up. Nothing would work. Had to force restart. this time I tried to Run my favorite online Game, WoW and after it loaded and I started to play, within 5 mins the whole game locked up. The audio sound went into a sort of Loop, I couldnt force quit and had to force reboot. This happened several times. I finally decided to Run the Apple Hardware Test. The Quick test locked up after running 2mins. I let it sit for 1hr just in case it was still doing something and the progress bar and time never progressed. So i forced reboot, ran Test again this time as Extended test. at 8 min & 31 sec the test stopped and I got an Error Code, this time I wrote it down "2MEM/2/4: DIMM3/J20."
    I guess that DIMM failed. I shutdown, popped open case, and removed DIMM3/J20 leaving the Original 1GB RAM and One of the 512MB Upgrades. I rstarted the Test again and Ran the Extended Test once more. It ran for 27mins & 24 secs and everything passed. So. 1.5GB is better than just 1GB. I powered down and powered back up to try and play WoW. Within 5 mins of loading game to play, everything locked up again.
    So I took both of the new RAM out and left the Original 1GB RAM and ran Test everything was great no Errors. Rebooted, and went onto WoW again and was able to play for several hours. I quit game and shut down for night.
    I have since Tried the 2x 512MB DIMM's in over 10 different variations in the computer with and without the original RAM and everytime I run a high end program or game (WoW, iTunes, and Photoshop), I get lock ups, crashes, and other screen weirdness.
    I dont want to have to Return the Memory again. I am already out over $15 from s/h with RMA's.
    PLEASE Any ideas what to do?
    1 thing I noticed the RAM gets very very hot, when I've powered down tand removed the new RAM. I wonder if there is a cooling issue?
    Anytime I put the Original 1GB RAM in, I dont have problems!

    Hi lz3broc,
    Sounds very much like faulty RAM to me, I'm afraid. I'm not sure about the temperature it's running at, but if the surrounding DIMMs aren't having a problem then I would definitely point the finger at those new memory sticks not being up to scratch.
    If you were convinced it was temperature related then you could always try putting heat spreaders on the memory to help with cooling, but as these stick (semi-permanently) to the RAM then you would never be able to return them.
    My personal opinion is that you should send the RAM back and buy two new DIMMs from Crucial Technology. I only ever buy RAM made by them and I've never had a problem with it - it's the same stuff Apple themselves generally use and works a charm every time. Probably not the news you wanted to hear, but that's probably the only way you're going to get a stable machine with 2GB RAM.
    Hope that helps,
    Andy.
    PowerMac G4 Dual 1.50GHz   Mac OS X (10.4.4)   Liquid Cooled

  • Every once in a while when I open my mail or a page I get nothing but strange lines of symbols.  Many of the symbols are black triangles with question marks in the center.  I completely reset it like new, but problem still exists

    Every once in a while when I open my mail or open a page I get lines of strange symbols like black triangles with question marks in the center.  I have reset the ipad2 to new condition but the problem still exists.

    A reset does not make tthe iPad "like new."
    First, let's ensure that we agree on just what is a Reset...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • Lightroom 5 Transfer to new HD problems

    I recently had a HD failure but had my LR catelogue backed up on Time Machine.  Also all of my photos were on external HD. After slowly sorting through a number of problems transfering all of my back up documents I thought I was all sorted out.  I have been working in LR 5.  A number of photos, but not all,  have the "!" mark.  I seem to be able to work in the development module and export photos without difficulty.  Today was the first time I tried to import new photos into my "My Lightroom Photos" folder which sits on my external HD.  When I tried to import and add a new folder I was prompted "This location is read-only"  Next I looked on my computer HD under Pictures.  There I have a Lightroom folder with my catelogues.  Now I see the catelogues are grayed out. Is this normal? I have been able to back up my work when quiting LR.  I am concerned that the Time Machine backup was not copied correctly to my new HD.  This was the case with my documents.  I had to redue this action by first copying my documents to another ext. HD and then importing it to my new internal HD. 
    Do you think this might be the same problem with the pictures folder? 
    What do I do next?   

    Debra, at least some of your issues relate to red/write permissions on that external drive
    R-click on that drive and then select 'info'.
    Then look for the read/write permissions.
    What you will find is that you currently have read but not write privileges.
    Change you account to have both read/write permission.
    That should sort the import issue.
    You do need to relink those images by R-clicking on them and then anvigating to the appropriate image.
    It may be easier to relink the folders or whole hierarchies if the folders are also greyed out.
    I am not sure what significance the greyed out catalog folders hold but I am yet learning the ins-and-outs of Mac OS.
    Tony Jay

  • Puzzle Game and new Game Problem

    Hello Java Programmers,
    Once again I have encountered a problem with my ongoing puzzle game. I have completed it all. Now I want my user to be able to start a new game in after they win. I tried repaint and update method with JFrame but it deosn't reshuffle the buttons. How can I do that. The code geos below.
    [/b]
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.JOptionPane;
    public class PuzzleGame{
       String[] btn_Labels = {"1","2","3","4","5","6","7","8","9",
                            "10","11","12","13","14","15"," "};
       String[] labels = {"1","2","3","4","5","6","7","8","9",
                            "10","11","12","13","14","15"};
       private final int ONE = 1, TWO = 2, THREE = 3, FIVE = 5;
       private boolean WIN_STATE = false; 
       private JButton b[];
       public String clicked_btn_label = "";
       //Constructor method.
       public PuzzleGame(){
          showSplashScreen();
          initGame();
       public static void main(String args[]){
          PuzzleGame game = new PuzzleGame();
       //When a new Game started labels of buttons are shuffled using this method.
       public void shuffleNumbers(){
          String temp = null;   
          for(int j=0; j<16; j++){
          int k = (int)(Math.random()*16);
          temp = btn_Labels[j];
          btn_Labels[j] = btn_Labels[k];
          btn_Labels[k] = temp;           
       //Game initialization method.
       public void initGame(){
          b = new JButton[16];
          JPanel p = new JPanel();
          JFrame frame = new JFrame();
          shuffleNumbers();
          for(int i=0; i<16; i++){
             b[i] = new JButton();
             b.setText(btn_Labels[i]);
    b[i].setActionCommand(""+(i+1));
    for(int i=0; i<16; i++){
    b[i].addActionListener( new ActionListener(){
    public void actionPerformed(ActionEvent e){
    clicked_btn_label =(String)e.getActionCommand();
    doSwapping();
    checkWin();
    p.add(b[i]);
    p.setLayout(new GridLayout(4,4));
    frame.getContentPane().add(p);
    frame.addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent e){
    System.exit(0);
    Dimension dm = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (dm.width - 230)/2;
    int y = (dm.height - 240)/2;
    frame.setBounds(x,y,320,240);
    frame.setSize(340,240);
    frame.setVisible(true);
    //This method swaps the clicked button with the empty button if it doesn't violate rule.
    public void doSwapping(){
    int num = Integer.parseInt(clicked_btn_label);
    String temp;
    if( (num + ONE <= 16) && b[num].getText() == " " && num % 4 != 0){
    temp = b[num].getText();
    b[num].setText(b[num-ONE].getText());
    b[num-ONE].setText(temp);
    else if((num - TWO >= 0) && b[num-TWO].getText() == " " && ((num - ONE) % 4 != 0)){
    temp = b[num-ONE].getText();
    b[num-ONE].setText(b[num-TWO].getText());
    b[num-TWO].setText(temp);
    else if( (num + THREE < 16) && b[num+THREE].getText() == " "){
    temp = b[num-ONE].getText();
    b[num-ONE].setText(b[num+THREE].getText());
    b[num+THREE].setText(temp);
    else if( (num - FIVE >= 0) && b[num-FIVE].getText() == " "){
    temp = b[num-ONE].getText();
    b[num-ONE].setText(b[num-FIVE].getText());
    b[num-FIVE].setText(temp);
    // else{}
    public void checkWin(){
    WIN_STATE = true;
    for(int i=0; i<15; i++){
    if( b[i].getText() != labels[i])
    WIN_STATE = false;
    if(WIN_STATE == true){
    JOptionPane.showMessageDialog(null,"Congratulations You Have won the Game!","You Win",JOptionPane.INFORMATION_MESSAGE);
         initGame();
    public void showSplashScreen(){
    JWindow w = new JWindow();
    JPanel p = (JPanel)w.getContentPane();
    JLabel l = new JLabel(new ImageIcon("splash.jpg"));
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (d.width - 230)/2;
    int y = (d.height - 240)/2;
    p.add(l);
    w.setBounds(x,y,320,240);
    w.setVisible(true);
    try{
    Thread.sleep(10000);
    catch(Exception e){
    w.setVisible(false);
    [/b]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Sorry for violation. I would like to add a menubar to the application containing a single menu button for new game. adding a menubar is simple but how can i reshuffle the buttons using methods like update etc. or any other way.

  • TS4611 Guys if you have these build: 12E3200 and your wifi is dropping, is not the your mid 2013 macbook air, is your router, I solve it by setting up my time capsule as a new network problem solved

    Here is what I have been doing:
    I got my new macbook air 11" two weeks ago, and have been haven problems with wifi connection dropping, I'm using verizon fioz at home, and their router
    I also have a time capsule not set up as a network just join it to my current one.
    After looking online all these days, I though, maybe is the verizon device that is updated..
    I then reset the time capsule, created a new network
    connected my system to the time capsule network, and there it is
    DONE, everything works now.
    So if you are haven the same problem,, that is the fix
    hope that helps.
    Oh  before I did these I try everything, the wifi update from apple don't work it keeps dropping it
    I try everything, so don't and delete the system as some people have done, I read somewhere.
    try my fix hopes that works.
    Message was edited by: rawreviewer

    I have seen lots of issues on Yosemite with Wifi (and have been having issues myself), but yours seem different. It is a pretty new computer, have you tried taking it in under Applecare (if you live somewhere this is convenient)? Maybe you just got a defective wifi card.  I won't defend Apple over this wifi mess, because it really is terrible, but your issue seems not the same as the ones I've read about while researching how to fix mine (unsucessfully....).

Maybe you are looking for

  • Calling EJB with HTML via SERVLET

    Hi, I used a writen example that calls EJB from HTML via SERVLET. Example name is Bonus. The problem I have is that the HTML throw error while calling SERVLET. I dont figure out what seams to be a problem. Someone know? I wonder if the problem is in

  • ITunes 11.1.5 quits unexpectedly on launch

    Hi, I've read the posts on this topic and have confirmed the issue is at the user level by loging in to a different account on my machine and iTunes works. I even tried to see if there is a corruption in one of my files in my music library by startin

  • How to call the url page inside the procedure.

    Hi, I am not exposure in plsql. I am getting some problem in utl_http link. I create a one procedure. The procedure was successfully compiled. But the url page doesnt open.. I attached the procedure, create or replace procedure p(mob number) IS l_pag

  • ITunes starts by itself and won't quit

    I have researched this topic and not found an answer. My system is an imac running 10.5.6 and itunes8. recently itunes launched for no apparent reason. we haven't used it in months. when i quit, even force quit, it immediately relaunches. we have not

  • I want to buy a HP Desktop PC. Please give me a quotation for a PC having the highest configuration.

    I want to buy a HP Desktop PC. Please give me a quotation for a PC having the highest configuration.