MCPcopy Create free account
hub / github.com/apna-college/Alpha / main

Method main

3_Strings/StringBasics.java:10–22  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

8 System.out.println();
9 }
10 public static void main(String args[]) {
11 Scanner sc = new Scanner(System.in);
12 String str = sc.next();
13 System.out.println(str);
14
15 String firstName = "Tony";
16 String lastName = "Stark";
17 String fullName = firstName + " " + lastName;
18 System.out.println(fullName);
19
20 System.out.println(fullName.length());
21 System.out.println(fullName.charAt(0));
22 }
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected