Partage de codes sources - CodesWall.info
Java
> CatLike
Titre
CatLike
Postée le
09-10-2008
Affichée
1873
Mini-lien
Description
CatLike
Etat
Ne contient pas d'erreurs.
Code d'insertion
Options
Tweet
Téléchargement
import java.util.Random;
public
class
CatLike
{
String
name
;
String
color
;
float
weight
;
static
Random
random =
new
Random
(
)
;
public
CatLike
(
String
name,
String
color
)
{
this
(
name, color, random.
nextFloat
(
)
)
;
}
public
CatLike
(
String
name,
String
color,
float
weight
)
{
this
.
weight
= weight
;
this
.
name
= name
;
this
.
color
= color
;
System
.
out
.
println
(
"Name: "
+
this
.
name
)
;
System
.
out
.
println
(
"Color: "
+
this
.
color
)
;
System
.
out
.
println
(
"Weight: "
+
this
.
weight
)
;
}
}
Postez votre code-source
Informations
Catégorie *
-
Php
javascript
CSS
HTML
Xml
Perl
C
C++
Java
VB.Net
Script Batch
C#.Net
Visual Basic
VBA
Shell
mIRC
Latex
OCaml
pascal
MySQL
MatLab
Fichier .ini
SmallTalk
Autre
Titre *
(50 car. max)
Description *
(200 car. max)
Le code
Fonctionne
Ne fonctionne pas
Je ne sais pas
Source
* : Champs obligatoires
Fermer
Accueil
Poster
Actualités
Règles
Contact
Partenaires
Infos / Aide
Php
(58)
javascript
(35)
CSS
(20)
HTML
(16)
Xml
(17)
Perl
(11)
C
(64)
C++
(51)
Java
(48)
VB.Net
(5)
Script Batch
(8)
C#.Net
(4)
Visual Basic
(6)
VBA
(5)
Shell
(10)
mIRC
(3)
Latex
(6)
OCaml
(4)
pascal
(9)
MySQL
(13)
MatLab
(3)
Fichier .ini
(5)
SmallTalk
(1)
Autre
(17)
\n
Forum informatique