FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaProjects/src/Fonte.java at master · AndreUTF/JavaProjects · GitHub
AndreUTF
/
JavaProjects
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaProjects
/
src
/
Fonte.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (36 loc) · 969 Bytes
Breadcrumbs
JavaProjects
/
src
/
Fonte.java
Copy path
File metadata and controls
36 lines (36 loc) · 969 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import
java
.
util
.
ArrayList
;
public
class
Fonte
extends
Componente
{
private
ArrayList
<
String
>
modo
;
private
double
frequencia
;
public
double
getFrequencia
() {
return
frequencia
;
}
public
void
setFrequencia
(
double
frequencia
) {
this
.
frequencia
=
frequencia
;
}
public
Fonte
(
double
frequencia
,
double
valor
) {
super
(
valor
);
this
.
modo
=
new
ArrayList
();
this
.
frequencia
=
frequencia
;
}
public
ArrayList
<
String
>
getModo
() {
return
modo
;
}
public
void
setModo
(
ArrayList
<
String
>
modo
) {
this
.
modo
=
modo
;
}
public
String
mostrarModo
(
int
n1
){
modo
.
add
(
"DC"
);
modo
.
add
(
"AC"
);
return
(
modo
.
get
(
n1
));
}
public
String
mostraSimbolo
(
int
n2
){
ArrayList
<
String
>
f
=
new
ArrayList
<>();
f
.
add
(
"V"
);
f
.
add
(
"A"
);
return
(
f
.
get
(
n2
));
}
public
String
toString
(
int
j1
,
int
j2
) {
return
"Fonte{"
+
"
\n
Valor: "
+
getValor
() +
"
\n
Tipo: "
+
mostraSimbolo
(
j1
) +
"
\n
Modo: "
+
modo
.
get
(
j2
) +
'}'
;
}
}
Back
|
FazBrowse Home
|
New Git URL