Answer the question
In order to leave comments, you need to log in
How does a for loop work in Java?
Subject. As far as I know, this is a new for(:){} construct. Explain the logic of its work please. There is a code:
List<User> users = dab.getAllUsers();
for (User cn : users) {
String log = "Id: "+cn.getID()+" ,Name: " + cn.getLogin() + " ,Phone: " + cn.getPassword();
}
Answer the question
In order to leave comments, you need to log in
New?) This is a well known old one)
docs.oracle.com/javase/specs/jls/se7/html/jls-14.h...
Lord, well, this is the basics at all.
Suggest free online Java courses - at least learn a little first.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question