How to compile this without warnings?

Hello,
I am learning generics, and I grasped concepts but still get stuck with this:
Properties props = System.getProperties();
List propsList = new ArrayList(props.keySet());
Collections.sort(propsList);
for (Object key : propsList) {
     out.println(key + "  =  " + props.getProperty((String)key));
}I get 3 warnings from the compiler and was not able to get rid of them. Thing is that I don't understand what to do with Set<K> which is returned from props.keySet(). I tried to make List<String>, List<? extends Object>, List<? super String>, it was only guessing, so I would appreciate quick explanation how to make this compile without warnings.
And warnings I get are:
warning: [unchecked] unchecked call to ArrayList(java.util.Collection<? extends E>) as a member of the raw type java.util.ArrayList
List propsList = new ArrayList(props.keySet());
^
warning: [unchecked] unchecked conversion
found : java.util.List
required: java.util.List<T>
Collections.sort(propsList);
^
warning: [unchecked] unchecked method invocation: <T>sort(java.util.List<T>) in java.util.Collections is applied to (java.util.List)
Collections.sort(propsList);
Thank you!

ndario wrote:
OK, List<String> is what I want, but I can't get it as
List<String> propsList = new ArrayList<String or whatever>(props.keySet());
The constructor you use here does not allow for what you intent to do, right. But all the constructor does is to create a new list and add all elements from the set. This can also be done by creating the list first and adding the set's element in a loop, ensuring to convert each element to the desired type.
Thing is that I am not looking for a solution to this problem (there are many ways to sort keys of Properties) but trying to learn something about generics. I was interested what needs to be done to compile the code snippet from the first post without warnings. Is it possible at all?Sure, I already told you what you need to do:
1. Define the list as I did in my first posting
2. Define your own Comparator<Object> to be passed as second parameter to sort().

