@@ -0,0 +1,1311 @@
+import java.util.Date;%0A%0Aimport com.amazonaws.auth.AWSCredentials;%0Aimport com.amazonaws.auth.BasicAWSCredentials;%0Aimport com.amazonaws.services.sns.AmazonSNSClient;%0Aimport com.amazonaws.services.sns.model.CreateTopicRequest;%0Aimport com.amazonaws.services.sns.model.CreateTopicResult;%0Aimport com.amazonaws.services.sns.model.PublishRequest;%0A%0A// Example SNS Sender%0Apublic class AmazonSNSSender %7B%0A%0A    // AWS credentials -- replace with your credentials%0A    static String ACCESS_KEY = %22%3CYour AWS Access Key%3E%22;%0A    static String SECRET_KEY = %22%3CYour AWS Secret Key%3E%22;%0A%0A    // Sender loop%0A    public static void main(String... args) throws Exception %7B%0A%0A        // Create a client%0A        AmazonSNSClient service = new AmazonSNSClient(new BasicAWSCredentials(ACCESS_KEY, SECRET_KEY));%0A%0A        // Create a topic%0A        CreateTopicRequest createReq = new CreateTopicRequest()%0A            .withName(%22MyTopic%22);%0A        CreateTopicResult createRes = service.createTopic(createReq);%0A%0A        for (;;) %7B%0A%0A            // Publish to a topic%0A            PublishRequest publishReq = new PublishRequest()%0A                .withTopicArn(createRes.getTopicArn())%0A                .withMessage(%22Example notification sent at %22 + new Date());%0A            service.publish(publishReq);%0A%0A            Thread.sleep(1000);%0A        %7D%0A    %7D%0A%7D%0A

Create AmazonSNSSender.java