BaşlayınÜcretsiz Başlayın

Equal or not

Testing equality is one of the most common operations in programming. Whether validating input, checking conditions, or comparing data, you'll use equality operators constantly. Let's practice this essential skill!

Bu egzersiz

Introduction to Java

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Save the result of checking whether 193 is equal to the value of a to the variable first.
  • Complete the print statement to display the variable first.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

class EqualOrNot {
    public static void main(String[] args) {
    	
        int a = 193;
        
        // Check if 193 is equal to a
        boolean first = ____ ____ ____;
        
        // Complete the print statement
        System.out.println("193 is equal to a: " + ____);
    }
}
Kodu Düzenle ve Çalıştır