🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15182

Anything like strstr in java?

#15182
From: Eric Advincula
Date: Fri, 02 Jul 1999 00:00
6 lines
758 bytes
I need to check a portion of a string for a string sequence.
Ex. string1 = "This is a test for today"
      string2 = "test"

I want to be able check if the string1 if string2 occurs in any part of it.
Is there any java version of strstr() in java?
Technical Details
Message-ID: <7lkbdr$4r51@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1145741c16a8a24,start
X-Google-Attributes: gidf74b3,public
From: "Eric Advincula" <eric07@earthlink.net>
Subject: Anything like strstr in java?
Date: 1999/07/02
Message-ID: <7lkbdr$4r51@forums.borland.com>
X-Deja-AN: 496692317
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.language