• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Command unix on data of array

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all of you i hope you re fine

so i do a code that give me an aray (myData) of string

it contains that:
Vl3

Gi34

Fa56

Gi66


and i want throw a command unix " show run interface Fa56/Gi...." about every data of this array

and i want do a test if this data begins with Vl (do somethi)g and if begins with Gi the same and if it begins wth Fa
so a want you hep me to how can i do a test id data from myData begins with Fa or Vl or Gi
Thank you
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

wafa khan wrote:how can i do a test id data from myData begins with Fa or Vl or Gi
Thank you



Look at the methods in the String class.
reply
    Bookmark Topic Watch Topic
  • New Topic