Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 26th, 2012  |  syntax: None  |  size: 0.53 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. for (int j = 0; j < komponente.length; j++) {
  2.             if (komponente[j] instanceof MaticnaPlosca){
  3.                 for (int k = 0; k < komponente.length; k++) {
  4.                     if (komponente[k] instanceof Procesor){
  5.                         if ((MaticnaPlosca) komponente[j].jeKompatibilna((Procesor) komponente[k])){
  6.                             System.out.printf("Pomnilnik: %s ima ceno s popustom %d", Pomnilnik.ime, Pomnilnik.);
  7.                         }
  8.                     }
  9.                 }
  10.             }
  11.         }