Java Taskbook Level 2.8
Given an array of strings:
String[] arr = {"ab", "cd", "ef"};
Get an array of characters from these strings:
char[] {'a', 'b', 'c', 'd', 'e', 'f'}
Given an integer containing a month number from 1
to 12
:
byte num = 1;
Print the name of the month corresponding to this date.
Given a line:
String str = "12345";
Get the first and last character of this string as follows:
String "15";
Given variables containing the sides of a rectangle:
int a = 10;
int b = 20;
Get the area and perimeter of this rectangle.