Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
exos 06 et 07 terminés
· 1115fd48
Ramzi BENMANSOUR
authored
Mar 30, 2023
1115fd48
exos 06 07 terminés
· 5a01822e
Ramzi BENMANSOUR
authored
Mar 30, 2023
5a01822e
Show whitespace changes
Inline
Side-by-side
exercices_Objets/pom.xml
0 → 100644
View file @
5a01822e
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.mycompany
</groupId>
<artifactId>
exercices_Objets
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<packaging>
jar
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.source>
17
</maven.compiler.source>
<maven.compiler.target>
17
</maven.compiler.target>
</properties>
</project>
\ No newline at end of file
exercices_Objets/src/main/java/exo/exo06.java
0 → 100644
View file @
5a01822e
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package
exo
;
/**
*
* @author ramzi
*/
public
class
exo06
{
public
static
void
main
(
String
[]
args
)
{
String
[]
joursDeLaSemain
={
"Lundi"
,
"Mardi"
,
"Mercredi"
,
"Jeudi"
,
"Vendredi"
,
"Samedi"
,
"Dimanche"
};
for
(
int
i
=
0
;
i
<
joursDeLaSemain
.
length
;
i
++)
{
System
.
out
.
println
(
joursDeLaSemain
[
i
]);
}
}
}
exercices_Objets/src/main/java/exo/exo07.java
0 → 100644
View file @
5a01822e
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package
exo
;
/**
*
* @author ramzi
*/
public
class
exo07
{
public
static
void
main
(
String
[]
args
)
{
String
[]
fruits
=
new
String
[
5
];
fruits
[
0
]=
"Kiwi"
;
fruits
[
1
]=
"Pomme"
;
fruits
[
2
]=
"Banane"
;
for
(
int
i
=
0
;
i
<
fruits
.
length
;
i
++)
{
System
.
out
.
println
(
fruits
[
i
]);
if
(
fruits
[
i
].
equals
(
"kiwi"
))
{
System
.
out
.
println
(
"Miam"
);
}
}
}
}
exercices_Objets/src/main/java/main/mainClass.java
0 → 100644
View file @
5a01822e
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package
main
;
/**
*
* @author ramzi
*/
public
class
mainClass
{
public
static
void
main
(
String
[]
args
)
{
}
}
exercices_Objets/target/classes/.netbeans_automatic_build
0 → 100644
View file @
5a01822e
exercices_Objets/target/classes/exo/exo06.class
0 → 100644
View file @
5a01822e
File added
exercices_Objets/target/classes/exo/exo07.class
0 → 100644
View file @
5a01822e
File added
exercices_Objets/target/classes/main/mainClass.class
0 → 100644
View file @
5a01822e
File added
exercices_Objets/target/exercices_Objets-1.0-SNAPSHOT.jar
0 → 100644
View file @
5a01822e
File added
exercices_Objets/target/maven-archiver/pom.properties
0 → 100644
View file @
5a01822e
#Generated by Maven
#Thu Mar 30 15:06:48 CEST 2023
groupId
=
com.mycompany
artifactId
=
exercices_Objets
version
=
1.0-SNAPSHOT
exercices_Objets/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
0 → 100644
View file @
5a01822e
main\mainClass.class
exo\exo06.class
exo\exo07.class
exercices_Objets/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
0 → 100644
View file @
5a01822e
C:\Users\ramzi\Documents\NetBeansProjects\exercices_Objets\src\main\java\exo\exo06.java
C:\Users\ramzi\Documents\NetBeansProjects\exercices_Objets\src\main\java\exo\exo07.java
C:\Users\ramzi\Documents\NetBeansProjects\exercices_Objets\src\main\java\main\mainClass.java
exercices_Objets/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
0 → 100644
View file @
5a01822e
exercices_Objets/target/test-classes/.netbeans_automatic_build
0 → 100644
View file @
5a01822e