Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
{
public static void main(String[] args)
{
int s1,s2;
s1=7;
s2=2;
System.out.println((double)s1/s2-2.5);
}
}
public class Test2
{
public static void main(String[] args)
{
int number;
number=40;
if (number % 2==1)
System.out.println("Sayı tek");
else
System.out.println("Sayı çift");
}
}
public class Test3
{
public static void main(String[] args)
{
int x=3;
int y=2;
if (x>2)
{
if (y>2)
{
int z=x+y;
System.out.println("z="+z);
}
else
System.out.println("x="+x);
}
}
}
import java.util.Scanner;
public class Test4
{
public static void main(String[] args)
{
Scanner klavye=new Scanner(System.in);
int i=1;
while (i<10)
{
if (i % 2==0)
System.out.print(i+"-");
System.out.print("*");
i++;
}
}
}
public class Test5
{
public static void main(String[] args)
{
int sayi=5;
float sonuc=fonk(sayi);
System.out.println("Sonuç="+sonuc);
}
public static float fonk(int x)
{
float s=1;
for(int i=1;i<=x;i++)
s=s*i;
return s;
}
}
public class Test6
{
public static void main(String[] args)
{
int[] dizi={3,7};
deg(dizi[0],dizi[1]);
System.out.println("dizi[0]="+dizi[0]);
System.out.println("dizi[1]="+dizi[1]);
}
public static void deg(int s1, int s2)
{
int gecici;
gecici=s1;
s1=s2;
s2=gecici;
}
}
public class Test7
{
public static void main(String[] args)
{
String str1="15";
String str2="60";
String str3;
str3=str1+str2;
System.out.println("Sonuç="+str3);
int s1=15;
int s2=60;
int s3;
s3=s1+s2;
System.out.println("Sonuç="+s3);
}
}
public class Test8
{
public static void main(String[] args)
{
String mesaj="MeSaJ";
System.out.println(mesaj);
System.out.println("ali");
}
//overload
//signature=imza
//override
//encapsulation=information hiding=sarmalama
//polymorhism
//inheritance
//constructor=kurucu
//getter=accessor
//setter=mutator
}
![]() |
Notes is a web-based application for online 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 14 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