+ 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
3 odpowiedzi
+ 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
+ 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 :)
+ 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 ^^)