My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.lineadecodigo.java.string;

/**
* @file ReemplazarContenido.java
* @version 1.0
* @author Linea de Codigo (http://lineadecodigo.com)
* @date 31-mayo-2010
* @url http://lineadecodigo.com/java/reemplazar-contenido-con-java/
* @description Reemplazar contenido de un texto
*/

public class ReemplazarContenido {

public static void main(String[] args) {

String s = "La pausa la realizó Fernando. En las representaciones de teatro, Fernando era el que mejor llevaba el tempo";
s = s.replaceAll("Fernando", "Pedro");
System.out.println(s);

}

}

Change log

r250 by vcuervo on May 31, 2010   Diff
Pequeña modificación en el código
Go to: 
Project members, sign in to write a code review

Older revisions

r249 by vcuervo on May 31, 2010   Diff
Reemplazar contenido
All revisions of this file

File info

Size: 607 bytes, 22 lines
Powered by Google Project Hosting