Answer the question
In order to leave comments, you need to log in
How to convert a console program into a windowed program with a graphical interface in Java FX?
Here is the code for my working console program.
package com.company;
import java.lang.String;
import java.util.Scanner;
public class Exersise_663 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int x [] = new int[28];
System.out.println("Введите оценки учеников через пробел:");
for (int i = 0; i < 28; i++)
x[i] = input.nextInt();
int dva = 0;
for (int i = 0; i < 28; i++) {
if (x[i] <= 2)
x[i] = dva;
dva++;}}
System.out.println(dva>0 ? " Двойки у " + dva + " человек" : "Двоек нет!"); }}
Answer the question
In order to leave comments, you need to log in
You just bind callbacks (onAction) to the necessary interface controls that read the values of your data. Here is a pretty good tutorial for beginners - https://o7planning.org/ru/10623/javafx-tutorial-fo...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question