00001 import javasci.* ;
00002
00003 class String1
00004 {
00005
00006 public static void main(String[] args)
00007 {
00008 SciString S1 = new SciString("Sentence1","Who is the best ?");
00009 SciString S2 = new SciString("Sentence2","I have a dream ...");
00010 SciString S3 = new SciString("Sentence3");
00011 S1.Send();
00012 S2.Send();
00013
00014 System.out.println("S1 : "+ S1.getName()+" = "+S1.getData());
00015 System.out.println("S2 : "+ S2.getName()+" = "+S2.getData());
00016
00017 Scilab.Exec("Sentence1='You are the best !';");
00018 Scilab.Exec("Sentence3=Sentence1+' '+Sentence2;");
00019
00020 System.out.println("S3 : "+ S3.getName()+" = "+S3.getData());
00021
00022
00023 }
00024
00025 }
00026