added java backend (logic only)

This commit is contained in:
alexandrawerner
2026-03-25 15:10:04 +01:00
commit 6276b54cb1
3 changed files with 201 additions and 0 deletions

17
test.java Normal file
View File

@@ -0,0 +1,17 @@
package backendAlex;
class test {
public static void main(String[] args) {
UrlShortener url = new UrlShortener();
//String shortUrl = url.getShortUrl("longUrlTest2");
//System.out.println(shortUrl);
//String longUrl = url.getLongUrl(shortUrlTest3);
//System.out.println(longUrl);
String shortUrl = url.getShortUrl("longUrlTest6");
System.out.println(shortUrl);
//url.printJson();
}
}