This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Scanner; | |
class RomanToDecimal { | |
private static Scanner input = new Scanner(System.in); | |
private static List<Character> romanChars = new LinkedList<>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String[] args) { | |
Tree tree = new Tree(); | |
tree.add(8); | |
tree.add(2); | |
tree.add(3); | |
tree.add(9); | |
tree.add(6); | |
tree.add(1); | |
tree.add(4); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Node { | |
int value; | |
Node left, right; | |
Node(int value) { | |
this.value = value; | |
left = null; | |
right = null; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Tree { | |
Node root; | |
public void add(int value) { | |
root = add(root, value); | |
} | |
public void remove(int value) { | |
root = remove(root, value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Hipotenuza { | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
int a, b, c; | |
System.out.println("************************\nKalkulimi i hipotenuzes\n************************"); | |
System.out.print("a: "); | |
a = input.nextInt(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class MinMaxAvg { | |
public static void main(String[] args) { | |
int minNumra = 20, maxNumra = 180; | |
Scanner input = new Scanner(System.in); | |
int[] userNumbers = new int[20]; | |
System.out.println("Shkruani 20 numra:"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Scanner; | |
public class NumeroFjalet { | |
static int max = 10; | |
static List<Character> endsWith = new ArrayList(); | |
static String flag = "END"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sample; | |
import javafx.fxml.FXML; | |
import javafx.fxml.Initializable; | |
import javafx.scene.control.Button; | |
import javafx.scene.control.RadioButton; | |
import javafx.scene.control.TextField; | |
import javafx.scene.control.ToggleGroup; | |
import javafx.scene.layout.HBox; | |
import javafx.scene.shape.Rectangle; |