File tree 5 files changed +66
-0
lines changed
5 files changed +66
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <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" >
3
+ <modelVersion >4.0.0</modelVersion >
4
+ <groupId >com.mycompany.poo</groupId >
5
+ <artifactId >POO</artifactId >
6
+ <version >1.0-SNAPSHOT</version >
7
+ <properties >
8
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
9
+ <maven .compiler.source>11</maven .compiler.source>
10
+ <maven .compiler.target>11</maven .compiler.target>
11
+ <exec .mainClass>com.mycompany.poo.POO</exec .mainClass>
12
+ </properties >
13
+ </project >
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template
4
+ */
5
+
6
+ package com .mycompany .poo ;
7
+
8
+ /**
9
+ *
10
+ * @author lucas
11
+ */
12
+ public class POO {
13
+
14
+ public static void main (String [] args ) {
15
+ System .out .println ("Hello World!" );
16
+ }
17
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4
+ */
5
+ package oo .composicao ;
6
+
7
+ /**
8
+ *
9
+ * @author lucas
10
+ */
11
+ public class Carro {
12
+
13
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
3
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
4
+ */
5
+ package oo .composicao ;
6
+
7
+ /**
8
+ *
9
+ * @author lucas
10
+ */
11
+ public class Motor {
12
+ boolean ligado = false ;
13
+ double fatorInjecao = 1 ;
14
+
15
+ int giros (){
16
+ if (!ligado ){
17
+ return 0 ;
18
+ }else {
19
+ return (int ) Math .round (fatorInjecao *3000 );
20
+ }
21
+ }
22
+ }
Original file line number Diff line number Diff line change
1
+ POO-Java
You can’t perform that action at this time.
0 commit comments