MCPcopy Create free account
hub / github.com/DuGuQiuBai/Java / main

Method main

day12/code/day12_String/src/cn/itcast_06/StringDemo3.java:9–16  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

7 */
8public class StringDemo3 {
9 public static void main(String[] args) {
10 String s = "hello";
11
12 System.out.println(s.compareTo("hello")); // 0
13 System.out.println(s.compareTo("Hello")); // 32
14 System.out.println(s.compareTo("mello")); // -5
15 System.out.println(s.compareTo("hgllo"));//��һ����ͬ��ĸ֮��
16 }
17}

Callers

nothing calls this directly

Calls 1

compareToMethod · 0.45

Tested by

no test coverage detected