Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String string1 = "This is a string";
- String string2 = "and this is another string.";
- int integer1 = 100;
- int integer2 = 200;
- integer3 = integer1 + integer2;
- System.out.println(string1.concat(string2)); //you can also make a string 3 that is string 1 + string 2 like i did with the integers
- System.out.println(integer3);
- //fun fact, if the integers were strings, it'd output 100200
Add Comment
Please, Sign In to add comment