FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pineapple-java/src/main/java/com/fun/Application.java at main · LionCoder4ever/pineapple-java · GitHub
LionCoder4ever
/
pineapple-java
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
8
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
pineapple-java
/
src
/
main
/
java
/
com
/
fun
/
Application.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (19 loc) · 609 Bytes
Breadcrumbs
pineapple-java
/
src
/
main
/
java
/
com
/
fun
/
Application.java
Copy path
File metadata and controls
22 lines (19 loc) · 609 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
package
com
.
fun
;
import
lombok
.
extern
.
slf4j
.
Slf4j
;
import
java
.
io
.
IOException
;
import
java
.
nio
.
file
.
Files
;
import
java
.
nio
.
file
.
Paths
;
import
java
.
util
.
List
;
@
Slf4j
public
class
Application
{
public
static
void
main
(
String
[]
args
)
throws
IOException
{
if
(
args
.
length
!=
1
) {
log
.
error
(
"Usage: java -jar your_pineapplefile_absolute_path"
);
return
;
}
String
filePath
=
args
[
0
];
List
<
String
>
fileContent
=
Files
.
readAllLines
(
Paths
.
get
(
filePath
));
String
code
=
String
.
join
(
"
\n
\r
"
,
fileContent
);
new
Backend
().
execute
(
code
);
}
}
Back
|
FazBrowse Home
|
New Git URL