|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun * Microsystems, Inc. All Rights Reserved. */ /* * Signature1User2.java * * Created on January 15, 2004, 10:56 AM */ package org.netbeans.test.signature; import java.util.Arrays; import java.util.List; /** * * @author Pavel Flaska */ public class Signature1User2 { static String resultText; static final String[] names = new String[] { "Marketa", "Lenka", "Petra", "Katka", "Zdenka", "Gabina", "Hanka", "Karla", "Martina", "Daniela", "Kristina", "Kristyna" }; static int num = (int) Math.random() * 10; static Object niceGirl = null; // method usage in field init value test static String niceGirlText = new Signature1Owner().signatureMethod(Arrays.asList(names), niceGirl, num); // method usage in static initializer static { Object girl = null; List l = Arrays.asList(names); Signature1Owner owner = new Signature1Owner(); resultText = owner.signatureMethod(l, girl, 7); } /** Creates a new instance of Signature1User2 */ public Signature1User2() { } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.