Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > fr.comp.lang.java > #1715

Re: urgent

From Yliur <yliur@free.fr>
Newsgroups fr.comp.lang.java
Subject Re: urgent
Date 2018-10-06 00:00 +0200
Organization Groupes francophones par TrigoFACILE
Message-ID <20181006000010.015133ad@free.fr> (permalink)
References <wOKdnSdZAIscUyrGnZ2dnUU798zNnZ2d@giganews.com>

Show all headers | View raw


Le Fri, 05 Oct 2018 15:50:09 -0500
banderas123 <nospam_kangalaberger14@yahoo.fr.invalid> a écrit :

> Bonjour,je veux faire le teste de ce bout de code, comment le faire :
> public class InvestorFactory {
> 
> 	public static Investor createInvestor(long investorId, float
> credits, String investorName, String email) {
> 		return new Investor(investorId, investorName, email,
> credits); }
> }
>  urgent

En supposant que tu disposes de tout le code du projet, il te suffit
d'ajouter une méthode main dans une classe et de la lancer :

public static void main (String[] args)
{
    ...
}

Mais si le projet est complexe, il se peut que zapper son
initialisation empêche certaines parties de fonctionner.

Back to fr.comp.lang.java | Previous | NextPrevious in thread | Find similar


Thread

urgent banderas123 <nospam_kangalaberger14@yahoo.fr.invalid> - 2018-10-05 15:50 -0500
  Re: urgent Yliur <yliur@free.fr> - 2018-10-06 00:00 +0200

csiph-web