Results 1 to 11 of 11

Thread: [Java] mhh libreria util.packages

  1. #1
    Lieutenant Commander Kith's Avatar
    Join Date
    Apr 2004
    Location
    Milano
    Posts
    22.142

    Default [Java] mhh libreria util.packages

    Siccome son bello arrugginito e siccome devo "imparare" a programmare a eventi thread e cazzate varie, chiedo aiuto a voi.

    Ovvero

    se compilo tale codice mi da un errore nell' IMPORT:

    E:\Documenti\Università\Programmi>javac Soluzione0607.java
    Soluzione0607.java:32: 'class' or 'interface' expected
    import java.util.Stack;
    ^
    1 error



    class or interface expected, ovvero manca la classe di una libreria di import giusto?

    Tale libreria è la java.util.Stack per gestire lo stack.

    Premesso che ho cercato in internet ma non trovo sta fottuta libreria, sto cannando qualcosa?
    featuring new Uber Computer: i7-950(turbo on 3,2ghz) with 6 GB XMS Corsair RAM , Nvidia Geforce 460 GTX @ 700mhz , on Gigabyte X58A UD3R rev 2.0, HD Seagate 1TB, Ali Corsair Modular 650w, Thermaltake V9 BLACCKX.

  2. #2
    Lieutenant Commander Ercos's Avatar
    Join Date
    May 2004
    Location
    Asdolandia!
    Posts
    19.586

    Default

    Ma che classi hai importato?

  3. #3
    Lieutenant Commander Kith's Avatar
    Join Date
    Apr 2004
    Location
    Milano
    Posts
    22.142

    Default

    Quote Originally Posted by Ercos View Post
    Ma che classi hai importato?
    la classe del programma, e non trovo sta fottuta util.stack ziocan....



    Nessuno se ne intende di java ???

    quel gay del prof mica mi risponde
    featuring new Uber Computer: i7-950(turbo on 3,2ghz) with 6 GB XMS Corsair RAM , Nvidia Geforce 460 GTX @ 700mhz , on Gigabyte X58A UD3R rev 2.0, HD Seagate 1TB, Ali Corsair Modular 650w, Thermaltake V9 BLACCKX.

  4. #4
    Tanek's Avatar
    Join Date
    Apr 2004
    Location
    Milano, Midgard
    Posts
    11.225

    Default

    Ma lol basta che importi la util.*

    Cmq cosi' a naso hai scritto male la dichiarazione di un metodo

    Tanek™: Game Designer & Algorithm Mastermind, Team Leader & SW Engineer and Dungeon Master!
    "Datte Foco"™ and "Ma KITTESENCULA"™ are registered trademarks of Tanek Entertainment Inc.
    ‎"One of these days, scientists will discover that second X chromosome contains nothing but nonsense and twaddle." - Sheldon Cooper
    Per non dimenticare:
    Spoiler


  5. #5
    Lieutenant Commander Kith's Avatar
    Join Date
    Apr 2004
    Location
    Milano
    Posts
    22.142

    Default

    mhh cioè? quell errore non è dato dal fatto che mentre compilo non trova la util.xxx ???


    ps dove la trovo? asddas
    featuring new Uber Computer: i7-950(turbo on 3,2ghz) with 6 GB XMS Corsair RAM , Nvidia Geforce 460 GTX @ 700mhz , on Gigabyte X58A UD3R rev 2.0, HD Seagate 1TB, Ali Corsair Modular 650w, Thermaltake V9 BLACCKX.

  6. #6
    Tanek's Avatar
    Join Date
    Apr 2004
    Location
    Milano, Midgard
    Posts
    11.225

    Default

    AO so le librerie standard di java

    Tanek™: Game Designer & Algorithm Mastermind, Team Leader & SW Engineer and Dungeon Master!
    "Datte Foco"™ and "Ma KITTESENCULA"™ are registered trademarks of Tanek Entertainment Inc.
    ‎"One of these days, scientists will discover that second X chromosome contains nothing but nonsense and twaddle." - Sheldon Cooper
    Per non dimenticare:
    Spoiler


  7. #7
    Lieutenant Commander Kith's Avatar
    Join Date
    Apr 2004
    Location
    Milano
    Posts
    22.142

    Default

    Quote Originally Posted by Tanek View Post
    AO so le librerie standard di java
    lol e allora perchè mi da quell'errore?
    featuring new Uber Computer: i7-950(turbo on 3,2ghz) with 6 GB XMS Corsair RAM , Nvidia Geforce 460 GTX @ 700mhz , on Gigabyte X58A UD3R rev 2.0, HD Seagate 1TB, Ali Corsair Modular 650w, Thermaltake V9 BLACCKX.

  8. #8
    Tanek's Avatar
    Join Date
    Apr 2004
    Location
    Milano, Midgard
    Posts
    11.225

    Default

    Perche' stai compilando un file co piu' classi -.- se e' lo stesso soluzione0607.java che google mi ha dato, c'e' una classe publica controllore (proprio circa alla riga 32, non c'ho voglia di contarmele e qui sul fisso non programmo quindi non ho netbeans) che devi ovviamente compilare in un altro file controllore.java

    Tanek™: Game Designer & Algorithm Mastermind, Team Leader & SW Engineer and Dungeon Master!
    "Datte Foco"™ and "Ma KITTESENCULA"™ are registered trademarks of Tanek Entertainment Inc.
    ‎"One of these days, scientists will discover that second X chromosome contains nothing but nonsense and twaddle." - Sheldon Cooper
    Per non dimenticare:
    Spoiler


  9. #9
    Lieutenant Commander Kith's Avatar
    Join Date
    Apr 2004
    Location
    Milano
    Posts
    22.142

    Default

    che pirla è vero


    ma perchè allora quell'errore demmerda è__é

    boh vabbe grazie tanek ;D
    featuring new Uber Computer: i7-950(turbo on 3,2ghz) with 6 GB XMS Corsair RAM , Nvidia Geforce 460 GTX @ 700mhz , on Gigabyte X58A UD3R rev 2.0, HD Seagate 1TB, Ali Corsair Modular 650w, Thermaltake V9 BLACCKX.

  10. #10
    Tanek's Avatar
    Join Date
    Apr 2004
    Location
    Milano, Midgard
    Posts
    11.225

    Default

    Perche' gli import vanno tutti in alto?

    Cmq class/interface expected non e' l'errore che ti da' quando manca una libreria, infatti gia' dal primo reply t'ho detto ke al 99% avevi sbagliato a scrivere un metodo

    Tanek™: Game Designer & Algorithm Mastermind, Team Leader & SW Engineer and Dungeon Master!
    "Datte Foco"™ and "Ma KITTESENCULA"™ are registered trademarks of Tanek Entertainment Inc.
    ‎"One of these days, scientists will discover that second X chromosome contains nothing but nonsense and twaddle." - Sheldon Cooper
    Per non dimenticare:
    Spoiler


  11. #11
    Lieutenant Commander Kith's Avatar
    Join Date
    Apr 2004
    Location
    Milano
    Posts
    22.142

    Default

    Quote Originally Posted by Tanek View Post
    Perche' gli import vanno tutti in alto?

    Cmq class/interface expected non e' l'errore che ti da' quando manca una libreria, infatti gia' dal primo reply t'ho detto ke al 99% avevi sbagliato a scrivere un metodo
    e ma il perchè me l'hai spiegato 3 reply dopo ^^ thx cmq
    featuring new Uber Computer: i7-950(turbo on 3,2ghz) with 6 GB XMS Corsair RAM , Nvidia Geforce 460 GTX @ 700mhz , on Gigabyte X58A UD3R rev 2.0, HD Seagate 1TB, Ali Corsair Modular 650w, Thermaltake V9 BLACCKX.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[Output: 85.55 Kb. compressed to 73.06 Kb. by saving 12.49 Kb. (14.60%)]