Android IDE (AIDE) Support Forum

//Help me! With the lesson please

//Help
So Now use the string concatenation operator to print Pi=3.1415 where 3.1415 is given as a number. Was the Question and I put System.out.println(" Pi:="+3.1415); as answers it said I’m wrong what is anwers and why

Delete the : it didnt tell you to write that

What are you supposed to do, maybe write question?

I go at random, maybe some of this helps:
double Pi = 3.1415;
float Pi = 3.1415f;
double Pi = Math.Pi;

How to compare string:
boolean isString1EqualsString2 = str1 == str2; //would work a lot of times but try to use following (if you read from file it may not work correct)
boolean isString1EqualsString2 = str1.equals(str2);

All you need to do is put that number into string and compare.

How to turn double into string:
String str1 = “” +MyNumberPi;

Do a long press that is error and take a look what it is tips on below the display, then use the tips to rewrite.