import java.util.Scanner; class example{ public static void main (String args[]) { Scanner Scan = new Scanner(System.in); String a1 = new String("Win"); String a2 = new String("Loose"); boolean match = false;
if(match) { System.out.print("Eesala Cup Namdhey"); } else{ System.out.print("Cup Illa"); } } } o/p :- Cup Illa 13:31 above question ku intha mari podalam ah bro 13:31
import java.util.Scanner; class Hello { public static void main(String[] args) { System.out.print("Does RCB win or lose? "); Scanner result = new Scanner(System.in); String RCB = result.nextLine(); if (RCB.equals("win")) { System.out.print("EESALA CUP NAMADE"); } else { System.out.print("cup nahi maalum"); } result.close(); } } Is this correct?
i got the input from the user and converted that to uppercase and compared using .equals function import java.util.Scanner; public class ifelsstringcomparison { public static void main(String args[]){ Scanner scan = new Scanner(System.in); System.out.println("Enter the RCB will win or lose"); String result = scan.nextLine(); if (result.toUpperCase().equals("WIN")) { System.out.println("Esaala cup namdhey!!!"); } else if (result.toUpperCase().equals("LOSE")) { System.out.println("Esala cup nahi!!! better luck next time"); } else{ System.out.println("Enter a valid input"); }
Clear Explanation Super bro 👍
You are Hero bro , Thank You for all effort that you put into this java series , we are expecting more topics
13:37 paavam da RCB
Very very useful...❤
And last two workout program kagave indha continue pannalanu thonudhu...😂
I like it🎉❤
Simple And Clear To Understand, Sir. Thank You Sir.
You are most welcome
Crystal clear explanation 👌
Semma ❤ explanation🎉
Anna java DSA video podunga anna
Bro epdi videos la gethu ha edit panurathu bro😇pls athuku oru video podunga la
Surya ,meghana ,ramya kalakkuriye bro 😂😂😂
import java.util.Scanner;
import java.lang.System;
public class Vaaranamaayiram{
public static void main(String arg[]){
System.out.println("Enter meghana is alive or dead");
Scanner scan = new Scanner(System.in);
String meghana = scan.nextLine();
if(meghana.equals("dead"))
{
System.out.print("SURYA WEDS RAMYA");}
else
{
System.out.print("SURYA WEDS MEGHANA");
}
}
}
Output :
Enter meghana is alive or dead
alive
SURYA WEDS MEGHANA
Codingla yaavathu onnu serattum❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤
Good bro
@@KarthikR-ls6jk Thanks bro☺️
Bro indha program 2nd linela
Import java. lang.system podanumnu avasiyam illa bro
@@Kumaresh.saama bro summa therinchikonga avlothan podanumnu avasiyam illa bro
Vera level bro ne🎉❤🎉
John anna collection pathi detail video pannuga
import java.util.Scanner;
class demo
{
public static void main(String args[])
{
Scanner S= new Scanner(System.in);
System.out.print("Enter whether Meghana dead or not: ");
String Meghana = S.nextLine();
if (Meghana.equals ("dead"))
{
System.out.println("Surya meet Ramya");
}
else
{
System.out.println("Surya weds meghana");
}
}}
Bro ethical hacking podunga bro please 😢
What's that explain please! Some
Commerce students ku video podunga bro
Super bro ❤
pls put video for data structures
well explanation bro
Bro eclips laa explain pannunga Bro
bro backend apro database pathi classes edutu poduga bro ...apro cloud aws adhuvum konjam podu bro
Question 2 : If else Answer:
import java.util.Scanner;
public class movie{
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
String meghana=scan.nextLine();
if (meghana.equalsIgnoreCase("dead")){
System.out.println("Suriya meets ramya");
}
else{
System.out.println("Suriya meets meghana");
}
}
}
Else without if nu compilation error katudhu bro
May i know why u use ignorecase word after equals?
@@Nirmalkumar-dn9it to make it case insensitive
import java.util.Scanner;
class hello{
public static void main(String arg[])
{
Scanner scan = new Scanner(System.in);
String colour = scan.nextLine();
String c1 = new String("red");
String c2 = new String("yellow");
String c3 = new String("green");
if(colour.equals(c1))
{
System.out.print("stop");
}
if(colour.equals(c2))
{
System.out.print("get ready");
}
if(colour.equals(c3))
{
System.out.print("go");
}
}
}
import java.util.Scanner;
class HelloWorld {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String meghna= sc.nextLine();
if(meghna.equals("dead"))
{
System.out.println("Surya meets Priya ");
}
else{
System.out.print("Surya weds meghna");
}
}
}
Anna .. free domain names suggest pannunga anna
Bro lower case um upper case um ....same aa in the program eduthukkum aaa?
Thank you bro❤
import java.util.Scanner;
class example{
public static void main (String args[])
{
Scanner Scan = new Scanner(System.in);
String a1 = new String("Win");
String a2 = new String("Loose");
boolean match = false;
if(match)
{
System.out.print("Eesala Cup Namdhey");
}
else{
System.out.print("Cup Illa");
}
}
}
o/p :- Cup Illa
13:31
above question ku intha mari podalam ah bro 13:31
😂😂
RCB teams thakapattathu😂😂😂
😅😅😅
First comment ❤
bro java ppt required. where can i download
Super bro
Intha mathiri problems lam nalla dhn panren ...but hackerrank la kekura yethuvum solve panna mudila...manda vedikuthu...yen nu sollungalen??😢
Ithu verum basic
niraye try panni paathe. ana "ee sala cup namdhey" mattun print avaath😁
Bro ppt reference enga kuduthirkinga
We need more people like you❤, teaching all the knowledge you gained to unknown people without money 🫡
Thanks a lot and your words making us strive forward!
bro R studio kum video podu bro pls
13:32 kandipa content loose ah thaaan irukum 🤣😂
import java.util.Scanner;
class Hello {
public static void main(String[] args) {
System.out.print("Does RCB win or lose? ");
Scanner result = new Scanner(System.in);
String RCB = result.nextLine();
if (RCB.equals("win")) {
System.out.print("EESALA CUP NAMADE");
} else {
System.out.print("cup nahi maalum");
}
result.close();
}
}
Is this correct?
Correct tha brow
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String meghana = scan.nextLine();
if(meghana.equals("dead"))
System.out.print("surya meets ramya");
else
System.out.print("surya weds meghana");
}
}
RCB program la runtime error irukku bro. Loss ku pathila yethu type pannunalum "no cub" nu thana varum...
🤣🤣🤣🤣🤣🤣
RCB no cup was personal 🤣
String RCB=scan.nextline(); error varuthu bro why??
Tell me bro?
Capital L varum bro
scan. nextLine() ;
How to get PPT ??
Bro....Where is the link ........?😢
notes not found ,sir @Error Makes Clever
megana ellai naa megala 🤣
import java.util.Scanner;
public class sr2 {
public static void main(String args[]){
String suriya="alive";
Scanner scan=new Scanner(System.in);
suriya=scan.nextLine();
if(suriya.equals("alive")){
System.out.println("suriya weds mehana");
}
else{
System.out.println("Suriya love megala");
}
}
}
output
dead
Suriya love megala
super
Thank you
Bro notes link venum bro
i got the input from the user and converted that to uppercase and compared using .equals function
import java.util.Scanner;
public class ifelsstringcomparison {
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
System.out.println("Enter the RCB will win or lose");
String result = scan.nextLine();
if (result.toUpperCase().equals("WIN")) {
System.out.println("Esaala cup namdhey!!!");
}
else if (result.toUpperCase().equals("LOSE")) {
System.out.println("Esala cup nahi!!! better luck next time");
}
else{
System.out.println("Enter a valid input");
}
}
}
PPT?
ppt link bro?
Anna ppt enga irku indha video ku??
nEndings 🎉😂
PPT link bro 🥺
8:00 i am currently studying PG even my mam doesn't told this
String object illa bro class
Bro notes link click panna 404 varuthu bro.. link ah update pannuga bro
How to get ppt link??
EMC❤
Bro ppt notes link 404 error
ramya illa bro priya
true
cup illa
RCB thaakapattar
String n = "orange";
if(n == "orange")
{
System.out.println("Hello");
}
idhu epd bro compare aagum
idhoda output true
N' oda name orange appo orange== orange tru thana varum
RCB fans 🤣
Eesala cuppu lollipoppu🍭🤣🤣🤣
????? the questions lmaoooo
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
System.out.print("ENTER EITHER,(DEAD/ALIVE) : ");
String MEGHANA = in.nextLine();
System.out.println(MEGHANA.equalsIgnoreCase("DEAD") ? "surya meets ramya" : MEGHANA.equalsIgnoreCase("ALIVE") ? "Surya weds meghana" : "CORRETA TYPE PANNUDA BEEP!!!");
}
}
O/P:
ENTER EITHER,(DEAD/ALIVE) : dead
surya meets ramya
ENTER EITHER,(DEAD/ALIVE) : aLIvE
Surya weds meghana
ENTER EITHER,(DEAD/ALIVE) : HELLO
CORRETA TYPE PANNUDA BEEP!!!
Enna bro panni vechirukka