Similar Messages

  • HT204053 I have a school ipad with iCloud using a different ID (my school email address) . I am leaving and want to buy my own ipad and transfer all my data and docs to my personal iCloud account but don't know how to do this without deleting all data and

    I have a school ipad with iCloud using a different ID (my school email address) . I am leaving and want to buy my own ipad and transfer all my data and docs to my personal iCloud account but don't know how to do this without deleting all data and photos?

    Heya Katie!!
    So, the article you have there, HT4895, is pretty good. Just look at the FAQ section of it.
    But basically, you will want to create a backup on your computer through iTunes...Just plug your current iPad into it and make sure your iPad and iTunes are logged in with the same Apple ID. At that point, just create a backup.
    When you get your new iPad, and before you plug it in or set it up, follow the directions in this link to change your Apple ID. http://support.apple.com/kb/HT5621?viewlocale=en_US
    Once you have that done, plug your new iPad into your computer to sync up with iTunes. Follow the directions for Restore from Backup and it should bring all that info back to your new iPad.
    And changing your Apple ID email info will allow you to have your own!!! This should solve all your issues and GL!!!

  • I am attempting to upgrade from Adobe Premier Elements 9 to Adobe Premier Elements 13 after using 13's trial version for a few weeks.  I am unable to find where and how to do this without losing the project I have been working on.  Please help?

    I am attempting to upgrade from Adobe Premier Elements 9 to Adobe Premier Elements 13 after using 13's trial version for a few weeks.  I am unable to find where and how to do this without losing the project I have been working on.  Please help?

    Vere Clarke
    Premiere Elements 9.0/9.0.1 and Premiere Elements 13 are standalone products.
    So, you can have both on the same computer, but only open one for your work.
    The classical recommendation is to finish a project in the version in which it was created since there
    is no guarantee that a project from an earlier version will open in the later version. Probably will, but
    no guarantees. And, when you do explore this, do it from a copy of the earlier version project. Once you
    take the earlier version project into a later version one, you cannot go back to edit the later version edited
    project in the earlier version program.
    If you have both versions (9 and 13) on the same computer and you have not moved, deleted, renamed any of the version 9's files/folders,
    right click the saved closed Premiere Elements 9.0/9.0.1 project file, select Open With, and then Adobe Premiere Elements 13.
    (Your 9.0/9.0.1 saved closed project file should be found in Libraries/Documents/Adobe/Premiere Elements/9.0.)
    Please review and consider. If any questions or need clarification, please do not hesitate to let me know.
    Thank you.
    ATR

  • The volume keys on my Logitech K760 wireless keyboard do not work with my 2.3 GHz, Intel Core i5 Mac mini which runs Mac OS X 10.7.4. Anyone know how to correct this without having to re-code firmware?

    My first post to the Apple Support Community so it looks like all I wanted to know is covered in the title. The research I have done led me to solutions that I am not comfortable trying for fear of irreparably damaging my keyboard and/or Mac mini. Does anyone have a simpler solution? Please? Hellooooo?
    Just in case the title is too long to show, I have re-pasted here:
    The volume keys on my Logitech K760 wireless keyboard do not work with my 2.3 GHz, Intel Core i5 Mac mini which runs Mac OS X 10.7.4. Anyone know how to correct this without having to re-code firmware?

    BDAqua wrote:
    Hello & welcome to the Forums!
    I think Spark cured this for another person and the same problem...
    http://www.shadowlab.org/Software/spark.php
    http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ukelele
    http://doublecommand.sourceforge.net/
    Thank you for the response. Unfortunately, I could not figure out how to work the above applications. I thought that i had managed to assign the appropriate function keys in Spark to their volume counterparts, but it had no effect. Below is a screen shot. Do you see anything amiss?

  • How to Compile this prog. i DOS prompt.

    Hey Friends,
    I don't know how to compile this prog. on DOS prompt, kindly tell.
    // My Java Prog.
    package package1;
    import java.awt.Graphics;
    import java.lang.Number;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.awt.Color;
    import java.awt.event.*;
    import java.applet.Applet;
    import java.io.*;
    import java.util.*;
    import java.Applet.*;
    /* <applet code="abc" width=600 height=1000 > </applet> */
    public class abc extends Applet implements Runnable {
    Hashtable dataFile = new Hashtable();
    StringBuffer sb;
    String Date,Time,Freq;
    double KarDmd,KarDwl,KarShr,KarGen;
    boolean flag = true ;
    Thread myThread = null;
    * init
    public void init(){
    setBackground(Color.gray);
    * start
    public void start() {
    System.out.println("Start called"+this.getDocumentBase());
    System.out.println("Start called"+this.getCodeBase());
    myThread = new Thread(this );
    myThread.start();
    }//close thread
    public void run(){
    while (flag){
    try {
    URL url = new URL(this.getCodeBase(),"servlet/FileReadingServlet");
    HttpMessage message = new HttpMessage(url);
    InputStream in = message.sendGetMesage(null);
    ObjectInputStream ois = new ObjectInputStream(in);
    //String readStream = (String)ois.readObject();
    dataFile = (Hashtable)ois.readObject();
    //sb = new StringBuffer(readStream);
    System.out.println("Applet Read :"+dataFile);
    this.repaint();
    try {
    Thread.sleep(10000);
    }catch (InterruptedException io){}
    }catch (Exception e){
    e.printStackTrace();
    flag = false;
    }//while
    }//close run
    public void paint (Graphics g){
    g.clearRect(0,0,700,450);
    g.drawString("Date :", 500,16);
    g.drawString((String)dataFile.get("DATE"), 550,16);
    g.drawString("TIME:",500,32);
    g.drawString((String)dataFile.get("TIME"), 550,32);
    g.drawString("FREQ :",500,48);
    g.drawString((String)dataFile.get("FREQ"), 550,48);
    // "KARNATAKA"
    g.setColor(Color.cyan);
    g.drawRect(10,50,150,100);
    g.fillRect(10,50,150,100);
    g.setColor(Color.black);
    g.drawString("KARNATAKA",25,65);
    g.drawLine(160,100,250,100);
    g.drawString("GENERATION ",12,87);
    String KAR_GEN = this.getGeneration((String)dataFile.get("KAR_DMD"),
    (String)dataFile.get("KAR_DRL"));
    g.drawString(KAR_GEN ,120,87);
    g.drawString("SCHEDULE",12,107);
    g.drawString((String)dataFile.get("KAR_SHD"),120,107);
    g.drawString("DRAWL ",12,127);
    g.drawString((String)dataFile.get("KAR_DRL"),120,127);
    g.drawString("DEMAND ",12,147);
    g.drawString((String)dataFile.get("KAR_DMD"),120,147);
    g.drawLine(92,70,92,150);
    //"KAPS"
    g.setColor(Color.green);
    g.drawRect(12,5,85,30);
    g.fillRect(12,5,85,30);
    g.setColor(Color.black);
    g.drawString("KAPS",14,20);
    g.drawString("DEMAND:",14,35);
    g.drawString((String)dataFile.get("KAPS_DMD"),70,35);
    //"GOA"
    g.setColor(Color.magenta);
    g.drawRect(100,5,85,30);
    g.fillRect(100,5,85,30);
    g.setColor(Color.black);
    g.drawString("GOA",104,20);
    g.drawString("DEMAND:", 104,35);
    g.drawString((String)dataFile.get("GOA_DMD"),160,35);
    // "ANDHRA PRADESH"
    g.setColor(Color.orange);
    g.drawRect(250,50,150,100);
    g.fillRect(250,50,150,100);
    g.setColor(Color.black);
    g.drawLine(32,37,32,50);
    g.drawLine(110,35,110,50);
    g.drawString("ANDHRA PRADESH",268,65);
    g.drawString("GENERATION ",252,87);
    String AP_GEN = this.getGeneration((String)dataFile.get("AP_DMD"),
    (String)dataFile.get("AP_DRL"));
    g.drawString(AP_GEN,350,87);
    g.drawString("SCHEDULE",252,107);
    g.drawString((String)dataFile.get("AP_SHD"),350,107);
    g.drawString("DRAWL",252,127);
    g.drawString((String)dataFile.get("AP_DRL"),350,127);
    g.drawString("DEMAND",252,147);
    g.drawString((String)dataFile.get("AP_DMD"),350,147);
    g.drawLine(332,70,332,150);
    // "NTPC"
    g.setColor(Color.pink);
    g.drawRect(250,3,85,30);
    g.fillRect(250,3,85,30);
    g.setColor(Color.black);
    g.drawString("NTPC",252,14);
    g.drawString("DEMAND:",252,30);
    g.drawString((String)dataFile.get("NTPC_DMD"),305,30);
    //"HVDC"
    g.setColor(Color.green);
    g.drawRect(350,3,85,30);
    g.fillRect(350,3,85,30);
    g.setColor(Color.black);
    g.drawString("HVDC",352,14);
    g.drawString("DEMAND:",352,30);
    g.drawString((String)dataFile.get("HVDC_DMD"),405,30);
    //"GAUZACK"
    g.setColor(Color.magenta);
    g.drawRect(450,80,90,30);
    g.fillRect(450,80,90,30);
    g.setColor(Color.black);
    g.drawString("GAZ",452,90);
    g.drawString("DEMAND:",452,105);
    g.drawString((String)dataFile.get("GAZ_DMD"),510,105);
    g.drawLine(160,250,250,250);
    g.drawLine(85,150,85,200);
    g.drawLine(160,125,250,225);
    g.drawLine(270,300,270,330);
    g.drawLine(370,300,370,330);
    g.drawLine(400,230,450,230);
    g.drawLine(400,100,450,100);
    g.drawLine(270,33,270,50);
    g.drawLine(370,33,370,50);
    //"KERALA"
    g.setColor(Color.green);
    g.drawRect(10,200,150,100);
    g.fillRect(10,200,150,100);
    g.setColor(Color.black);
    g.drawString("KERALA",62,215);
    g.drawString("GENERATION ",12,237);
    String KER_GEN = this.getGeneration((String)dataFile.get("KER_DMD"),
    (String)dataFile.get("KER_DRL"));
    g.drawString((String)dataFile.get("KER_GEN"),120,237);
    g.drawString("SCHEDULE ",12,257);
    g.drawString((String)dataFile.get("KER_SHD"),120,257);
    g.drawString("DRAWL",12,277);
    g.drawString((String)dataFile.get("KER_DRL"),120,277);
    g.drawString("DEMAND",12,297);
    g.drawString((String)dataFile.get("KER_DMD"),120,297);
    //"TAMIL NADU"
    g.drawLine(92,220,92,300);
    g.drawLine(325,150,325,200);
    g.setColor(Color.yellow);
    g.drawRect(250,200,150,100);
    g.fillRect(250,200,150,100);
    g.setColor(Color.black);
    g.drawString("TAMIL NADU",272,215);
    g.drawString("GENERATION ",252,237);
    String TN_GEN = this.getGeneration((String)dataFile.get("TN_DMD"),
    (String)dataFile.get("TN_DRL"));
    g.drawString((String)dataFile.get("TN_GEN"),350,237);
    g.drawString("SCHEDULE ",252,257);
    g.drawString((String)dataFile.get("TN_SHD"),350,257);
    g.drawString("DRAWL ",252,277);
    g.drawString((String)dataFile.get("TN_DRL"),350,277);
    g.drawString("DEMAND:",252,297);
    g.drawString((String)dataFile.get("TN_DMD"),350,297);
    g.drawLine(332,220,332,300);
    // "PONDYCHERRY"
    g.setColor(Color.magenta);
    g.drawRect(450,220,90,30);
    g.fillRect(450,220,90,30);
    g.setColor(Color.black);
    g.drawString("PDY",452,230);
    g.drawString("DEMAND:",452,245);
    g.drawString((String)dataFile.get("PDY_DMD"),510,245);
    //"NLY"
    g.setColor(Color.green);
    g.drawRect(250,330,90,30);
    g.fillRect(250,330,90,30);
    g.setColor(Color.black);
    g.drawString("NLY",252,340);
    g.drawString("DEMAND:",252,355);
    g.drawString((String)dataFile.get("NLY_DMD"),310,355);
    //"MAPS"
    g.setColor(Color.pink);
    g.drawRect(350,330,90,30);
    g.fillRect(350,330,90,30);
    g.setColor(Color.black);
    g.drawString("MAPS",352,340);
    g.drawString("DEMAND:",352,355);
    g.drawString((String)dataFile.get("MAPS_DMD"),410,355);
    g.setColor(Color.black);
    //g.drawLine(440,306,620,306);
    //g.drawLine(440,332,620,332);
    //g.drawLine(440,358,620,358);
    //g.drawLine(530,280,530,388);
    for(int i=70;i<150;i=i+20) g.drawLine(10,i,160,i);
    for(int i=70;i<150;i=i+20) g.drawLine(250,i,400,i);
    for(int i=220;i<300;i=i+20) g.drawLine(10,i,160,i);
    for(int i=220;i<300;i=i+20) g.drawLine(250,i,400,i); }//close paint
    * stop
    public void stop() {
    myThread.destroy();
    * destroy
    public void destroy() {
    * getAppletInfo
    * @return java.lang.String
    public String getAppletInfo() {
    return "Applet Information";
    private String getGeneration(String DMD,String DRL){
    double _gen = 0;
    if ( ( DMD != null) && ( DRL != null)){
    Double DMDOB = new Double(DMD);
    Double DRLOB = new Double(DRL);
    gen = DMDOB.doubleValue() - _DRLOB.doubleValue();
    return new Double (_gen).toString();
    } //close class

    Change your directory to the directory above package1.
    Assuming that you've got d:/projects/src/package1/abc.java you'd want to be in d:/projects/src.
    Run javac referencing the abc class relatively:
    d:\projects\src> javac package1/abc.javaThis should get you abc.class in the package1 directory.
    Hope this helps.

  • I am using system 10.7.3 and my I photo 9.2.3 keeps crashing upon start up.  Does anyone know how to correct this without losing my photos?

    I am using system 10.7.3 and my I photo 9.2.3 keeps crashing upon start up.  Does anyone know how to correct this without losing my photos?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Step 1
    Enter the name of the crashed application or process in the Filter text field. Post the messages from the time of the last crash, if any — the text, please, not a screenshot.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
    Step 2
    Still in the Console window, look under User Diagnostic Reports for crash reports related to the process. The report name starts with the name of the crashed process, and ends with ".crash". Select the most recent report and post the contents — again, the text, not a screenshot. For privacy’s sake, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post shutdownStall or hang logs — they're very long and not helpful.

  • I plugged in iPhone 5 charger to my MacBook Pro and it immediately shut down and I can't get it restarted. Any ideas how to do this without removing the battery?

    I plugged in iPhone 5 charger to my MacBook Pro and it immediately shut down and I can't get it restarted. Any ideas how to do this without removing the battery?

    If you have your MBP charger, try a SMC reset:
    http://support.apple.com/en-us/HT201295
    If no success, make an appointment at an Apple store genius bar.
    Ciao.

  • How to compile this java files ?

    I have two files Foo.java & Foo2.java in separate packages.
    PLEASE let me know how to compile these files .
    package XYZ;
    public class Foo {   
    public static void main(String[] args) {    }
    package XYZ.ABCD;
    class Foo2 extends Foo{
    public static void main(String[] args) {     }
                                               }I'm getting .. following error.
    XYZ\ABCD\Foo2.java:3: cannot find symbol
    symbol: class Foo
    class Foo2 extends Foo{
    ^
    1 error

    You need an import statement in Foo2.java.
    import XYZ.Foo;This should come before the package statement.

  • Running Lion. Verified Disk. Warned HD corrupt, and need to restart from disk and run repair. No idea how to do this without a physical disk.

    Hi,
    My MacBook Pro has been acting up a little. I tried the usual repair options: repair permissions, zap P-ram, and Safe Boot (although I've never gotten the machine to Safe Boot properly since installing Lion). I ran Verify Disk and it stopped part way through, saying that the HD is corrupt. It instructed me to start up from the (installation?) disk and run the repair function from the disk utility. (I've included a screen shot of the Verify Disk screen). I have no idea how to go about this without a physical start up disk (Lion). I do have the disks that came with the computer at the time of purchase (Will one of those work?).
    Thanks,
    JGW

    Thank you!
    I was able to access the recovery function and used the Disk Utility to repair my HD.
    Would you recommend that I still re-install Lion?
    Again, thank you for taking the time to help me!
    Best wishes,
    JGW

  • I am not sure how to do this without a b

    I am building a search function that will allow the user to search based on the following criteria: Instrument, Location, Notification Number, a date Range and a past Due Date.
    I have this part written like so:
    reportOOT
            if(!tool.equals("")){
                report toolType = reportDB.ToolType(newID, reportInformation, tool);
                request.setAttribute("toolType", toolType);
            } else if(!locate.equals("")) {
                report locations = reportDB.Location(newID, reportInformation, locate);
                request.setAttribute("locations", locations);
            } else if ....
    reportInterface
       public report ToolType(String newID, report reportInformation, String tool);
       public report Location(String newID, report reportInformation, String locate);However, I think it would be cool to allow them to be able to search even more specific reports. For example, I would like them to be able to search for InstrumentX, in locationX during dateX and dateY.
    I guess my question is - How would one go about this without having to write multiple IF statements and case by case methods or am I just going to have to do this?
    I would appreciate any and all advice! Thanks!!
    Crystal

    Hi,
    Given the seemingly similarity of the interface method signatures,
    you could use reflection to invoke each one of them.
    All that would be needed to supply to the invoker method is a simple pair of criteria name and value.
    The criteria name = the name of a method of ReportInterface.
    The criteria value = the last parameter (third one) value of the method.
    Here is an example:
    interface ReportInterface
        public Report toolType(String newID, Report reportInformation, String tool);
        public Report location(String newID, Report reportInformation, String locate);
    class Criteria
        String name;
        String value;
    class ReportOOT
         * Generic invoker.
         * criteria.name must match a ReportInterface method name.
         * criteria.value will be passed as third paraemeter of the ReportInterface method.
        Report invokeSearch(ReportInterface reportDB, String newId, Report reportInformation, Criteria criteria)
        throws Exception
            Method method = reportDB.getClass().getMethod(criteria.name, new Class[] { String.class, Report.class, String.class });
            return (Report)method.invoke(reportDB, new Object[] { newId, reportInformation, criteria.value });
    class Test
        public static void main(String[] args)
            ReportOOT reportOOT;
            ReportInterface reportDB;
            Report reportInformation;
            String newID = "1234";
            Criteria criteria = new Criteria();
            criteria.name = "toolType";
            criteria.value = "abcd";
            Report report = reportOOT.invokeSearch(reportDB, newID, reportInformation, criteria);
    }By the way, interface and classe names should start with an Uppercase letter,
    method and variable names a lowercase one.
    Regards,
    384493

  • When speaking to someone, my call is always dropped, whether I call my contact or she calls me. How to remedy this without expense?

    When speaking to someone, my call is always dropped, whether I call my contact or she calls me. How do I remedy this without expense? I only receive one "dot" (or "bar") inside my home and even on the patio. Coverage is better in the driveway! I live in Florida my home is build like a bunker--poured concrete for protection against hurricanes. Well, it's protection against calls too. How can I fix this without spending lots of money?

    VZW has a Network Extender that may work...I don't think it's too terribly expensive (depending on what you consider expensive)...but I've read on here where some people have had lots of luck with it...and others not so much.  May be worth a try...give VZW a call and see what they can do for you.

  • Iphone 4s locking up after installing 8.0.2 how to fix this without getting a newer phone?  Other 4s users are experiencing same difficulties.

    After installing IOS 8.0.2 the phone has been locking up when using apps such as Facebook.  The screen becomes unresponsive for several minutes after loading an app.  Also, if you double click the home button to shut down the app the screen is unresponsive or the screen becomes black.  I did not have this problem until installing the IOS 8.0.2.  I have talked to a couple other people that have the 4S and they are experiencing the same problems.  The iphone 5 users are not experiencing this problem.  I suspect the processor is too slow to handle the new IOS and the 4S should have not be allowed to update to this IOS if the system was not going to work properly.  Is there a way to fix IOS 8 or return to IOS 7?

    Sorry, but there is no way to downgrade the iOS. To make sure your backup did not contain damaged files after upgrading and restoring, set it up as new device without using the backup and no 3rd party apps installed. If the phone is working after that, add the 3rd party apps back.
    iOS: How to back up your data and set up your device as a new device

  • How to compile freetype2 without byetcode ?

    By default, I think the package freetype2 is compiled with bytecode   :?:
    I'd like to use freetype2 "without" bytecode, because my fonts look ugly. See this thread: http://bbs.archlinux.org/viewtopic.php? … ight=fonts
    The guy who posted has built a package of freetype2 without bytecode. The problem I have is I don't know what I have to do exactly!??
    Can someone explain to me step by step the procedure?
    Thanks in advance!

    phrakture wrote:
    i am 100% certain that recompiling freetype will NOT fix your fonts - you say your fonts are "ugly", which usually implies you're using aliased fonts... what WM are you using?
    if you are using AA fonts, disabling the bytecode interpreter is a poor idea.
    the same effect can be achieved by enabling the freetype autohinter, which will superceed the bytecode interpreter
    in /etc/fonts/local.conf or ~/.fonts.conf
    <!--
    Use the Autohinter
    -->
    <match target="pattern">
    <edit name="autohint" mode="assign">
    <bool>true</bool>
    </edit>
    </match>
    Thanks for your reply. Ok, then I'll try to edit my /etc/fonts/local.conf tonight. My WM is XFCE4.  What I mean by "ugly" is like this:
    http://img.photobucket.com/albums/v458/ … adarch.png
    Look at the letters "x", "k" and number "2".
    With my another machine (Slackware-10), I don't have this problem.
    I'll let you know tonight if your hack works!
    Thanks again.

  • Upgrading suspect hard drive on SL510. How to do this without install disks ?

    Hi,
    My SL510 (supplied Fall 2010) has always had problems with HDD. Latest issue took a complete re-image to resolve followed by 0.5 day to restore files from back-up). I no longer have any trust in the HDD, but the rest of the machine works fine. 
    According to several other posts I reviewed on here, most notably this one ; it seems to be a feasible task to :
     1) Acquire a new HDD, SSD seems to be a popular choice.
     2) Use Acronis True Image or Clonezilla to make a complete image of the (failing) HDD to an external USB drive and make a boot CD.
    3) Put new HDD into SL510, boot from CD and use the cloning s/ware to image the old HDD onto the new one.
    Seems reasonable and straightforward. However I have a few questions :
    1) Has anyone actually followed above steps and can report success and/or gotchas ?
    2) My main concern (and it applies even if I don't have to change the HDD), is that Lenovo did not supply appropriate recovery media with the laptop, nor even anything obvious like a licence key on a sticker on the laptop.
    While the SL510 has Win 7 Ultimate, the R&R disk and the Product Recovery CDs provided are both for Win XP and have never worked with the laptop. There was a Recovery partition on the HDD as well, again this never worked that I could figure out, and somewhere along the line it got trashed (my fault), and no longer exists.
    So, for instance on the most recent recovery from an old system image, Windows decided my O/S was potentially not genuine and I had to go through a painful re-validation step.
    How can I be sure this issue will not come back to haunt me either at a point of upgrading or some other time ?
    Can I raise a ticket with Lenovo (and if so where) and request that they provide appropriate recovery media or licence key for my device ?
    Appreciate hearing from anyone with prior experience and/or Lenovo service desk person who can shed any light on the above.

    u can make recovery cds from the rescue and recovery in the control panel. your sticker with the license for windows is under the battery. I am currently trying to image one also, we'll see how it goes...

  • How to compile this file!!!

    Hi folks
    I'm trying to compile and create jar file from the following but without success
    http://stein.cshl.org/jade/distrib/
    file name is jadex.tar.gz
    Could you please try it and reply
    best regards

    X-post

Maybe you are looking for

  • I have purchased a new printer.  It is the same make as my old printer.  How do I remove the old printer from my Mac?

    I have purchased a new printer.  It is the same make as my old printer.  How do I remove the old printer from my Mac?

  • MacBook Hard Disk Failure

    My white plastic MacBook running 10.4.11 won't boot. I get the folder with a question mark in it. I tried several things like mounting the disk from my iMac using Firewire Target Disk Mode, reseating the internal HD, but I wasn't able to mount the Ma

  • Customisation of SAP-B1

    hi all, iam new in SAP B1-2005 ,here we started Customisation of SAPB1 my modules are like thisie 1.)Purchasing A/P  -> 1.1)Goods Receipt P.O -->Step1)In this i had to modify the  Menu Item to be changed as "Material Inward Receipt"(Requirement). Ste

  • ESS--- Change own data iview

    Hi All How would i disable e-mail field on Change own data iview, I don't want employees to maintain the e-mail,they should only view their e-mail.They can  maintain the rest of the fields, Licence plate number, extension, room no.... Appreciate your

  • Which ODBC driver for Personal Oracle8?

    I'm using Personal Oracle8 and trying to connect via ODBC from a Java program using JDBC. I can connect to MS Access 7 via ODBC but I cannot connect to Personal Oracle8 using the delivered ODBC 8 driver (8.0.4.0). Looking through the technet product