JAVA
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*Enter any number from 1-9 amd get your own specialized PositiveMessage **/
import java.util.*;
public class PositiveMessage
{
public static void main(String[] args) {
int a;
Scanner ab=new Scanner(System.in);
a=ab.nextInt();
switch(a)
{
case 1:System.out.println("Plant your garden and decorate your own soul,\n instead of waiting for someone to bring you flowers.");
break;
case 2:System.out.println("Keep your eyes on the stars and your feet on the ground.");break;
case 3:System.out.println("There is no elevator to success — you have to take the stairs.");break;
case 4:System.out.println("Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.");break;
case 5:System.out.println("Your failure does not define you, your determination does.");break;
case 6:System.out.println("Do not set yourself on fire in order to keep others warm.");break;
case 7:System.out.println("Life may not be the party we hoped for, but while we're here, we should dance.");break;
case 8:System.out.println("Do not go where the path may lead, go instead where there is no path and leave a trail");break;
case 9:System.out.println("We are what we repeatedly do. Excellence, then, is not an act, but a habit.");break;
default:System.out.println("You are supposed to Enter any number from 1 to 9");break;
}
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run