🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

copy string to string

#424
From: apostolish
Date: Tue, 16 Aug 2005 13:01
12 lines
1227 bytes
Hello, my problem is:


String str1 = new String("                    ");          // length 20
String str2 = new String("test");                        // length 4

Which is the  fastest  way to copy str2 to str1 from postion 10 ?
(for example: str1 = "         test       ")

Thanks in advance,
Apostolis
Hatziyannis
Technical Details
Message-ID: <4301e319@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!newsfeed.news2me.com!peer01.west.cox.net!cox.net!pd7cy1no!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,1e2a9eb6cc0247cb,start
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "apostolish" <apostolis@orbis.gr>
Newsgroups: borland.public.jbuilder.java.language
Subject: copy string to string
Date: Tue, 16 Aug 2005 16:01:12 +0300
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 62.1.130.224
Message-ID: <4301e319@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124197145 62.1.130.224 (16 Aug 2005 05:59:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!newsfeed.news2me.com!peer01.west.cox.net!cox.net!pd7cy1no!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail