string length 6.20

  1. // java program calculate string length
  2. package firstjava;
  3.  
  4. public class HWpractice {
  5.     public static int Count (String sA ){
  6.         return sA.length();
  7.     }
  8.    
  9.     public static void main(String[] args) {
  10.         // TODO Auto-generated method stub
  11.         String sIn = "abcdefghijk";
  12.         System.out.println("output: " + Count(sIn));
  13.     }
  14.  
  15. }

留言

這個網誌中的熱門文章

Codeforces --- string task

Uva 674 ---- coin change

codeforces 271A --- beautiful year