Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CRC32 algorithum

 
Parag Patankar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I am a beginner of a java. I want to calculate CRC32 algorithum on aix 5.2 using java. How can I do this ? ( my understanding is it is part of java.util.zip. But I can not find this file ? How to install it ? )

thanks & regards
parag
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15272
37
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

java.util.zip is a package, not a file. Look it up in the API documentation.
 
Parag Patankar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for your warm welcome. I would like to know

1/ What is difference in package and file ? ( sorry for my basic java knowledge )

2/ How to calculate CRC32 checksum using java ?

thanks & regards
PJP
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A good source for examples of the core Java classes is http://www.javaalmanac.com/egs (you might want to bookmark this). Calculating the CRC32 of a file is demonstrated here.

The Sun Java Tutorial is a good place to start learning about concepts like packages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic