wiley_pastebin

lesson 4 strings 3

Mar 15th, 2019
2,751
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. public class TestingStrings {
  2.  
  3.  public static void main(String[] args){
  4.   String example = "Test String";
  5.  
  6.   int strLen = example.length();
  7.  
  8.   System.out.println(example + " has length " +  
  9.                       strLen);
  10.  }
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment