String Start With Example:
| /** * */ package com.first; /** * @author chintha Ramu * */ public class StringStartWith { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String string ="Java is a Programming Language"; System.out.println(string.startsWith("J")); System.out.println(string.endsWith("e")); } } |
Output:




0 comments:
Post a Comment