Nonverbis

Untitled

Nov 29th, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. package com.example.blog.general;
  2.  
  3. import com.example.blog.settings.Settings;
  4. import org.springframework.stereotype.Component;
  5.  
  6.  
  7. @Component
  8. public class GeneralUrlHandler {
  9. public String concatenateUrl(String[] args){
  10. String tmp = String.format("%s://%s/%s/%d/", Settings.PROTOCOL, Settings.SITE);
  11.  
  12. for (String arg : args){
  13. tmp += "/";
  14. tmp += arg;
  15. }
  16. return tmp;
  17. }
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment