2. soru
package javaTest;
import java.util.Scanner;
public class odev {

public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String number = in.nextLine();
int total = 0;
for(int i = 0; i < number.length();i++) {
total += faktoriyel(Integer.valueOf(number.substring(i, i+1)));
}
if(total==Integer.valueOf(number))
System.out.println("Eşit");
else
System.out.println("Eşit Değil");
}
private static int faktoriyel(int n) {
if (n <= 1) {
return 1;
} else {
return n * faktoriyel(n - 1);
}
}
}
3. soru

package javaTest;
public class odev {
public static void main(String[] args) {
String hexValue = "A7BF";
System.out.println(Integer.parseInt(hexValue,16));
}
}
4. soru
package javaTest;
import java.util.Scanner;
public class odev {
    
public static void main(String[] args) {
     Scanner in = new Scanner(System.in);
int number = in.nextInt();
int total = 0;
for(int i = 1; i <=number; i++) {
     if(number % i == 0)
         total += i;
}
System.out.println(total);
}
}