Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.*;
- public class StazioniSintonizzate {
- public static int quanteStazioni(Televisore[] t, String stazione) {
- int num = 0;
- for(int i = 1; i <= t.length + 1; i++) {
- for(int j = 1; j <= t[j].quantiCanali() + 1; j++) {
- if (t[j].qualeStazione(j).equals(stazione)) {
- num++; }
- }
- }
- return num;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment