Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 30081

How to store user input if it was something like an email address? So I can call it later?

$
0
0
String[] array = new String[2];               
System.out.println("Email please: ");
for (int i = 0; i < array.length; i++) {
    array[i] = sc.next();
System.out.println(array[1]);

when I enter an email for example "email@gmail.com" it returns null what am I missing?


Viewing all articles
Browse latest Browse all 30081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>