Array and string - Introduction to String from Java to Go
Compare Function Java // "static void main" must be defined in a public class. public class Main { public static void main(String[] args) { // initialize String s1 = "Hello World"; System.out.println("s1 is \"" + s1 + "\""); String s2 = s1; System.out.println("s2 is another reference to s1."); String s3 = new String(s1); System.out.println("s3 is a copy of s1."); // compare using '==' System.out..
Go/Leet Code
2022. 3. 30. 22:19