]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/scratch/TestRVI.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.layer0 / scratch / TestRVI.java
1 import java.util.Scanner;
2
3 /*******************************************************************************
4  * Copyright (c) 2007, 2011 Association for Decentralized Information Management in
5  * Industry THTH ry.
6  * All rights reserved. This program and the accompanying materials
7  * are made available under the terms of the Eclipse Public License v1.0
8  * which accompanies this distribution, and is available at
9  * http://www.eclipse.org/legal/epl-v10.html
10  *
11  * Contributors:
12  *     VTT Technical Research Centre of Finland - initial API and implementation
13  *******************************************************************************/
14
15 public class TestRVI {
16         
17         
18         public static void main(String[] args) {
19                 String str = "r34534545/r45345/HELLO#VAR";
20                 Scanner s = new Scanner(str);
21                 s.useDelimiter("[/#]");
22                 while (s.hasNext()) {
23                         System.out.println(s.next());
24                 }               
25         }
26 }