NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

public class KosulKullanimiOrnek
{
public static void main(String[] args)
{
/*
if (kosul) --> if (true)
{ {
... ...
} }

> a > b
< a < b
<= a <= b
>= a >= b
== a == b
!= a != b
*/

int a = 6;
// Eğer A Sayısı Çift İse Ekrana, A Çifttir Bas
if (a % 2 == 0)
System.out.println("A Çifttir");

// Eğer A Sayısı Tek İse Ekrana, A Tektir Bas
if (a % 2 == 1) { System.out.println("A Tektir"); }

// Eğer A Sayısı 20'den Küçükse K
if (a < 20) { System.out.println("K"); }

// Eğer A Sayısı 20'den Büyükse B
if (a > 20) { System.out.println("B"); }

// Eğer A Sayısı 20'ye Eşitse E Bastır
if (a == 20) { System.out.println("E"); }

// Eğer A Sayısı 50'den Küçük Ve Çiftse

// Eğer A Sayısı 10 dan Küçük veya 100'den Büyükse
// AND && OR ||
if (a < 10 || a > 100)
{

}

// Eğer A Sayısı
// 10dan Küçük Ve Tekse
// Veya
// 10dan Büyük Ve Çiftse
if ( (a < 10 && a % 2 == 1) || (a > 10 && a % 2 == 0))
{

}

// T Diye bir değişken var, a çift sayiysa t'yi 2,
// a tek sayiysa t'yi 50 yap
int t;
if (a % 2 == 0)
t = 2;
else
t = 50;

// degisken = kosul ? true_degeri : false_degeri;
// t = (a % 2 == 0) ? 2 : 50;

int not = 94;

if (not > 90) { System.out.println("A"); }
else if (not > 80) { System.out.println("B"); }
else if (not > 70) { System.out.println("C"); }
else
System.out.println("F");

// tux.reeder.com.tr/js
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.