close
      import javax.swing.*;
     
      public class oo {
     
         public static void main( String args[] )
         {
            String letters = "abcdefghijklmabcdefghijklm";
   
            String output = "Substring from index 20 to end is " +
             """ + letters.substring( 20 ) + """;
   
            output += "Substring from index 3 up to 6 is " +
             """ + letters.substring( 3, 6 ) + """;
   
            JOptionPane.showMessageDialog( null, output,
             "String substring methods", JOptionPane.INFORMATION_MESSAGE );
   
            System.exit( 0 );
         }
   
      }
arrow
arrow
    全站熱搜

    mitia 發表在 痞客邦 留言(0) 人氣()