Skip to content

Instantly share code, notes, and snippets.

@MrRahulR
Created June 5, 2021 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrRahulR/0acd3589c1dc7a981a8882ee9a50bbe0 to your computer and use it in GitHub Desktop.
Save MrRahulR/0acd3589c1dc7a981a8882ee9a50bbe0 to your computer and use it in GitHub Desktop.
StringConcatenation.java
public class StringConcatenation {
public static void main(String[] args) {
String greetings = "Hello";
String javaClass = "Class";
System.out.println(greetings + " " + javaClass);
}
}
/*
Output :
Hello Class
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment