Please modify your code with the below one, hope so it works

DesiredCapabilities capabilities = new DesiredCapabilities();
   capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
   capabilities.setCapability("deviceName","sony xperia Z");
   capabilities.setCapability("platformVersion", "4.4");
   capabilities.setCapability("platformName","Android");
   capabilities.setCapability("appPackage", "com.android.calculator2");
   capabilities.setCapability("appActivity", "com.android.calculator2.Calculator");
   driver = new AppiumDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);


Native Browser Automation using Appium 1.2.0.1 on Windows 7 Android real device: Could not find a connected Android device
I just started a diploma in software development. Right now we're starting out with basic Java and such (so right from the bottom you might say) - which is fine, I have no programming experience apart from knowing how to do "Hello World" in Java.

I keep hearing that mathematics is pertinent to coding, but how is it so? What general examples would show how mathematics and programming go together, or are reliant on one another?

I apologize of my question is vague, I'm barely starting to get a rough idea of the kind of world I'm stepping into as a code monkey student...
