Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ConcatWithPlus {
- public static void main(String[] s) {
- String www = "www.";
- String company = "nyhetsbolaget.";
- String country = "se";
- System.out.println(www+company+country);
- public class ConcatWithConcat {
- public static void main(String[] s) {
- String www = "www.";
- String company = "nyhetsbolaget.";
- String country = "se";
- System.out.println(www.concat(company).concat(country));
- }
- }
Add Comment
Please, Sign In to add comment