G
G
getto2122019-05-17 09:53:54
Java
getto212, 2019-05-17 09:53:54

How to separate a word in an array to work with it?

I fill in the array from the keyboard "name" after "password"
the input to the array is as follows: updatedArray[updatedArray.length - 1] = login + "||" +password;
the result is the following output: Users:
- login||password
how can I check for an existing login? how to separate "login" for separate work with it

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
EVGENY T., 2019-05-17
@getto212

https://docs.oracle.com/javase/7/docs/api/java/lan...

S
Sergey Gornostaev, 2019-05-17
@sergey-gornostaev

Use Map instead of array.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question