Комментарии:
statement.contains("No comment");
statement.isEmpty();
statement == null;
string statement = ........;
if(statement = NULL)
{
System.out.println("the mayor said nothing ");
}
else if (statement != NULL)
{
System.out.println("the mayor said "no comment " ");
}
else
{
System.out.println("the reporter didn't make it ");
}
im just trying to help my friend with minecraft lol
ОтветитьI liked how precise it was thank you!
Ответитьnicely put but it be nice if there were more examples i will keep searching explenation.
ОтветитьThank you so much this helped me aloooooooooooot thx
ОтветитьSo it would be:
String MayorComment = "no comment";
String MayorComment1 = null;
I haven't really understood the test yet but I have understood the way null value can change, ( I hope it's right)
I understand by the CLI alot so it would be like:
String MayorComment = Null;
System.out.println (MayorComment);
MayorComment= "No comment";
System.out.println (MayorComment);
That would give me:
Null
No Comment
Right? 😅
Im also trying to understand that if string is a Variable and Null also, did this program work with two variables?
Fun fact: null means zero in estonian
Ответитьgood video dude
ОтветитьThanks
ОтветитьI understood what null was by the end of this video. Sorry it wasn't "FUN" Enough for the rest of you. Thank you for getting your point across and ending the video, I can now proceed to do better things with my time.
ОтветитьYou are a boring idiot and Null
ОтветитьWhao guys i now know the dislike botton works
Ответитьyou are boring
Ответить