File: Fields.java

package info (click to toggle)
nice 0.9.10-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,260 kB
  • ctags: 6,867
  • sloc: java: 42,604; xml: 3,205; lisp: 1,079; makefile: 652; sh: 342; cpp: 21; awk: 3
file content (37 lines) | stat: -rw-r--r-- 1,195 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**************************************************************************/
/*                                N I C E                                 */
/*             A high-level object-oriented research language             */
/*                        (c) Daniel Bonniot 2000                         */
/*                                                                        */
/*  This program is free software; you can redistribute it and/or modify  */
/*  it under the terms of the GNU General Public License as published by  */
/*  the Free Software Foundation; either version 2 of the License, or     */
/*  (at your option) any later version.                                   */
/*                                                                        */
/**************************************************************************/

package regtest.basic;

import java.util.*;

/**
   Class with static and non-static fields,
   to test field access.
*/

class Fields
{
  static int intS;
  int intI;

  static String stringS;
  String stringI;

  String[] strings = new String[]{"A"};

  List stringList;
  {
    stringList = new LinkedList();
    stringList.add("First");
  }
}