Can this train run any faster...?

Hello virtual suggestion givers!
Everything's working pretty ok when I enter small values while instantiating Train class, the thing is that when I enter large values about lets say
new Train(5,96,5,10) its giving me IndexOutOfbounds exception or acting weirdly.
I think there might be some problem in my Train class...
should ArrayList be used instead of LinkedList?
what's the flaw in the code?
Is there anything redundant in this code?
I had lot's of time this time in my hand, so I didn't have to come in here frequently.
==========================================
concepts? inheritance? homework? don't understand?
==========================================
import type.lang.*;
import java.util.*;
public class Train {
    public Train(int numSaloonCars, int nSeats, int numSleepingCars,
                 int nBerths) {
        if((numSaloonCars + numSleepingCars) <= 0
                || (nSeats + nBerths) <= 0) {
            throw new IllegalArgumentException("input valid data!");
        } else {
            for(int i = 0; i < numSaloonCars; i++) {
                atotal.add(new SaloonCar(nSeats));
            for(int m = 0; m < numSleepingCars; m++) {
                btotal.add(new SleepingCar(nBerths));
    public String reserveSpace(String spaceType, int numP) {
        StringBuffer buf = new StringBuffer();
        if(( !spaceType.equals(BERTH) && !spaceType.equals(SEAT))
                || (numP <= 0)) {
            throw new IllegalArgumentException("enter proper data!");
        } else if(spaceType.equals(SEAT)) {
            List train = new LinkedList(atotal);
            for(int i = 0; i < train.size(); i++) {
                if(numP == ((SaloonCar) train.get(i)).getAvailableSpace()) {
                    buf.append(
                        ((SaloonCar) train.get(i)).addPassengers(numP));
                } else if(numP
                          < ((SaloonCar) train.get(i)).getAvailableSpace()) {
                    buf.append(((RailCar) train.get(i)).addPassengers(numP));
                } else {
                    throw new TrainFullException("Train's Full!");
        } else if(spaceType.equals(BERTH)) {
            List train2 = new LinkedList(btotal);
            for(int m = 0; m < train2.size(); m++) {
                if(numP == ((SleepingCar) train2.get(
                        m)).getAvailableSpace()) {
                    buf.append(
                        ((SleepingCar) train2.get(m)).addPassengers(numP));
                } else if(numP
                          < ((SleepingCar) train2.get(
                              m)).getAvailableSpace()) {
                    buf.append(
                        ((SleepingCar) train2.get(m)).addPassengers(numP));
                } else {
                    throw new TrainFullException("Train's Full!");
        return buf.toString();
    public String toString() {
        StringBuffer buf   = new StringBuffer("Train [");
        List         list  = new LinkedList(atotal);
        List         list2 = new LinkedList(btotal);
        for(int i = 0; i < list.size(); i++) {
            buf.append(" SaloonCar[ ");
            buf.append(((SaloonCar) list.get(i)).toString() + " ]");
        for(int m = 0; m < list2.size(); m++) {
            buf.append(" SleepingCar[ ");
            buf.append(((SleepingCar) list2.get(m)).toString() + " ]");
        return buf.toString();
    private List               atotal = new LinkedList();
    private List               btotal = new LinkedList();
    public static final String BERTH  = "berth";
    public static final String SEAT   = "seat";
import java.lang.*;
import java.util.*;
public abstract class RailCar {
    public RailCar(Collection s) {
        this.s = s;
    public abstract String addPassengers(int p);
    public String allocateAvailableSpace(int p) {
        StringBuffer buf   = new StringBuffer();
        int          inP   = p;
        int          total = 0;
        List         list  = new LinkedList(s);
        for(int i = 0; i < list.size(); i++) {
            if(inP > ((OccupiableSpace) list.get(i)).getMaximumOccupants())
            //check maximumoccupants allowed
                throw new IllegalArgumentException(
                    "shold be = or < MAXOccupants of seat");
            } else if(isFull()) {
                //check for total available space in the railcar
                throw new CarFullException("Car is full!");
        ++number;    // i replicator
            ((OccupiableSpace) list.get(number-1)).addOccupants(inP);
            buf.append(((OccupiableSpace) list.get(number-1)).getId() + " ,");
        return buf.toString();
    public int getAvailableSpace() {
        int  total = 0;
        List list  = new LinkedList(s);
        for(int i = 0; i < list.size(); i++) {
            total += (((OccupiableSpace) list.get(i)).getVacantSpace());
        return total;
    public abstract int getMaximumOccupancy();
    public boolean hasSpace() {
        if(getAvailableSpace() == 0) {
            return false;
        } else {
            return true;
    public boolean isFull() {
        if(getAvailableSpace() == 0) {
            return true;
        } else {
            return false;
    public String toString() {
        StringBuffer buf      = new StringBuffer();
        String       tostring = "";
        List         list     = new ArrayList(s);
        for(int i = 0; i < list.size(); i++) {
            if(((OccupiableSpace) list.get(i)) instanceof Seat) {
                tostring +=
                    "SaloonCar ["
                    + buf.append(
                        "Seat" + "[ " + ((Seat) list.get(i)).getId() + " = "
                        + ((Seat) list.get(i)).getOccupants() + "] ") + " ]";
            } else if(((OccupiableSpace) list.get(i)) instanceof Berth) {
                tostring +=
                    "SleepingCar"
                    + buf.append(
                        "Berth" + "[ " + ((Berth) list.get(i)).getId()
                        + " = " + ((Berth) list.get(i)).getOccupants()
                        + "] ") + " ]";
        return buf.toString();
    public Collection s;
    public static int number = 0;
import java.util.*;
public class SaloonCar extends RailCar {
    public static final int MAX_SEATS = 96;
    public SaloonCar(int numSeats) {
        super(new LinkedList());
        if( !((numSeats <= 0) || (numSeats > MAX_SEATS))) {
            for(int i = 0; i <= numSeats - 1; i++) {
                s.add(new Seat());
        } else {
            throw new IllegalArgumentException("should be >= 0 & < MAX");
    public String addPassengers(int p) {
        StringBuffer buf   = new StringBuffer();
        int          total = 0;
        List         bag   = new LinkedList(s);
        if(p <= 0) {
            throw new IllegalArgumentException("should be >= 0");
        } else if(p > getAvailableSpace()) {
            throw new CarFullException("car's full");
        } else {
            for(int i = 0; i < p; i++) {
                buf.append(allocateAvailableSpace(Seat.MAX_OCCUPANTS));
        return buf.toString();
    public int getMaximumOccupancy() {
        return MAX_SEATS;
import java.util.*;
public class SleepingCar extends RailCar {
    public static final int MAX_BERTHS = 16;
    public final int        ONE        = 1;
    public SleepingCar(int numSeats) {
        super(new LinkedList());
        if( !((numSeats <= 0) || (numSeats > MAX_BERTHS))) {
            for(int i = 0; i < numSeats; i++) {
                s.add(new Berth());
        } else {
            throw new IllegalArgumentException("should be >= 0 & < MAX");
    public String addPassengers(int p) {
        StringBuffer buf   = new StringBuffer();
        int          total = 0;
        List         bag   = new LinkedList(s);
        if(p <= 0) {
            throw new IllegalArgumentException("should be >= 0");
        } else if(p > getAvailableSpace()) {
            throw new CarFullException("car's full");
        } else {
            int    found = 0;
            double check = p;
            List   list  = new LinkedList(s);
            for(int i = 0; i < list.size(); i++) {
                if(list.get(i) instanceof Berth) {
                    if(check / 2 != 0) {
                        int num = ((Berth) list.get(i)).getOccupants();
                        if((num == 0) || (num == 1)) {
                            found = i;
            if(check / 2 == 0) {
                for(int m = 0; m < check / 2; m++) {
                    buf.append(allocateAvailableSpace(Berth.MAX_OCCUPANTS));
            } else if(check / 2 != 0) {
                ((Berth) list.get(found)).addOccupants(ONE);
                buf.append(((Berth) list.get(found)).getId() + " ,");
                check--;
                for(int z = 0; z < check / 2; z++) {
                    buf.append(allocateAvailableSpace(Berth.MAX_OCCUPANTS));
        return buf.toString();
    public int getMaximumOccupancy() {
        return MAX_BERTHS;
import type.lang.* ;
import java.lang.* ;
public abstract class OccupiableSpace
  public OccupiableSpace(String code)
    idcode = code ;
  public void addOccupants(int num)
    if (num > getMaximumOccupants() || num < 0)
      throw new IllegalArgumentException() ;
    else
      numOccupants += num ;
  public boolean equals(Object o)
    if (o ==null) return false;
    if (getClass() != o.getClass()) return false;
    OccupiableSpace oin = (OccupiableSpace) o;
    return idcode.equals(oin.getId());
  public String getId()
    return idcode ;
  public abstract int getMaximumOccupants() ;
  public int getOccupants()
    return numOccupants ;
  public int getVacantSpace()
    int left = getMaximumOccupants() - getOccupants() ;
    return left ;
  public boolean isOccupied()
   if (getVacantSpace() == 0)
   return true;
   else
   return false;
  public void removeOccupants(int o)
    if (o > getOccupants() || o <= 0)
      throw new IllegalArgumentException() ;
    else
      numOccupants -= o ;
  public String toString()
    String ans = getClass().getName() + "[ id=" + idcode + ", occupants=" +
        numOccupants + " ]" ;
    return ans ;
  public int numOccupants ;
  public String idcode = "" ;
public class Berth
    extends OccupiableSpace
  public Berth()
    super("B-"+number);
    number++ ;
  public int getMaximumOccupants()
    return MAX_OCCUPANTS ;
  public static final int MAX_OCCUPANTS = 2 ;
  private static int number = 1 ;
public class Seat
    extends OccupiableSpace
  public Seat()
    super("S-" + number) ;
    number++ ;
  public int getMaximumOccupants()
    return MAX_OCCUPANTS ;
  public static final int MAX_OCCUPANTS = 1 ;
  private static int number = 1;
public class TrainFullException extends RuntimeException {
   public TrainFullException() {
      super();
   public TrainFullException(String msg) {
      super(msg);
public class CarFullException extends RuntimeException {
   public CarFullException() {
      super();
   public CarFullException(String msg) {
      super(msg);

what could be wrong in this part?
using System.out ... in a class file !?
  if(( !spaceType.equals(BERTH) && !spaceType.equals(SEAT))
                || (numP <= 0)) {
            throw new IllegalArgumentException("enter proper data!");
        } else if(spaceType.equals(SEAT)) {
            List train = new LinkedList(atotal);
            for(int i = 0; i < train.size(); i++) {
                if(numP == ((SaloonCar) train.get(i)).getAvailableSpace()) {
                    buf.append(
                        ((SaloonCar) train.get(i)).addPassengers(numP));
                } else if(numP
                          < ((SaloonCar) train.get(i)).getAvailableSpace()) {
                    buf.append(((RailCar) train.get(i)).addPassengers(numP));
                } else {
                    throw new TrainFullException("Train's Full!");
            }ahh... may be i am exhaus...

Similar Messages

  • I just upgraded Flash Pro CC from 13.0.1.80 to 14.0.0.110. I can no longer run any .swf's The target is Player i13 or older, my computer has 16.

    I just upgraded Flash Pro CC from 13.0.1.80 to 14.0.0.110. I can no longer run any .swf's The target is Player i13 or older, my computer has 16.

    you mean you have a problem with the stand-alone flash player?  or you're having a problem with flash pro?

  • HP dv7t CTO Corei7, Win7 . . . can this notebook run TRIM on SSD

    I have a new HP dv7t CTO Notebook, Core-i7, 64bit Win7, 128GB Crucial SSD-SATA III.  I also have a different, smaller SSD installed in the 2nd drive bay for data storage.
    I have attempted to enable TRIM for the 128GB SSD with no success.
    QUESTION:  Can this notebook support TRIM ?
    QUESTION:  Could the trouble be that I have a 2nd SSD installed ?
    Thanks for your help.
    This question was solved.
    View Solution.

    You are welcome
    //Click on Kudos and Accept as Solution if my reply was helpful and answered your question//
    I am an HP employee!!

  • Can this script run faster?

    Hello,
    The User dictionary does not always seem to work properly. The workaround is a script that creates discretionary hyphens for certain words.
    The following script first deletes all discretionary hyphens in a document being converted from PageMaker to InDesign. It then searches the document for 1900+ words and inserts discretionary hyphens in those words. The script has two arrays with that many elements, one for the words to be searched for, the other with the discretionary hyphens for those words. The script works fine but it takes about a minute to cycle through a 100 page document and 1900+ words.
    Is there a way to re-write this script so that it goes faster? Just curious.
    Thanks,
    Tom
    #target InDesign
    app.scriptPreferences.version = 5.0;
    var myDoc = app.activeDocument;
    var discrecHyphen = theGrepChanger(myDoc,"~-","");    
    if(discrecHyphen.length > 0){
         alert("I just deleted "+discrecHyphen.length+" discretionary hyphens.");
         }//end if
    else{
         alert("There were no discretionary hyphens in this document.");
         }//end else
    var countWords = 0;
    var numWords = "";
    var wordsChanged = [];
    var arrRawWords = ["humongous","array","of","thousand-plus","elements"];
    var arrHyphenWords = ["hu~-mon~-gous","ar~-ray","of","thousand-~-plus","el~-e~-ments"];
    for(var i =0; arrRawWords.length > i;i++){
         var numWords = theGrepChanger(myDoc,arrRawWords[i],arrHyphenWords[i]);
              if(numWords.length!=0){
                   wordsChanged.push(arrRawWords[i]);
                   }//end if
              countWords +=numWords.length;    
         }//end for i
    alert ("I just added discretionary hyphens for " +countWords+" words.\r\rSweet, huh?!");
    //*****functions*******
    function theGrepChanger(docRef,grepFindIt,grepChangeIt){
         app.findGrepPreferences = NothingEnum.NOTHING;
         app.changeGrepPreferences = NothingEnum.NOTHING;
         app.findGrepPreferences.findWhat = grepFindIt;
         app.changeGrepPreferences.changeTo = grepChangeIt;
         var arrGrepFindIt = myDoc.changeGrep();
         return arrGrepFindIt;
    }//end theGrepChanger

    OK, it's not the arrays. If you turn on the ESTK's profiler, you get this data:
    Line
    Time
    Hits
    1
    1
    1
    4
    6
    1
    5
    1939
    1
    6
    183
    1
    7
    5
    1
    16
    1
    1
    17
    1
    1
    18
    14
    1
    37
    389785
    1901
    38
    1981085
    1901
    39
    2692741
    1901
    40
    1197758
    1901
    41
    1132369
    1901
    42
    38969087
    1901
    43
    2165
    1901
    44
    1741
    1901
    45
    9
    2
    I wrapped your script in a function() {} to see if it would report times in the array lookups, so it doesn't. Perhaps it's being optimized out. Anyhow, it spends all the time in line 42, which is the mydoc.changeGrep(). Oh, the document -- I placed Alice in Wonderland in 12pt Minion Pro Regular on 5.5"x8.5" pages, and then used as my raw words the first 1900 words in /usr/share/dict/words and as their hyphenation pairs inserted a ~ after every letter 'c'. Takes about 46 seconds to run.
    You might also think it'd run faster if you opened the document with app.open(File("alice.indd",false) so it shows no window. This seems sort of true, but then ID crashes on the 872nd word ("accept", hyphed as "ac~c~ept"), probably one of the few words in my hyphenation list that actually shows up in Alice. Oh well... It also doesn't seem much faster -- takes about 20 seconds to get to 872, which seems about the same time as with the window open.

  • Can this class run fast than Hotspot ?

    My case in Sun hotspot is almost 2 times fast than jRockit. It's very strange.
    package com.telegram;
    public class byteutils {
         public final static byte[] bytea = { 48, 49, 50, 51, 52, 53, 54, 56, 57,
                   58, 65, 66, 67, 68, 69, 70 };
         public byteutils() {
              super();
         * convert length = 2L letters Hexadecimal String to length = L bytes
         * Examples: [01][23][45][67][89][AB][CD][EF]
         public static byte[] convertBytes(String hexStr) {
              byte[] a = null;
              try {
                   a = hexStr.getBytes("ASCII");
              } catch (java.io.UnsupportedEncodingException e) {
                   e.printStackTrace();
              final int len = a.length / 2;
              byte[] b = new byte[len];
              int idx = 0;
              int h = 0;
              int l = 0;
              for (int i = 0; i < len; i++) {
                   h = a[idx++];
                   l = a[idx++];
                   h = (h < 65) ? (h - 48) : (h - 55);
                   l = (l < 65) ? (l - 48) : (l - 55);
                   // if ((h < 0) || (l < 0)) return null;
                   b[i] = (byte) ((h << 4) | l);
              a = null;
              return b;
         public static String convertHex(byte[] arr_b) {
              if (arr_b == null)
                   return null;
              final int len = arr_b.length;
              byte[] byteArray = new byte[len * 2];
              int idx = 0;
              int h = 0;
              int l = 0;
              int v = 0;
              for (int i = 0; i < len; i++) {
                   v = arr_b[i] & 0xff;
                   l = v & 0xf;
                   h = v >> 4;
                   byteArray[idx++] = bytea[h];
                   byteArray[idx++] = bytea[l];
              String r = null;
              try {
                   r = new String(byteArray, "ASCII");
              } catch (java.io.UnsupportedEncodingException e) {
                   e.printStackTrace();
              } finally {
                   byteArray = null;
              return r;
         public static void main(String[] argv) {
              byte[] a = new byte[0x10000];
              for (int c = 0; c < 0x10000; c++) {
                   a[c] = (byte) (c % 256);
              String s = "";
              int LOOP = 10000;
              long l = System.currentTimeMillis();
              for (int i = 0; i < LOOP; i++) {
                   s = convertHex(a);
                   a = convertBytes(s);
              l = System.currentTimeMillis() - l;
              double d = l / (double) LOOP;
              System.out.println("" + d + "ms.");
    }

    Thanks! Your code is essentially a microbenchmark testing the performance of sun.nio.cs.US_ASCII.Decoder.decodeLoop() and encodeLoop(), with ~35% and ~30% spent in those two methods respectively. I have verified the behavior (i.e. Sun is faster than JRockit). Due to the microbenchmark nature, it may not affect a larger running program, but it may merit a closer look regardless. I have forwarded to the JRockit perf team for analysis.
    -- Henrik

  • Can this pc run dayz?

    http://www.bestbuy.com/site/iBuyPower---Desktop---​8GB-Memory---500GB-Hard-Drive/6980021.p;tab=specif​...
    or this one
    http://www.bestbuy.com/site/CyberPowerPC---Gamer-U​ltra-Desktop---8GB-Memory---1TB-Hard-Drive/6897999​...
    also cant seem to find out what powersupply they come with any of you happen to know?also which one do you guys think is better deal or the better pc.

    Hi bobdole,
    Either computer should be able to play ARMA2 or DayZ without too much trouble at all. The IBuyPower Desktop has a 350W supply. I'm having a little more trouble finding out what the CyberPower is using; I'll let you know if I can dig something up.
    Cheers,
    Douglas|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Can this laptop run After effects well?

    Hello,
    I have acer aspire 5742g laptop, i5 480m(max 2.93ghz), Geforce 540m, 6gb ram and slow 5400rpm HDD
    After effects runs quite slow if I do something more advanced so I think its time for upgrade.
    I found this quite cheap for specs it provides
    Asus N56JR
    Intel® Core™ i7-4700HQ Processor (6 MB Cache, 2.4 Ghz)
    8 GB DDR3 - 1600 MHz
    GeForce GTX 760M GDDR5 2GB
    1TB HDD 5400RPM(I will buy ssd later)
    Notebooks & Ultrabooks - N56JR - ASUS
    Will this laptop be able to handle after effects good enough?

    That would be better but you could use a bunch more ram. After Effects is a professional app with tons of capabilities. The more complex the project the higher the demands are on the system. If you want AE to run quickly when you work on extremely complex projects and you want to run on a laptop then you need a professional workstation grade laptop not a consumer model. Dell and HP make them, Apple makes the MacBookPro R which becomes a workstation grade laptop when you max it out. Simply put, buy the most powerful laptop with the most memory you can afford, make sure the company provides excellent customer service and get a long warrantee - or take your chances with a consumer grade laptop.

  • Hey can this os run on a amd athlon ii cpu

    i want to know if this os will work an a amd proccessor

    If you are planning on building a computer to run OS X then forget it.
    Besides being illegal, To run OS X on non-Apple hardware is a hack which is both unreliable and insecure.
    Allan

  • What is error -1 , and why can't I run any daq vi's

    I want to use my LAB-PC+ card for
    data acquisition on a win 3.1 system with labview 3.0.1. We are using NiDaq 4.6.1.
    Checking the card with WDAQCONF
    shows it passes the tests and can read
    voltages without error.
    However when trying to use the DAQ
    vi's , Labview either gives error -1, error -10240, or crashes. Why would this be?

    Jeremy,
    the reason you are able to configure and test your Lab-PC+ is because you are using ni-daq 4.6.1, a driver version that does support your daq board. However, labview 3.0.1 does not work with ni-daq 4.6.1. That is why you are getting warning -10240 which occurs when the driver interface can either not locate or open the driver. Warning -1 also comes up when there is a communication issue, again in your case its due to the incompatibility of your driver version with labview 3.0.1.
    You need labview 3.1.x in order to be able to use it with ni-daq 4.6.1. I would actually highly recommend that you upgrade your labview version to our latest version 6. That way you can use your card on a newer windows machine (i.e. win 9x, 2000 or NT) along with our newer ni-daq driv
    ers.
    Regards,
    Afreen S.
    National Instruments
    www.ni.com/ask

  • Hp g60-213em , gl40, t1600 cpu , can this system take a 800mhz fsb upgrade cpu ,,,

    hi. trying to upgrade a hp g60-213em , gl40 chipset t1600 cpu fsb 600mhz ,,, but intel state that the gl40 chipset can run 800mhz fsb cpu ,  is this possible and can this system run a 800 mhz fsb cpu ,, such as intel core 2 duo t6600  800 fsb or intel core 2 duo t7800 800fsb or am i stuck with 667 fsb an the best cpu would be intel pentium dual core t5850 667fsb... please help
    This question was solved.
    View Solution.

    d42coa wrote:
    hi. trying to upgrade a hp g60-213em , gl40 chipset t1600 cpu fsb 600mhz ,,, but intel state that the gl40 chipset can run 800mhz fsb cpu ,  is this possible and can this system run a 800 mhz fsb cpu ,, such as intel core 2 duo t6600  800 fsb or intel core 2 duo t7800 800fsb or am i stuck with 667 fsb an the best cpu would be intel pentium dual core t5850 667fsb... please help
    Your system board is compatible with:
    the following  Intel Core2 Duo processors (2-MB L2 cache, 800-MHz FSB):
    T5900 2.2-GHz processor
    T5800 2.0-GHz processor
    Intel Core2 Duo processors (3-MB L2 cache, 1066-MHz FSB):
    P8600 2.4-GHz processor
    P8400 2.26-GHz processor
    P7350 2.0-GHz processor
     Intel Core2 Duo processors 6-MB L2 cache, 1066-MHz front bus (FSB)):
    T9400 2.53-GHz processor
    T9600 2.8-GHz processor
    Your notebook has BIOS support for more processors than most do. You chose wisely.
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • I have a new Dell computer running windows 7 and am unable to download itunes. The message I recieve after trying to run the download is: This installation package could not be opened. Verify that the package exists and that you can access it.   Any ideas

    I have a new Dell computer running windows 7 and am unable to download itunes. The message I recieve after trying to run the download is: This installation package could not be opened. Verify that the package exists and that you can access it.   Any ideas?

    Hello tcampbell1549,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    Have a nice day,
    Mario

  • I have Safari on an HP desktop running Windows 7, 64-bit. When I want to clear the history from Safari, the "Reset Top Sites Also" button is always checked. This can cause problems. Any way to have it unchecked all the time?

    I have Safari on an HP desktop running Windows 7, 64-bit. When I want to clear the history from Safari, the "Reset Top Sites Also" button is always checked. This can cause problems. Any way to have it unchecked all the time?

    Welcome to the HP Forums Hinalover,
    I see by your post that you are having issues with the print spooler on the Windows 7 computers.
    I can help you with this issue.
    Download and run the Print and Scan Doctor. It will diagnose the issue and might automatically resolve it. Find and fix common printer problems using HP diagnostic tools for Windows?
    Try running the Microsoft Fix It Tool to see if it will fix the print spooler.
    Diagnose and repair Windows File and Folder Problems automatically.
    You can also run the System File Checker to repair corrupted or missing files.
    System File Checker: Run sfc /scannow & analyze its logs in Windows 7 | 8.
    You might end up having to do a repair of Windows.
    Please let me know the results.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • I have paid and downloaded LION and want to update my IMAC, can i just run install and it keep photos settings etc from Snow Leopard or is a full reinstall with wiped hard drive, anyone have any experience of this and do i need to run a backup beforehand?

    I have paid and downloaded LION and want to update my IMAC, can i just run install and it keep photos settings etc from Snow Leopard or is a full reinstall with wiped hard drive, anyone have any experience of this and do i need to run a backup beforehand?

    Always backup your important data before upgrading to a new Mac OS X.
    Lion doesn't erase the drive but better to be safe than sorry.
    And run Disk Utility  (Applications/Utilities). Verify and if necessary repair the startup disk before upgrading.
    Using Disk Utility to verify or repair disks
    Before upgrading read here >  Lion upgrade questions and answers:  Apple Support Communities
    And here >  What applications are not compatible with Mac OS X 10.7 "Lion"? What upgrade or substitute options are available for common incompatible applications? @ EveryMac.com

  • Battery running down fast using Yosemite, running the latest update 10.10.2. I think there is bug in this update. Please help me out or is there a way can i switch back to mavericks and how

    Battery running down fast using Yosemite, running the latest update 10.10.2. I think there is bug in this update. Please help me out or is there a way can i switch back to mavericks and how

    1. Check the cycle count of the battery against the rated life for your model. The battery may be due for replacement. If the power adapter is connected almost all the time, the battery may need replacing even though the cycle count is not too high.
    2. Follow these instructions, or these for OS X 10.8 or earlier.
    3. In the Energy Saver preference pane, uncheck the box marked
              Enable Power Nap while on battery power
    if it's shown (it may not be.)
    4. You can also try resetting the SMC.
    5. Make sure your system is up to date in Software Update.
    6. Make a "Genius" appointment at an Apple Store, or go to another authorized service center.

  • I cloud worked fine for a while on the latest version of windows then threw up an error since then I can longer get the programme to run . I've reinstalled itunes but this doesnt help any ideas

    I cloud worked fine for a while on the latest version of windows then threw up an error since then I can longer get the programme to run . I've reinstalled itunes but this doesnt help any ideas

    It maybe worthwhile trying to uninstall and then reinstall the icloud control panel, if the issue is with your outlook.

Maybe you are looking for

  • IDOC PEXR2002 and Customer Invoice Clearing

    All We are able to successfully clear customer invoices, on account posting or clear with residual items with PEXR2002. We are however not able to figure out how we populate texts in the FI Postings. Also we have a requirement that the GL account to

  • When I go to the options and try to open "content" nothing happens.

    I need to change my pop-up settings, and the content tab will not open.

  • CR closes when using "create new connection"

    Hi, Crystal Reports 2008. After opening a CR 10 report once, I can't create new blank reports. If I use "create new connection" to add a data source the program shuts down. No crash dump or anything. Helpdesk could reproduce error but couldn't solve

  • Weird audio sync problems with Zoom H4n?

    We are adding a voice-over track to a Keynote presentation - using the inboard mic in a MacBook Pro. We are simultaneously recording the voice-over with an Audio Technika mic plugged into a Zoom H4n - recording at 48/24. We export the Keynote to a Pr

  • Caling Web Camera Image in Forms

    Hi Sir, i want to take a photo from web camera and want to display the photo on image item on my form.