+ 1

Problems with my Java code...

Hello! I have some problems with my java code... can somebody help? :) https://code.sololearn.com/c7y3JsNwY67M/?ref=app

9th Aug 2017, 9:20 AM
dasRachebrot
dasRachebrot - avatar
3 Respostas
+ 10
-- We use .length() for getting the size of a String variable, .length() without parenthesis (.length) is used just for getting the size of an array. -- You have to declare the emailValid boolean variable static and as well as public so that it can be used as a reference variable everywhere in the class/package. -- You should not import java.io.*; library as it's not required in your code. Using unnecessary modules may slow down your program. I've corrected your code, just have a look ^^ https://code.sololearn.com/cuI09NNN9m4p/?ref=app
9th Aug 2017, 9:29 AM
Dev
Dev - avatar
+ 9
@das Rachebrot : Thanks, and yes, it's your code - You can take it, modify it, publish it... No need to mention me in your code, I'm here just to help the community with their errors. ^^ P.S. The code is all yours :)
9th Aug 2017, 9:53 AM
Dev
Dev - avatar
+ 1
Thank you! You are a little god ;) Am I allowed to publish this script? (I'll add a comment you helped me) (Sorry for my bad English, I'm a German ^^)
9th Aug 2017, 9:42 AM
dasRachebrot
dasRachebrot - avatar