NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

import java.util.Scanner;
import java.util.Timer;
import java.util.TimerTask;
public class Main
{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);

String join = input.nextLine();
















do {

if(join.equals("j")) {
System.out.println("Sistem açılıyor......");

System.out.println("1- Yıkama Modları");
System.out.println("2- Kurutma Modları");
System.out.println("3- Farklı Modlar");
System.out.println("4- Ayarlar");
System.out.println("5- Kapat");

int chooseFirst = input.nextInt();

if(chooseFirst==1) {
System.out.println("Mod seçiniz..");
System.out.println("1- Hızlı Yıkama");
System.out.println("2- Günlük Yıkama");
System.out.println("3- Ekonomik Yıkama");
System.out.println("4- Yoğun Yıkama");
System.out.println("5- Ön Yıkama");



int chooseModeWash = input.nextInt();



if(chooseModeWash==1) {
System.out.println("İşlem Başlatılıyor..");



Timer timer = new Timer();
TimerTask task = new TimerTask() {
int seconds = 60;

@Override
public void run() {
System.out.println("Kalan Zaman:" + seconds--);
if(seconds==0)
System.out.print("Yıkama başarıyla tamamlandı..");
}
};
timer.schedule(task, 0, 1000);
break;



}
if(chooseModeWash==2) {
System.out.println("İşlem Başlatılıyor..");



Timer timer = new Timer();
TimerTask task = new TimerTask() {
int seconds = 60;

@Override
public void run() {
System.out.println("Kalan Zaman:" + seconds--);
if(seconds==0)
System.out.print("Yıkama başarıyla tamamlandı..");
}
};
timer.schedule(task, 0, 1000);
break;


}
if(chooseModeWash==3) {
System.out.println("İşlem Başlatılıyor..");


Timer timer = new Timer();
TimerTask task = new TimerTask() {
int seconds = 60;

@Override
public void run() {
System.out.println("Kalan Zaman:" + seconds--);
if(seconds==0)
System.out.print("Yıkama başarıyla tamamlandı..");
}
};
timer.schedule(task, 0, 1000);
break;



}
if(chooseModeWash==4) {
System.out.println("İşlem Başlatılıyor..");


Timer timer = new Timer();
TimerTask task = new TimerTask() {
int seconds = 60;

@Override
public void run() {
System.out.println("Kalan Zaman:" + seconds--);
if(seconds==0)
System.out.print("Yıkama başarıyla tamamlandı..");
}
};
timer.schedule(task, 0, 1000);
break;



}
if(chooseModeWash==5) {
System.out.println("İşlem Başlatılıyor..");


Timer timer = new Timer();
TimerTask task = new TimerTask() {
int seconds = 60;

@Override
public void run() {
System.out.println("Kalan Zaman:" + seconds--);
if(seconds==0)
System.out.print("Yıkama başarıyla tamamlandı..");
}
};
timer.schedule(task, 0, 1000);
break;


}
break;
}

















if(chooseFirst==2) {
System.out.println("Mod seçiniz..");
System.out.println("1- Hassas Kurutma");
System.out.println("2- Hızlandırılmış Kurutma");


int chooseModeDry = input.nextInt();


if(chooseModeDry==1) {
System.out.println("İşlem Başlatılıyor..");
Timer timer = new Timer();
TimerTask task = new TimerTask() {
int seconds = 60;

@Override
public void run() {
System.out.println("Kalan Zaman:" + seconds--);
if(seconds==0)
System.out.print("Yıkama başarıyla tamamlandı..");
}
};
timer.schedule(task, 0, 1000);
break;


}
if(chooseModeDry==2) {
System.out.println("İşlem Başlatılıyor..");
Timer timer = new Timer();
TimerTask task = new TimerTask() {
int seconds = 60;

@Override
public void run() {
System.out.println("Kalan Zaman:" + seconds--);
if(seconds==0)
System.out.print("Yıkama başarıyla tamamlandı..");
}
};
timer.schedule(task, 0, 1000);
break;


}
break;
}











if(chooseFirst==3) {
System.out.println("Mod seçiniz..");
System.out.println("1- Eko-Programı");
System.out.println("2- Lekeleri Çıkarma");
System.out.println("3- 90 Dereceye Kadar Isıtma");
System.out.println("4- Ekstra Durulama");
System.out.println("5- Hızlandırılmış Kurutma");


int chooseModeDifferentMode = input.nextInt();


if(chooseModeDifferentMode==1) {
System.out.println("İşlem Başlatılıyor..");
Timer timer = new Timer();
TimerTask task = new TimerTask() {
int seconds = 60;

@Override
public void run() {
System.out.println("Kalan Zaman:" + seconds--);
if(seconds==0)
System.out.print("Yıkama başarıyla tamamlandı..");
}
};
timer.schedule(task, 0, 1000);
break;



}
if(chooseModeDifferentMode==2) {
System.out.println("İşlem Başlatılıyor..");
Timer timer = new Timer();
TimerTask task = new TimerTask() {
int seconds = 60;

@Override
public void run() {
System.out.println("Kalan Zaman:" + seconds--);
if(seconds==0)
System.out.print("Yıkama başarıyla tamamlandı..");
}
};
timer.schedule(task, 0, 1000);
break;



}
if(chooseModeDifferentMode==3) {
System.out.println("İşlem Başlatılıyor..");
Timer timer = new Timer();
TimerTask task = new TimerTask() {
int seconds = 60;

@Override
public void run() {
System.out.println("Kalan Zaman:" + seconds--);
if(seconds==0)
System.out.print("Yıkama başarıyla tamamlandı..");
}
};
timer.schedule(task, 0, 1000);
break;



}
if(chooseModeDifferentMode==4) {
System.out.println("İşlem Başlatılıyor..");
Timer timer = new Timer();
TimerTask task = new TimerTask() {
int seconds = 60;

@Override
public void run() {
System.out.println("Kalan Zaman:" + seconds--);
if(seconds==0)
System.out.print("Yıkama başarıyla tamamlandı..");
}
};
timer.schedule(task, 0, 1000);
break;




}
if(chooseModeDifferentMode==5) {
System.out.println("İşlem Başlatılıyor..");
Timer timer = new Timer();
TimerTask task = new TimerTask() {
int seconds = 60;

@Override
public void run() {
System.out.println("Kalan Zaman:" + seconds--);
if(seconds==0)
System.out.print("Yıkama başarıyla tamamlandı..");
}
};
timer.schedule(task, 0, 1000);
break;



}
break;
}

















if(chooseFirst==4) {
System.out.println("Mod seçiniz..");
System.out.println("1- Otomatik Su Seviye Kontrolü");
System.out.println("2- Durulama Gecikmesi");
System.out.println("3- Yarım Yük");


int chooseSettings = input.nextInt();


if(chooseSettings==1) {
System.out.println("İşlem Başlatılıyor..");
}
if(chooseSettings==2) {
System.out.println("İşlem Başlatılıyor..");
}
if(chooseSettings==3) {
System.out.println("İşlem Başlatılıyor..");
}
break;
}


















String s = String.valueOf(chooseFirst);
if(s.equals("q")) {
System.out.println("Sistem kapanıyor...");
break;
}
else {
continue;
}


}
else{
continue;
}

} while (join.equals("j"));








