import java.awt.Frame;
public class Main {
public static void main() {
Frame[] frames = Frame.getFrames();
for (int i = 0; i < frames.length; i++) {
String title = frames[i].getTitle();
System.out.println(title);
boolean isVisible = frames[i].isVisible();
System.out.println(isVisible);
}
}
}