Skip to content
Snippets Groups Projects
Commit 9e5b5210 authored by Haug Michael's avatar Haug Michael
Browse files

added *s to comments

parent 6ea13910
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,10 @@ public class CopyToFile {
static String filePath;
public static void CopyURLToFile(String pathname) {
/*
Copy data from the URL to a file, only if the file doesn't exist already or if it's content is older than 10 minutes.
/**
* Copy data from the URL to a file,
* only if the file doesn't exist already or
* if it's content is older than 10 minutes.
*/
if (new File(pathname).isFile() ||
(Calendar.getInstance().getTimeInMillis() - new File(pathname).lastModified() > 600000) &&
......@@ -34,8 +36,8 @@ public class CopyToFile {
}
public static Weather CopyFileToWeather() {
/*
Parse the weather data from the file.
/**
*Parse the weather data from the file.
*/
Weather weatherObject = null;
try {
......
......@@ -4,8 +4,9 @@ import java.net.MalformedURLException;
import java.net.URL;
public class URLCreator {
/*
create the URL with the corresponding city ID value created from SearchingAndComparing.
/**
* create the URL with the corresponding
* city ID value created from SearchingAndComparing.
*/
public static URL CreateUrl () throws MalformedURLException {
URL linkWithId = new URL("https://api.openweathermap.org/data/2.5/forecast?lang=de&APPID=41d009d32d4e302e0cd3d0f55bf5da24&units=metric&id="+ SearchingAndComparing.GetID());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment