- for (int j = 0; j < komponente.length; j++) {
- if (komponente[j] instanceof MaticnaPlosca){
- for (int k = 0; k < komponente.length; k++) {
- if (komponente[k] instanceof Procesor){
- if ((MaticnaPlosca) komponente[j].jeKompatibilna((Procesor) komponente[k])){
- System.out.printf("Pomnilnik: %s ima ceno s popustom %d", Pomnilnik.ime, Pomnilnik.);
- }
- }
- }
- }
- }