IT. Expert System.

Java basics

Label


A Label object is a component for placing text in a container. A label displays a single line of read-only text. The text can be changed by the application, but a user cannot edit it directly

Syntax:
public class Label
extends Component
implements Accessible


Example:

public class Main {
   public static void main(String[] args) {
      String strSearch = "This is the string in which you 
      have to search for a substring.";
      String substring = "substring";
      boolean found = false;
      int max = strSearch.length() - substring.length();
      testlbl:
      for (int i = 0; i < = max; i++) {
         int length = substring.length();
         int j = i;
         int k = 0;
         while (length-- != 0) {
            if(strsearch.charat(j++) != substring.charat(k++){
               continue testlbl;
            }
         }
         found = true;
         break testlbl;
      }
      if (found) {
         system.out.println("found the substring .");
      }
      else {
         system.out.println("did not find the 
         substing in the string.");
      }
   }
}


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 305 / . Delta: 0.01157 с