4 пункт не проходит, но все вроде верно
package com.javarush.task.task15.task1527;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Парсер реквестов
*/
public class Solution {
public static void main(String[] args) {
//add your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String site = null;
try {
site = reader.readLine();
} catch (IOException e) {
e.printStackTrace();
}
String[] arrOfStr = site.split("[?&]");
for(int i = 1; i < arrOfStr.length; i++){
String[] parametr = arrOfStr[i].split("=");
System.out.print(parametr[0] + " ");
}
System.out.println("");
for(int i = 1; i < arrOfStr.length; i++){
if(arrOfStr[i].contains("obj")){
String[] index = arrOfStr[i].split("=");
if(index[1].contains(".")){
try {alert(Double.parseDouble(index[1]));}
catch (Exception e){alert(index[1]);}
}
else {alert(index[1]);}
}
}
}
public static void alert(double value) {
System.out.println("double: " + value);
}
public static void alert(String value) {
System.out.println("String: " + value);
}
}