~ubuntu-branches/ubuntu/trusty/scilab/trusty

« back to all changes in this revision

Viewing changes to modules/javasci/examples/others/Example4.java

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-02 11:02:49 UTC
  • mfrom: (1.4.6)
  • Revision ID: package-import@ubuntu.com-20120802110249-0v5953emkp25geuz
Tags: 5.4.0-beta-2-1~exp1
* New upstream release
* Remove libscilab-java (remove upstream). Use libscilab2-java instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3
 
 * Copyright (C) INRIA
4
 
 * 
5
 
 * This file is released under the 3-clause BSD license. See COPYING-BSD.
6
 
 *
7
 
 */
8
 
 
9
 
import javasci.Scilab;
10
 
import javasci.SciString;
11
 
 
12
 
/**
13
 
 * @deprecated
14
 
 */
15
 
class Example4 {
16
 
 
17
 
  public static void main(String[] args) 
18
 
  {
19
 
    SciString S1 = new SciString("VariableSentence","Who is the best ?");
20
 
    
21
 
    S1.disp();
22
 
    
23
 
    SciString S2 = new SciString("VariableSentence2",S1);
24
 
 
25
 
    Scilab.Exec("VariableSentence2='Scilab is the best.';");
26
 
    S2.disp();
27
 
    
28
 
    SciString S3 = new SciString("VariableSentence2");
29
 
    S3.disp();
30
 
 
31
 
        Scilab.Finish();
32
 
    
33
 
  }
34
 
}
35