Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * Composes the xml for an friendship location update
     */
    public static String composeFriendshipLocationUpdateXml(double latitude, double longitude) {
        return String.format("<location><latitude>%s</latitude><longitude>%s</longitude></location>",
                String.valueOf(latitude), String.valueOf(longitude));
    }
}