сlass MyFragment : Fragment() {
companion object {
private arg1Key = "arg1Key"
....
fun newInstance(arg1: Int, arg2: String arg3: Parcelable, .....) = MyFragment().apply {
arguments = Bundle().apply {
putInt(arg1Key, arg1)
putString...
putParcelable.....
}
}
}
}
private HashMap<String, List<String>> phoneBook = new HashMap<>();
phoneBook.computeIfAbsent(surName, l -> new ArrayList<>()).add(phoneNumber);
for (int i = 0; i < transformers.length; i++) {
int[] clonedBoard = board.clone();
transformers[i].transform(clonedBoard);
for (int j = 0; j < clonedBoard.length; j++) {
for (int k = 0; k < clonedBoard[j].length; k++) {
System.out.print(clonedBoard[j][k] + " ");
}
System.out.println();
}
System.out.println();
}
int[][] board = new int[array[0].length][array.length]
private int[][] rotateArray(int[][] array) {
int[][] board = new int[array[0].length][array.length]
for(int i=0; i<array.length; i++) {
for(int j=0; j<array[i].length; j++) {
board[j][i] = array[i][j];
}
}
return board;
}
public class Employee {
private String fullName;
private Post post;
private int age;
private String phoneNomber;
private String email;
Employee(String fullName, Post post, int age, String phoneNomber, String email) {
this.fullName = fullName;
this.post = post;
this.age = age;
this.phoneNomber = phoneNomber;
this.email = email;
}
Employee employee1 = new Employee("Степанов Илья Олегович", new Post("title","department",10),20,"123123","aa");