title: The method getProperty(String) is undefined for the type Properties
body: <p>I have DBUtil class which contains the configuration of database. I have property file which contains the DB details. I am trying to load the property file with this class but I am getting an error on load() method saying <code>The method getProperty(String) is undefined for the type Properties</code>. I really dont know what is wrong.</p>
  
  <p><strong>DBUtil class</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>package com.varun.util;
  
  import java.io.FileNotFoundException;
  import java.io.IOException;
  import java.io.InputStream;
  import java.sql.DriverManager;
  import java.sql.SQLException;
  
  import com.arjuna.ats.internal.arjuna.recovery.Connection;
  import com.sun.xml.fastinfoset.sax.Properties;
  
  public class DbUtil {
   
   private static Connection connection = null;
   public static Connection getConnection(){
    if(connection!=null)
    {
     return connection;
    }
    else
    {
     try{
      
      Properties prop=new Properties();
      InputStream inputStream=DbUtil.class.getClassLoader().getResourceAsStream("/db.properties");
      prop.load(inputStream); // The method load(InputStream) is undefined for the type Properties
      String driver =  prop.getProp("");//The method getProp(String) is undefined for the type Properties
                  String url = prop.getProperty("url");//The method getProperty(String) is undefined for the type Properties
                  String user = prop.getProperty("user"); //The method getProperty(String) is undefined for the type Properties
                  String password = prop.getProperty("password"); //The method getProperty(String) is undefined for the type Properties
                  Class.forName(driver);
                  connection = (Connection) DriverManager.getConnection(url, user, password);
      
     }catch(ClassNotFoundException e)
     {
       e.printStackTrace();
     }
     catch (SQLException e) {
                  e.printStackTrace();
              } catch (FileNotFoundException e) {
                  e.printStackTrace();
              } catch (IOException e) {
                  e.printStackTrace();
              }
     return connection;
    }
   }
  
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have commented the error along with the line. </p>