Informazione Informatica e Web 2.0

  • Home
  • Link
  • Segnala Sito
  • Contatti
  • Giochi
  • SMS GRATIS!
Diventa fan! seguici su Twitter Abbonati ai Feed Flickr!

Blue Pink Green Purple Red

Archive for the ‘Java’ Category

Java, gioco del tris Server-Client Multithread

Posted on the marzo 15th, 2009 under Java by Arock

Java, gioco del tris Server-Client Multithread
In questo articolo presento la realizzazione del gioco del tris in Java. . Il programma prevede un client e un server con  relative interfacce grafiche. Server [cc lang="java"] import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; import javax.swing.*; public class TicTacToeServer extends JFrame { private char[] board; private JTextArea outputArea; private Player[] players; private ServerSocket server; private int currentPlayer; private final int PLAYER_X = 0; private final int PLAYER_O = 1; private final char X_MARK = 'X', O_MARK = 'O'; public TicTacToeServer() { super( "Tic-Tac-Toe Server" ); // set title of window board = new char [9]; players = new Player[2]; currentPlayer = PLAYER_X; try { server = new ServerSocket( 12345, 2 ); // ...
  • Read More
  • Nessun commento

Java, cifrario di Cesare

Posted on the novembre 26th, 2008 under Java by Arock

Java, cifrario di Cesare
Il cifrario di Cesare è uno dei più antichi algoritmi crittografici di cui si abbia traccia storica. È un cifrario a sostituzione monoalfabetica in cui ogni lettera del testo in chiaro è sostituita nel testo cifrato dalla lettera che si trova un certo numero di posizioni dopo nell'alfabeto. . In particolare, Cesare utilizzava uno spostamento di 3 posizioni (la chiave era dunque 3), secondo il seguente schema: Testo in chiaro a b c d e f g h i l m n o p q r s t u v z Testo cifrato D E F G H I L M N O P Q R S T U V Z A B C Per cifrare un messaggio, basta prendere ogni lettera del testo in chiaro e sostituirla con la corrispondente lettera della riga testo cifrato. Per ...
  • Read More
  • Nessun commento

Java, re dei linguaggi

Posted on the agosto 17th, 2008 under Java by arock84


Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in /web/htdocs/www.informazioneinformatica.it/home/wp-content/plugins/post-thumb/lib/post-thumb-functions.php on line 250
Java, re dei linguaggi
Secondo una recente rilevazione del Tiobe Programming Community Index, Java è il linguaggio di programmazione più utilizzato al mondo, con popolarità stabile rispetto all’agosto 2007. Dietro a Java in classifica stanno C, (Visual) Basic, C++ e Php. Sul lungo periodo tuttavia si assiste a una lenta ascesa di Php e degli altri linguaggi di programmazione più leggeri, come Perl o Python, a sfavore dei linguaggi impegnativi come appunto Java o C.
  • Read More
  • Nessun commento
« »

Archivi

Categorie

  • Apple
  • Ebook
  • Flash
  • Google
  • Grafica
  • Hacker
  • Hardware
  • Hi-Tech
  • Internet e Web 2.0
  • Iphone
  • Java
  • Joomla
  • Lavoro
  • Linux
  • Mac
  • Microsoft
  • Notebook
  • Software
    • P2P
    • Sistema
  • Streaming
  • Tips & Tricks
  • Univ
  • Videogames
    • Pc
    • Ps3
    • Psp
    • Xbox 360
  • Wordpress

Antipixel

Aggregato su SocialBlog Aggregatore notizie RSS Aggregatore notizie RSS Top Blogs Blog Directory InformazioneInformatica Antivirus Gratis Aggregatore SEO Computer Blogs - BlogCatalog Blog Directory Internet blogs DigNow.net Pizzerie di Napoli Auto Rubate

© 2010 Informazione Informatica e Web 2.0

Valid XHTML 1.0 Strict CSS Valido! Statistiche Creative Commons License
Questo sito è pubblicato sotto Licenza Creative Commons