1 package FushiExam;
 2 import java.util.*;
 3 public class Text_38 {
 4 
 5     public static void main(String[] args) {
 6         //写一个函数,求一个字符串的长度,在main函数中输入字符串,并输出其长度
 7         Scanner scan=new Scanner(System.in);
 8         String str=scan.next();//输入字符串
 9         System.out.println(str.length());
10         
11 
12     }
13 
14 }

 

相关文章:

  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2021-08-29
  • 2022-01-20
相关资源
相似解决方案