Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.java > #9378

Re: JAVA Program

X-Received by 2002:a05:620a:78b:: with SMTP id 11mr9954572qka.0.1614965857924; Fri, 05 Mar 2021 09:37:37 -0800 (PST)
X-Received by 2002:a37:7f83:: with SMTP id a125mr9748784qkd.44.1614965857598; Fri, 05 Mar 2021 09:37:37 -0800 (PST)
Path csiph.com!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups it.comp.java
Date Fri, 5 Mar 2021 09:37:37 -0800 (PST)
In-Reply-To <9041074e-4385-4d7b-a669-e442864fabb4n@googlegroups.com>
Injection-Info google-groups.googlegroups.com; posting-host=151.68.80.38; posting-account=-eF7WAoAAACt5PDSlI-9XEDar7KgU_BQ
NNTP-Posting-Host 151.68.80.38
References <9295e77f-01ca-4886-a355-00f92b0783e8n@googlegroups.com> <s1rshb$7d8$1@gioia.aioe.org> <9041074e-4385-4d7b-a669-e442864fabb4n@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <4ab6386d-c5f4-4568-b307-27de7e40be40n@googlegroups.com> (permalink)
Subject Re: JAVA Program
From bender bender <voodoo.bender@gmail.com>
Injection-Date Fri, 05 Mar 2021 17:37:37 +0000
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
Lines 54
Xref csiph.com it.comp.java:9378

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar


Thread

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