Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
alx_mszczonow_1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
alx_mszczonow_1
Commits
ca2b5730
Commit
ca2b5730
authored
Jul 10, 2023
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
domyślna ścieżka do pliku
parent
d66cee03
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
ObslugaCSV.java
src/main/java/emps/ObslugaCSV.java
+4
-0
P1_WypiszWybranePola.java
src/main/java/emps/P1_WypiszWybranePola.java
+1
-1
No files found.
src/main/java/emps/ObslugaCSV.java
View file @
ca2b5730
...
@@ -10,6 +10,10 @@ import java.util.List;
...
@@ -10,6 +10,10 @@ import java.util.List;
public
class
ObslugaCSV
{
public
class
ObslugaCSV
{
public
static
List
<
Employee
>
wczytaj
()
{
return
wczytaj
(
"pliki/emps.csv"
);
}
public
static
List
<
Employee
>
wczytaj
(
String
sciezka
)
{
public
static
List
<
Employee
>
wczytaj
(
String
sciezka
)
{
List
<
Employee
>
emps
=
new
ArrayList
<>();
List
<
Employee
>
emps
=
new
ArrayList
<>();
try
(
BufferedReader
reader
=
new
BufferedReader
(
new
FileReader
(
sciezka
)))
{
try
(
BufferedReader
reader
=
new
BufferedReader
(
new
FileReader
(
sciezka
)))
{
...
...
src/main/java/emps/P1_WypiszWybranePola.java
View file @
ca2b5730
...
@@ -4,7 +4,7 @@ import java.util.List;
...
@@ -4,7 +4,7 @@ import java.util.List;
public
class
P1_WypiszWybranePola
{
public
class
P1_WypiszWybranePola
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
List
<
Employee
>
emps
=
ObslugaCSV
.
wczytaj
(
"pliki/emps.csv"
);
List
<
Employee
>
emps
=
ObslugaCSV
.
wczytaj
();
for
(
Employee
emp
:
emps
)
{
for
(
Employee
emp
:
emps
)
{
// System.out.println(emp.getFirstName() + " " + emp.getLastName();
// System.out.println(emp.getFirstName() + " " + emp.getLastName();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment