Project

General

Profile

1
import org.joda.time.format.DateTimeFormat;
2
import org.joda.time.format.DateTimeFormatter;
3

    
4
import java.text.DateFormat;
5
import java.text.ParseException;
6
import java.text.SimpleDateFormat;
7
import java.util.ArrayList;
8

    
9
/**
10
 * Created by eri on 1/14/16.
11
 */
12
public class Test {
13

    
14

    
15
    public static void main(String[] args) throws ParseException {
16

    
17
        String date = "2015-05-26";
18

    
19
        DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd");
20
        System.out.println(formatter.parseDateTime(date));
21
        DateFormat df = new SimpleDateFormat("yyyy-mm-dd");
22
        System.out.println(df.parse(date));
23

    
24

    
25
        String value = " \"lala\" /lo {}li?   la ";
26

    
27
        value = "http://www.iue.it/PUB/ECO2002 7.pdf";
28

    
29
        System.out.println( "value " + value);
30
        value = value.replace(" ", "");
31
        System.out.println( "value " + value);
32
        value = value.replace(" ", "");
33
        /*value = value.replace("\\r", " ");
34
		value = value.replace("\\", "");
35
		*/
36

    
37
		 /*value = value.replace("\\r", " ");
38
	     value = value.replace("\\", "");
39
*/
40

    
41

    
42

    
43
    }
44

    
45

    
46
    static void fillList(ArrayList list) {
47
        list.add("lala");
48

    
49
    }
50

    
51
}
(1-1/2)