Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Programmazione > info laboratorio
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
pintu
.illuminato.

User info:
Registered: Jul 2010
Posts: 248 (0.05 al dì)
Location: Novara
Corso: informatica
Anno:
Time Online: 2 Days, 0:46:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
info laboratorio

Qualcuno sa dirmi se all'esame di laboratorio sono presenti le classi del libro ConsoleInputManager e ConsoleOutputManager?? Oppure bisogna dare l'input da linea di comando??

28-07-2011 15:08
Click Here to See the Profile for pintu Click here to Send pintu a Private Message Find more posts by pintu Add pintu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
aPiso
.illuminato.

User info:
Registered: Sep 2010
Posts: 158 (0.03 al dì)
Location: Milano
Corso: Informatica
Anno: 3
Time Online: 1 Day, 21:54:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

No devi usare gli I/O standard System.in e System.out

28-07-2011 17:40
Click Here to See the Profile for aPiso Click Here to See the Blog of aPiso Click here to Send aPiso a Private Message Find more posts by aPiso Add aPiso to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pintu
.illuminato.

User info:
Registered: Jul 2010
Posts: 248 (0.05 al dì)
Location: Novara
Corso: informatica
Anno:
Time Online: 2 Days, 0:46:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusa l'ignoranza ma System.in come si usa?? :D io sapevo che dopo aver compilato il programma posso passare gli argomenti da linea di comando cosi..

java file argomento0 argomento1 ecc

28-07-2011 22:11
Click Here to See the Profile for pintu Click here to Send pintu a Private Message Find more posts by pintu Add pintu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pintu
.illuminato.

User info:
Registered: Jul 2010
Posts: 248 (0.05 al dì)
Location: Novara
Corso: informatica
Anno:
Time Online: 2 Days, 0:46:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

tipo un programma che legge un numero e lo stampa come andrebbe scritto con System.in??

28-07-2011 22:14
Click Here to See the Profile for pintu Click here to Send pintu a Private Message Find more posts by pintu Add pintu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
oksana213
.amico.

User info:
Registered: May 2008
Posts: 23 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 15:04:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

import java.util.Scanner;

public class Numero1{
public static void main (String [] args){
Scanner sc = new Scanner(System.in);
System.out.println("Inserite il numero:");
int n=sc.nextInt();
System.out.println(n);

}


}

=================oppure
import java.io.*;


public class Numero {
public static void main (String [] args) throws IOException {
BufferedReader in= new BufferedReader (new InputStreamReader (System.in));
System.out.println ("Inserite il numero:");
int n= Integer.parseInt(in.readLine());

System.out.println(n);

}//main
}//class

07-08-2011 22:37
Click Here to See the Profile for oksana213 Click here to Send oksana213 a Private Message Find more posts by oksana213 Add oksana213 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pintu
.illuminato.

User info:
Registered: Jul 2010
Posts: 248 (0.05 al dì)
Location: Novara
Corso: informatica
Anno:
Time Online: 2 Days, 0:46:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie mille per la spiegazione!

12-08-2011 12:08
Click Here to See the Profile for pintu Click here to Send pintu a Private Message Find more posts by pintu Add pintu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 09:51.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.031 seconds (80.66% PHP - 19.34% MySQL) con 29 query.