Java Taskbook Level 9.3
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.
The following array is given:
String[] arr = ["123", "456", "789"];
Transform this array into the following:
byte[] arr = {
{1, 2, 3},
{4, 5, 6},
{7, 8, 9}
};
Given some URL:
String url = "http://test.com/dir1/dir2/dir3/page.html";
Get the protocol from it:
"http"
Given a two-dimensional array:
int[][] arr = {
{1, 5},
{2, 6},
{3, 7},
{4, 8}
};
Split its elements into two arrays:
int[] {1, 2, 3, 4}
int[] {5, 6, 7, 8}