Created
December 4, 2015 17:41
-
-
Save Yur-ok/09d3799f53b100b5f073 to your computer and use it in GitHub Desktop.
Примеры того как ведут себя строки
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package SecondProgramm; | |
/** | |
* Created by Юрий on 05.12.2015. | |
*/ | |
public class Strings { | |
public static void main(String[] args) { | |
String someText = "Some text"; | |
String st1 = "First "; | |
String st2 = "Second"; | |
int a = 525; | |
String space = " "; | |
System.out.println(someText); | |
System.out.println(st1 + st2); | |
System.out.println(st1 + st2 + a); | |
System.out.println(space); | |
System.out.print(st1); | |
System.out.print(st2); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment