Question: We have using three project code is same but package name is different and then API also different URL,we have using switch-case get package Name based, we want get that particular case URL and then call the URL in another class. can you help me 

```
public class AllChanges extends Application {

    public static Context context;
    public static String getPackageName() {
            return context.getPackageName();
    }

    public String url( ) {
        switch (getPackageName()){
            case "com.product.packagename1":
                Url  = "http://google.com";

            case "com.product.packagename2":
                Url  = "http://stackoverflow,com";

            case "com.product.packagename3":
                Url  = "http://facebook.com";

            case "com.product.packagename4":
                Url  = "http://bing.com";

            case "com.product.packagename5":
                Url  = "http://gmail.google.com";

        }

        return Url;
    }

    public static String Url = url();

}

```

Answer: 
Try `X` intead of `Z` in your format string.
Note that not all time zones are shifted from UTC by an integral number of
hours. So when standards where created, nobody thought that there would
be a demand to print the time shift as only 2 digits.

And probably this is why "Z" as a time shift placeholder is converted to
"+" or "-" char, and just **four** digits.

I think, the solution is:

* generate the data/time string with 4 digit time shift part,
* cut off the last 2 digits.

But be aware that in some cases, e.g. Afghanistan (4h 30m)
or Central Australia (10h 30m) this 2-digit time shift will be inaccurate.