Write a method , getemailusername, that is passed a string argument that is an email address and returns the user-name part. so if "mozart@salzberg.de" is passed, the method returns "mozart". assume that the argument will always be a correctly formatted email address.

Respuesta :

W0lf93
public String getemailssername (String aUser) { return aUser.substring(0, aUser.indexOf("@")); }