/* int num = 0;
do {
if (num<0){
System.out.println("You printed out a negative number");
}
System.out.println("Enter a natural number ");
int num=type.nextInt();
} while (num<0); */




}
}







------------------------------------------------------------------------------------------
New
------------------


import java.util.Scanner;
import java.util.Timer;
import java.util.TimerTask;
public class Main
{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);

String join = input.nextLine();
if (join.equals("j")) {

String[] modes = {"Çamaşırları yıka", "Hızlı yıkama", "Kurutma", "Çıkış"};
System.out.println("-----------------------");


int counter = 0;
for(String mode: modes) {
counter += 1;
System.out.println(counter + "- " + mode);
}

int command = input.nextInt();
String text;
switch (command) {
case 1:
text = "Çamaşırlar yıkanıyor..";
bosh(text);
break;
case 2:
text = "Çamaşırlar hızlı yıkanıyor..";
bosh(text);
break;
case 3:
text = "Çamaşırlar kurutuluyor..";
bosh(text);
break;
case 4:
text = "Çıkış yapıldı.";
System.out.println(text);
break;
default:
text = "Hatalı bir işlem yaptınız.";
System.out.println(text);
break;
}

}
}

public static void bosh(String timer_text) {
System.out.println(timer_text);
System.out.println("********************");

Timer myTimer=new Timer();
TimerTask gorev =new TimerTask() {

int sayac = 60;

@Override
public void run() {
sayac--;
System.out.println(sayac);
if(sayac==0)
myTimer.cancel();
}
};

myTimer.schedule(gorev,0,1000);
}
}




--------------------------------------------------------------------------








import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String join = input.nextLine();

while(true) {
if(join.equals("j")) {

for(int mavi = 0 ; mavi <= 10 ; mavi+=2) {
System.out.println(mavi + "");
try {
Thread.sleep(1500);
} catch(Exception e) {
System.out.println(e.getMessage());
}

}
}
continue;
}

}
}












--------------------------------------------------------------------------
















import java.util.Scanner;
import java.awt.*;
import java.awt.event.*;

public class Main implements KeyListener
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
String join = input.nextLine();

while(true) {
if(join.equals("j")) {

for(int mavi = 0 ; mavi <= 10 ; mavi+=2) {
System.out.println(mavi + "");
try {
Thread.sleep(1500);
} catch(Exception e) {
System.out.println(e.getMessage());
}

}
}
continue;
}

}

@Override
public void keyPressed(KeyEvent e) {

int key = e.getKeyCode();

if (key == 81) {
System.out.println("çık");
}
}



}

     
 
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.