Issues with my Macbook pro, the current page disappears and it goes back to the desktop.  I can't figure out what's wrong.

I have been having problems with my Macbook ever since I had it in for service to replace the battery.  The issue is when I am surfing the page disappears and goes back to the desk top, and I have to reload it again.  This happens quite often while I am online, and is a definite glitch.
Please help.
Sam Oliverio

String[] message = {
    "One, two, buckle your shoe",
    "One, two, buckle your shoe",
    "Three, four, shut the door",
    "Three, four, shut the door",
    "Five, six, pick up sticks",
    "Five, six, pick up sticks",
    "Seven, eight, lay them straight",
    "Seven, eight, lay them straight",
    "Nine, ten, this is the end",
    "Nine, ten, this is the end"
if(n>0)
    System.out.println(message[n]);
else
    System.exit(0);

Similar Messages

  • My macbook pro will not play a video without pausing every 11 seconds. PLEASE help me figure out what is wrong. very frustrating

    my macbook pro will not play a video without pausing every 11 seconds. PLEASE help me figure out what is wrong. very frustrating. I have already tried restarting

    buckmacie,
    has the video been completely downloaded onto your MacBook Pro when you start to play it? Or are you playing it while it downloads, AKA streaming it?

  • When I get to the login page on my macbook, I type in my password and it starts to load, but then the screen turns blue and it goes back to the login.

    When I get to the login page on my macbook, I type in my password and it starts to load, but then the screen turns blue and it goes back to the login.
    Iv tryed this numerious times still keeps going back to pasword. Can not get any further. Tried restart holding shift key.. still nothing. What do i do?

    Thank you for your help.
    I couldnt get to the hard drive/ desktop. Soft login not even working. So i could not do any of that.
    In the end i took it to Apple and its actually the hard drive on its way out. A common issue with that series of Mac. Funny seeing i dont use this mac much. However being 2.5 years old and out of warrently, Apple have recognise this issue with this series/ Model and installing a new hard drive at no cost.
    Very luck and greatful. And not feeling so dumb that it was something i did or could troubleshoot myself.
    Hope this helps others that it just might be your hard drive failing.

  • I have a brand new macbook with microsoft office loaded. I set outlook as the default mail. i would rather go back to mac mail but can't figure out how to do it. any ideas?

    I have a brand new macbook with microsoft office loaded. I set outlook as the default mail. i would rather go back to mac mail but can't figure out how to do it. any ideas?
    Thanks for any help
    Lou

    I have a similar problem: I switched from mac mail to Outlook 2011 as the default client, and want to switch back. Mailto links (eg from browser etc) default to Mail.  However, when I try to email a Word document as an attachment, it continues to open Outlook.  Outlook has a button in its prefs for making it the default client, but I don't see a way to turn this pref off in either Outlook or in Word.  

  • Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    1. Use the mouse to select the field and then press the space bar.
    2. A null string is the same as zero. What is the result for division by zero?

  • When I get to the login page on my macbook, I type in my password and it starts to load, but then the screen turns blue and it goes back to the login. What should I do?

    I was having some problems with my mac, safari and itunes was freezing alot. I have to force shutdown and when I tried to start up again i get to the login page, type in my password and it starts to load, but then the screen turns blue for a few seconds and it goes back to the log in screen. What should I do?
    Please Help!!

    Somewhat similar problem:
    Put in the password, hit enter, the screen goes blue for half a second, then goes back to login screen and carries on logging in as usual.  Drives me mad.  It doesn't happen with a fresh Lion installation, nor if booted into safe mode.  On the machine in question it also happens to new user accounts.
    I've removed all login items, including Startup Items and Launch Demons (pun intended) and Agents, I've compared system login plists with a fresh Lion installation - can't see differences.  I've removed Little Snitch and PeerGuardian (no more third party kexts).
    @Carolyn: I've done disk maintenance with DiskUtility and fsck and even DiskWarrior, cleaned caches, etc. etc.
    Any ideas would be gratefully received.
    Sorry for trying to hijack the thread (as it's not about Lion), but it seemed dead anyway.

  • Having issues with 13" MacBook Pro. Running very slow and blank screen and sleep mode.

    Bought my MBPro summer 2009. About a month / 6 weeks ago it began to run extremely slow at points. Now it is running poorly and getting very slow on a daily basis, to the point where it will not open applications, documents or even web pages for in excess of 5 minutes. I'm beginning to lose patience!
    Also at the exact same time of these performance issues occuring, my MacBook Pro will not awaken from sleep mode when the lid is closed. Showing a blank dark screen and having to hard reset in order to boot up my system again and get it running.
    What is the best solution in order to resolve these issues?
    Your help is greatly appreciated.

    Did you run Disk Utility>First Aid?  If so what were the results?  This is a copy of mine, note that the bottom line says:  The partition map appears to be OK:
    Ciao.

  • Master page size conflict? Can't figure out what's wrong...

    Hi community,
    I posted this ticket earlier, but I think I should post it in English, for a larger audience...
    So here's the story :
    I got a really odd issue while moving (or adding) pages...
    Here's a very basic layout :
    Now, lets place page 2 after page 3. Here's the result :
    As you can see, pages don't seem to relate properly to master pages.
    I can't figure out why...
    If I apply masters onto my pages, InDesign says there's a size conflict.
    Assuming I would apply again my master, ID will replace elements at the right place for now, but doesn't solve the problem at all.
    Any idea ??
    Here's a download link for this document :
    http://dl.free.fr/lPfXwwajm
    Please note, I'm working with InDesign CS6 (8.0.2 version)
    Thanks a lot for your help!
    Vincent

    Hi Willy.
    I didn't use the page tool (I never do), but it's a collaborative project, so I can't be sure nobody did.
    As you might have guessed, the attached Indd file is not the real file: I did remove all styles, variants, blocks,... everything from the original project to reduce it to a very basic template...
    If I create a document from scratch, obviously there is no problem. If I don't find the solution, I will recreate the document from scratch, but you'll understand I'd like to avoid spending my time that way...
    So...
    I tried changing the orientation from document setup and crtl-z... didn't do the trick!
    Now, here are more information for a better understanding:
    The original project was landscape orientated (A4).
    I had to adapt it to a portrait orientation version (still A4). Please note I didn't use the page tool. Obviously, something got wrong there and did create the problem...
    Now, if I right-click my page panel and set its view "by variant", the name of the (unique) variant is the same than the original project, even though it has a different orientation.
    The strange thing is that the name is a personalized one (it should have been "A4 H"). Why is that? I dunno... Why (anf who did?) change the name of the "variant" is a mystery... But I guess this could be a clue...
    Well... still stuck on this puzzler...
    Thanks all for your help anyway...

  • I can't figure out what's wrong with this code

    First i want this program to allow me to enter a number with the EasyReader class and depending on the number entered it will show that specific line of this peom:
    One two buckle your shoe
    Three four shut the door
    Five six pick up sticks
    Seven eight lay them straight
    Nine ten this is the end.
    The error message i got was an illegal start of expression. I can't figure out why it is giving me this error because i have if (n = 1) || (n = 2) statements. My code is:
    public class PoemSeventeen
    public static void main(String[] args)
    EasyReader console = new EasyReader();
    System.out.println("Enter a number for the poem (0 to quit): ");
    int n = console.readInt();
    if (n = 1) || (n = 2)
    System.out.println("One, two, buckle your shoe");
    else if (n = 3) || (n = 4)
    System.out.println("Three, four, shut the door");
    else if (n = 5) || (n = 6)
    System.out.println("Five, six, pick up sticks");
    else if (n = 7) || (n = 8)
    System.out.println("Seven, eight, lay them straight");
    else if (n = 9) || (n = 10)
    System.out.println("Nine, ten, this is the end");
    else if (n = 0)
    System.out.println("You may exit now");
    else
    System.out.println("Put in a number between 0 and 10");
    I messed around with a few other thing because i had some weird errors before but now i have narrowed it down to just this 1 error.
    The EasyReader class code:
    // package com.skylit.io;
    import java.io.*;
    * @author Gary Litvin
    * @version 1.2, 5/30/02
    * Written as part of
    * <i>Java Methods: An Introduction to Object-Oriented Programming</i>
    * (Skylight Publishing 2001, ISBN 0-9654853-7-4)
    * and
    * <i>Java Methods AB: Data Structures</i>
    * (Skylight Publishing 2003, ISBN 0-9654853-1-5)
    * EasyReader provides simple methods for reading the console and
    * for opening and reading text files. All exceptions are handled
    * inside the class and are hidden from the user.
    * <xmp>
    * Example:
    * =======
    * EasyReader console = new EasyReader();
    * System.out.print("Enter input file name: ");
    * String fileName = console.readLine();
    * EasyReader inFile = new EasyReader(fileName);
    * if (inFile.bad())
    * System.err.println("Can't open " + fileName);
    * System.exit(1);
    * String firstLine = inFile.readLine();
    * if (!inFile.eof()) // or: if (firstLine != null)
    * System.out.println("The first line is : " + firstLine);
    * System.out.print("Enter the maximum number of integers to read: ");
    * int maxCount = console.readInt();
    * int k, count = 0;
    * while (count < maxCount && !inFile.eof())
    * k = inFile.readInt();
    * if (!inFile.eof())
    * // process or store this number
    * count++;
    * inFile.close(); // optional
    * System.out.println(count + " numbers read");
    * </xmp>
    public class EasyReader
    protected String myFileName;
    protected BufferedReader myInFile;
    protected int myErrorFlags = 0;
    protected static final int OPENERROR = 0x0001;
    protected static final int CLOSEERROR = 0x0002;
    protected static final int READERROR = 0x0004;
    protected static final int EOF = 0x0100;
    * Constructor. Prepares console (System.in) for reading
    public EasyReader()
    myFileName = null;
    myErrorFlags = 0;
    myInFile = new BufferedReader(
    new InputStreamReader(System.in), 128);
    * Constructor. opens a file for reading
    * @param fileName the name or pathname of the file
    public EasyReader(String fileName)
    myFileName = fileName;
    myErrorFlags = 0;
    try
    myInFile = new BufferedReader(new FileReader(fileName), 1024);
    catch (FileNotFoundException e)
    myErrorFlags |= OPENERROR;
    myFileName = null;
    * Closes the file
    public void close()
    if (myFileName == null)
    return;
    try
    myInFile.close();
    catch (IOException e)
    System.err.println("Error closing " + myFileName + "\n");
    myErrorFlags |= CLOSEERROR;
    * Checks the status of the file
    * @return true if en error occurred opening or reading the file,
    * false otherwise
    public boolean bad()
    return myErrorFlags != 0;
    * Checks the EOF status of the file
    * @return true if EOF was encountered in the previous read
    * operation, false otherwise
    public boolean eof()
    return (myErrorFlags & EOF) != 0;
    private boolean ready() throws IOException
    return myFileName == null || myInFile.ready();
    * Reads the next character from a file (any character including
    * a space or a newline character).
    * @return character read or <code>null</code> character
    * (Unicode 0) if trying to read beyond the EOF
    public char readChar()
    char ch = '\u0000';
    try
    if (ready())
    ch = (char)myInFile.read();
    catch (IOException e)
    if (myFileName != null)
    System.err.println("Error reading " + myFileName + "\n");
    myErrorFlags |= READERROR;
    if (ch == '\u0000')
    myErrorFlags |= EOF;
    return ch;
    * Reads from the current position in the file up to and including
    * the next newline character. The newline character is thrown away
    * @return the read string (excluding the newline character) or
    * null if trying to read beyond the EOF
    public String readLine()
    String s = null;
    try
    s = myInFile.readLine();
    catch (IOException e)
    if (myFileName != null)
    System.err.println("Error reading " + myFileName + "\n");
    myErrorFlags |= READERROR;
    if (s == null)
    myErrorFlags |= EOF;
    return s;
    * Skips whitespace and reads the next word (a string of consecutive
    * non-whitespace characters (up to but excluding the next space,
    * newline, etc.)
    * @return the read string or null if trying to read beyond the EOF
    public String readWord()
    StringBuffer buffer = new StringBuffer(128);
    char ch = ' ';
    int count = 0;
    String s = null;
    try
    while (ready() && Character.isWhitespace(ch))
    ch = (char)myInFile.read();
    while (ready() && !Character.isWhitespace(ch))
    count++;
    buffer.append(ch);
    myInFile.mark(1);
    ch = (char)myInFile.read();
    if (count > 0)
    myInFile.reset();
    s = buffer.toString();
    else
    myErrorFlags |= EOF;
    catch (IOException e)
    if (myFileName != null)
    System.err.println("Error reading " + myFileName + "\n");
    myErrorFlags |= READERROR;
    return s;
    * Reads the next integer (without validating its format)
    * @return the integer read or 0 if trying to read beyond the EOF
    public int readInt()
    String s = readWord();
    if (s != null)
    return Integer.parseInt(s);
    else
    return 0;
    * Reads the next double (without validating its format)
    * @return the number read or 0 if trying to read beyond the EOF
    public double readDouble()
    String s = readWord();
    if (s != null)
    return Double.parseDouble(s);
    // in Java 1, use: return Double.valueOf(s).doubleValue();
    else
    return 0.0;
    Can anybody please tell me what's wrong with this code? Thanks

    String[] message = {
        "One, two, buckle your shoe",
        "One, two, buckle your shoe",
        "Three, four, shut the door",
        "Three, four, shut the door",
        "Five, six, pick up sticks",
        "Five, six, pick up sticks",
        "Seven, eight, lay them straight",
        "Seven, eight, lay them straight",
        "Nine, ten, this is the end",
        "Nine, ten, this is the end"
    if(n>0)
        System.out.println(message[n]);
    else
        System.exit(0);

  • Can't figure out what is wrong with recovery DVDs

    Last year, right after turning my laptop ON, I've created 4 DVDs as such: http://i56.tinypic.com/6i79rn.jpg
    Recovery DVD Disk 1
    Recovery DVD Disk 2
    Recovery DVD Disk 3
    Windows Recovery Environment 64-bit
    My Laptop is Qosmio F60-14R, with Windows 7 Home Premium.
    Now all I want to do is format my laptop and re-install windows 7 Home premium using those 4 DVDs. However I can't figure out why I cannot re-install or get the laptop back to the factory state.
    This have wasted 8 hours straight of my time and frustrated me by great deal. Can you kindly tell me what I have to do? I am lost!

    Here is what I have done so far:
    I inserted 'Windows Recovery Environment (64-bit)' DVD and booted the laptop from it.
    First thing that loads up is a window with two options:
    - Toshiba Recovery Wizard
    - System Recovery Options
    Taking Toshiba Recovery Wizard as choice, clicking Next.
    It asks me: "Please set 1st Recovery Media and press Next to Continue.
    So, I insert Recovery DVD 1 and then click Next. However it ejects the disc drive (seems Recovery DVD 1 is not the correct Disk!).
    So I repeat the same process with Recovery DVD 2 and Recovery DVD 3 and again the Disk Drive ejects the Disks.... As a desperation attempt I even put the Windows Recovery Environment Disk inside but that as well get ejected.
    Okay, so the Toshiba Recovery Wizard is not the right choice 'it seems'.
    So, I restart the laptop and inserted 'Windows Recovery Environment (64-bit)' DVD and booted the laptop from it.
    First thing that loads up is a window with two options: (First choice failed, now trying second choice)
    - --Toshiba Recovery Wizard--
    - System Recovery Options
    So, choosing System Recovery Options this time and clicking Next. I Choose US as Keyboard, then click Next. A small window appears which gives me two further options:
    - Use Recovery tools that can help fix problems starting Windows. Select an Operating System to repair.
    - Restore your computer using a system image that you created earlier.
    So, I already tried the first choice and it takes me to another window with several recovery tools. One of the tools is System Image Recovery but when I click it, it gives a Warning messagebox that says:
    Windows cannot find a system image on this computer. etc.
    But when I insert every disk, still the warning messagebox shows up as if all the four recovery DVDs are irrelevant.
    So, it seems the first choice doesn't lead me anywhere. So, remains the second choice:
    - Restore your computer using a system image that you created earlier.
    Turns out it is exactly the same 'System Image Recovery' from first option mentioned few lines earlier. So, there you have it, checkmate.
    Please guide.

  • When I boot up my Mac, Messages opens automatically. I quit the app, but it just re-opens itself. It won't stay off!!! I can't figure out what's wrong with it!

    For the past few months, my Mac has been acting weird. EVERY time I boot up the computer, Messages opens automaticallly (I am runing OS X 10.8.x). I quit the app, but it just re-opens a few seconds later! It just won't stay off! I've looked it up online and nothing helps. I have no idea what to do!!!

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Can't figure out what is wrong with my form

    Aloha all!
    Need some help from my DW friends.  For some reason my form isn't emailing all the fields.  I have sent several tests and only 2 of the fields are showing, the name and the comments.  I can't see why the other wouldn't be working, it looks right to me.  Can anyone see what the issue is?
    http://www.windwardmassage.com/evaluation.html
    Mahalo!!

    It's because most of your fields have the same name (textfield). Give each field a unique name (no spaces or special characters).

  • When I open messages on mu iPod touch the screen is blank and then goes back to the home screen after 10secs

    When I open messages in my iPod touch the screen is black, I have no access to the keyboard and then after 10 secs, the screen bounces back to the home screen, why is this?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Settings.Messages>Send and Receive and sign out of the account and sign back in.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             

  • Can't figure out what's wrong with my code

    Hello everyone. I'm new here and I am trying to write this program and am completely stuck. What i want the program to do is to read in two directory paths from the user and compare those directories and print out the differences. The catch is i only want it to compare 2 directories deep. For example, to compare the music folder on my hard drive and on my external hard drive. My folders are organized: my music>artist>albums, so i just want it to be able to search these folders, not the files inside the albums folders, to show what's different. I hope that makes sense... Anyways, here is the class that I have written to do the comparison. The error it is giving me is:
    Exception in thread "main" java.lang.NullPointerException
         at ToArrayList.ArrayToArrayList(ToArrayList.java:15)
         at NewFunctionClass.compareDirs(NewFunctionClass.java:44)
         at MainMenu.main(MainMenu.java:37)
    Any suggestion on how to make this work/why it doesn't work or any suggestion on a more efficient way to go about doing it would be greatly appreciated. Thank you.
    public class MainMenu {
         public static void main(String[]args)
              boolean flag = true;
              int userInput;
              String dir1;
              String dir2;
              System.out.println("****************************");
              System.out.println("*   Directory Comparison   *");
              System.out.println("*         v 1.2            *");
              System.out.println("****************************");
              while(flag)
                   System.out.println(" Make a selection:");
                   System.out.println(" 1. Compare new directories");
                   System.out.println(" 2. (coming soon)");
                   System.out.println(" 3. exit");
                   System.out.println(">");
                   userInput = inputClass.readInt();
                   switch(userInput){
                   case 1:
                        System.out.println("Enter the location of the first directory:");
                        dir1 = inputClass.readString();
                        NewFunctionClass.readDir1(dir1);
                        System.out.println("Enter the location of the second directory:");
                        dir2 = inputClass.readString();
                        NewFunctionClass.readDir2(dir2);
                       System.out.println("Differences in directories");
                       System.out.println("---------------------------");
                        System.out.println();
                        NewFunctionClass.compareDirs(dir1, dir2);
                   }//end case 1
                        break;
                   case 2:
                   }//end case 2
                   case 3:
                        flag = false;
                        break;
                   }//end switch
              }//end while
         }//end main
    }//end class
    import java.io.*;
    import java.util.*;
    public class NewFunctionClass {
         private static File[] mainDir1;
         private static File[] mainDir2;
         private static File[] subDir1;
         private static File[] subDir2;
         public static void readDir1(String dirName1) {
              File dir1 = new File(dirName1);
              mainDir1 = dir1.listFiles();
         }// end readDir1
         public static void readDir2(String dirName2) {
              File dir2 = new File(dirName2);
              mainDir2 = dir2.listFiles();
         }// end readDir1
         public static void compareDirs(String dir1, String dir2) {
              int i,j;
              List<File> mainDir1List;
              List<File> subDir1List;
              List<File> mainDir2List;
              List<File> subDir2List;
              ToArrayList a = new ToArrayList();
              // compare first directory to second
              for (i = 0; i < mainDir1.length; i++) {                                      //<<<<<
                   if (mainDir1.isDirectory()) {                                //<<<<< From here to the rest of the class is where most of the
                        subDir1 = mainDir1[i].listFiles(); //<<<<< error seems to be
                   }// end if
                   mainDir1List = a.ArrayToArrayList(mainDir1);
                   subDir1List = a.ArrayToArrayList(subDir1);
                   for (j = 0; j < mainDir2.length; j++) {
                        if (!mainDir1List.contains(mainDir2[j])) {
                             System.out.println("Didn't find " + mainDir2[j].toString()
                                       + " in " + dir1);
                        }// end if
                        if (!subDir1List.contains(mainDir2[j])) {
                             System.out.println("Didn't find " + mainDir2[j].toString()
                                       + " in " + dir1);
                        }// end if
                   }// end for
              }// end for
              // now compare second directory to first
              for (i = 0; i < mainDir2.length; i++) {
                   if (mainDir2[i].isDirectory()) {
                        subDir2 = mainDir2[i].listFiles();
                   mainDir2List = a.ArrayToArrayList(mainDir2);
                   subDir2List = a.ArrayToArrayList(subDir2);
                   for (j = 0; j < mainDir1.length; j++) {
                        if (!mainDir2List.contains(mainDir1[j])) {
                             System.out.println("Didn't find " + mainDir1[j].toString()
                                       + " in " + dir2);
                        if (!subDir2List.contains(subDir1[j])) {
                             System.out.println("Didn't find " + mainDir1[j].toString()
                                       + " in " + dir2);
                   }//end for
              }//end for
         }// end method
    }// end class
    import java.util.*;
    import java.io.*;
    public class ToArrayList {
         List<File>myArrayList;
         public ToArrayList(){
              myArrayList = new ArrayList<File>();
         public List<File> ArrayToArrayList(File[] myArray)
              int i;
              for(i = 0; i < myArray.length; i++)
                   myArrayList.add(myArray[i]);
              return myArrayList;
    }//end class
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    public class inputClass {
         public static String readString(){
              String str = "";
              InputStreamReader isr = new InputStreamReader(System.in);
              BufferedReader br = new BufferedReader(isr);
              try {
                   str = br.readLine();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              str = str.trim();
              return str;
         }//end readString
         public static int readInt() {
              * Method for reading from keyboard and returning int
              String str = "";
              int i = 0;
              InputStreamReader isr = new InputStreamReader(System.in);
              BufferedReader br = new BufferedReader(isr);
              try {
                   str = br.readLine();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              i = Integer.parseInt(str);
              return i;
         }// end readInt
    }//end inputClass

    Start by looking at line 15 of the ToArrayList class. That's where you are trying to use a variable which is still null. And don't fuss about making it "more efficient", it doesn't even work yet.

  • I have a MacBook Pro OS 10.9.5 with 250 GB hard drive-- I can't figure out what is taking up all my hard drive space (it is not backups).  Any ideas?

    MacBook Pro OS 10.9.5, 250 GB solid state hard drive.
    I can't figure out what is taking up all my hard drive space (it is not backups).  Any ideas? 

Maybe you are looking for

  • Selectively mark Excel columns in MDS as Read-Only

    Is there an internally supported feature in MDS 2012 Excel add-in wherein we can set some columns (e.g Code column) as Read-Only? The use case we're trying to evaluate is to not allow users to make changes to the Business Key column of an entity (pop

  • Any app in OS X Mavericks unable to detect location after updating

         I'm using MacBook Air (late 2013) & OS X Maverick 10.9.3 on it. I'm facing to this problem since I updated to 10.9.2 from 10.9.1.      Like no any app from Maps, Twitter, Facebook is able to detect location. Earlier it was able to. Mean, when I

  • Level 1 alerts not working

    Hello, I have very recently started using a Q5 as my work phone (on 10.2.1.2102). I receive many emails, some of which I need to be alerted about urgently. So to do this I believe I need to use the Priority Hub. I have set up a priority hub rule to f

  • Quicktime in firefox browser

    If i want to download a movie i place the url in cocoawget or what seems to happen in firefox browser is that the quicktime symbol appears in the broswer and the movie downloads then plays in the browswer. Once i close the broswer where is the movie

  • Printing web page at client side

    i want to print web page at client side . Page & printer settings are through coding. i tried using DocFlavor myFormat = new DocFlavor("text/plain; charset=utf-16be","java.net.URL"); i found exception invalid flavor