View sophie_germen.java
import java.util.ArrayList; | |
import java.util.List; | |
//Çözüldü-Solved | |
public class Sophie_Germen { | |
//A bir asal sayi iken 2.a+1 sayısıda asal sayı oluyorsa a sayısına Sophie Germen asalı denir. | |
public static void main(String[] args) { | |
List<Integer> list = new ArrayList<Integer>(); | |
for (int i = 2; i < 100; i++) { | |
boolean divide = false; |
View application(_:didFinishLaunchingWithOptions:)
import UIKit | |
import UserNotifications | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
func registerPushNotifications() { | |
UNUserNotificationCenter.current() | |
.requestAuthorization(options: [.alert, .sound, .badge]) { | |
(granted, error) in |
View registerPushNotification()
func registerPushNotifications() { | |
UNUserNotificationCenter.current() | |
.requestAuthorization(options: [.alert, .sound, .badge]) {(granted, error) in | |
print("Permission granted: \(granted)") | |
} | |
} |
View exampleNotification
{ | |
"aps": { | |
"alert": "Push Notifications Test", | |
"sound": "default", | |
"badge": 1 | |
} | |
} |