Sauce labs testing with appium desired capabilities opening a safari browser

I am just coding the my desired capabilities in eclipse using sauce labs. I want to open a web page in safari.

(I should add I am an utter newbie to cloud automated testing.)

When I get to the section of connecting the desired capabilities to sauce labs I am horribly stuck.

I got an error message in eclipse that said ‘URL cannot be resolved to a type’

additionally I am not utterly confident in the IOS driver syntax as it gave an error message

References to generic type IOSDriver should be parameterized
Here are my questions:

how to do fix
‘URL cannot be resolved to a type’

What is the correct syntax for

IOSDriver driver = new IOSDriver(new URL(“http://USERNAME:[email protected]:80/wd/hub”), cap); driver.get(“”);

So I don’t get

References to generic type IOSDriver should be parameterized

so I can successfully run these desired capabilities with the correct information.

I would appreciate you assistance and considerable knowledge.

Here is my code

package iOSCloudTesting;

import org.openqa.selenium.remote.DesiredCapabilities;

import io.appium.java_client.ios.IOSDriver;
import io.appium.java_client.ios.IOSElement;

public class IosCloudSauce {

public static final String USERNAME = "confidential";
public static final String ACCESS_KEY = "confidential";
public static final String URL = "https://" + USERNAME + ":" + ACCESS_KEY + "";

 public static void main(String[] args){

     DesiredCapabilities cap = new DesiredCapabilities();

     cap.setCapability("platformName", "iOS");
     cap.setCapability("deviceName", "iPhone8 Simulator");
     cap.setCapability("platformVersion", "11.3");
     cap.setCapability("browserName", "Safari");
     cap.setCapability("deviceOrientation", "portrait");

    IOSDriver driver = new IOSDriver(new URL("http://USERNAME:[email protected]:80/wd/hub"), cap);