Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Newsgroups | it.comp.java |
|---|---|
| Date | 2021-03-05 09:37 -0800 |
| References | <9295e77f-01ca-4886-a355-00f92b0783e8n@googlegroups.com> <s1rshb$7d8$1@gioia.aioe.org> <9041074e-4385-4d7b-a669-e442864fabb4n@googlegroups.com> |
| Message-ID | <4ab6386d-c5f4-4568-b307-27de7e40be40n@googlegroups.com> (permalink) |
| Subject | Re: JAVA Program |
| From | bender bender <voodoo.bender@gmail.com> |
Il giorno venerdì 5 marzo 2021 alle 01:16:06 UTC+1 bender bender ha scritto:
> Il giorno venerdì 5 marzo 2021 alle 01:04:00 UTC+1 Dr.UgoGagliardelli ha scritto:
> > Il 04.03.2021 21.37, bender bender ha scritto:
> > > Hi I'm tring to write a program with JAVA to evaluate data of csv data
> > > In particular I would extract this information
> > >
> > > View data on the presence of men and women in Affori over time.
> > >
> > > * Carry out an analysis relating to the last available year. Of the 10 most populous neighborhoods show:
> > > * the proportion of births out of the total
> > > * the proportion of 80+ to the total
> > > * The ratio of minors / number of kindergartens
> > >
> > > this is the file
> > > https://drive.google.com/file/d/1zKflvSpB-oDAqYscLsEgUhSnqL1XPdql/view?usp=sharing
> > >
> > > How could fix it?
> > >
> > > regards
> > >
> > What is there to be fixed?
> I don't know how to write the code for this exercise
Hi to everyone
with this code
import java.io.*;
import java.util.Scanner;
public class ReadCSVExample1
{
public static void main(String[] args) throws Exception
{
//parsing a CSV file into Scanner class constructor
Scanner sc = new Scanner(new File("data.csv"));
sc.useDelimiter(","); //sets the delimiter pattern
while (sc.hasNext()) //returns a boolean value
{
System.out.print(sc.next()); //find and returns the next complete token from this scanner
}
sc.close(); //closes the scanner
}
}
I obtain print of all csv file
but I woul extract only information about View data the presence of men and women in Affori over time.
How to fix it
Back to it.comp.java | Previous | Next — Previous in thread | Next in thread | Find similar
JAVA Program bender bender <voodoo.bender@gmail.com> - 2021-03-04 12:37 -0800
Re: JAVA Program "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2021-03-05 01:05 +0100
Re: JAVA Program bender bender <voodoo.bender@gmail.com> - 2021-03-04 16:16 -0800
Re: JAVA Program bender bender <voodoo.bender@gmail.com> - 2021-03-05 09:37 -0800
Re: JAVA Program "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2021-03-08 20:20 +0100
csiph-web