Java Taskbook Level 9.3

Задание 1

Ask the user for two integers. Create a two-dimensional array whose size is taken from the numbers the user entered. Fill the array with random integers.

Задание 2

The following array is given:

javascriptString[] arr = ["123", "456", "789"];

Transform this array into the following:

javascriptbyte[] arr = {
  {1, 2, 3},
  {4, 5, 6},
  {7, 8, 9}
};
Задание 3

Given some URL:

javaString url = "http://test.com/dir1/dir2/dir3/page.html";

Get the protocol from it:

java"http"
Задание 4

Given a two-dimensional array:

javaint[][] arr = {
  {1, 5},
  {2, 6},
  {3, 7},
  {4, 8}
};

Split its elements into two arrays:

javaint[] {1, 2, 3, 4}
int[] {5, 6, 7, 8}