title: Type Class is a raw type. References to generic type Class<T> should be parameterized
body: <p>Class activityItems work fine but i get warning "Type Class is a raw type. References to generic type Class should be parameterized". How to fix it ?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>public class MainActivity extends ListActivity {
  
      String classes[] = { "AccountActivity", "CountsActivity", "" };
      String listItems[] = { "Accounts", "Counts", "temp" };
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          View layout = findViewById(R.id.container);
          Drawable background = layout.getBackground();
          background.setAlpha(110);
  
          setListAdapter(new ArrayAdapter&lt;String&gt;(this, 
                  android.R.layout.simple_list_item_1, listItems));
  
      }
  
      @Override
      protected void onListItemClick(ListView l, View v, int position, long id) {
          super.onListItemClick(l, v, position, id);
          String item = classes[position];
          try {
              Class activityItems = Class.forName("com.arbaz.hk." + item);
              Intent intent = new Intent(this, activityItems);
              startActivity(intent);
          } catch (ClassNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
      }
  }
  </code></pre>