Believe it or not im actually a halfway competent JAVA programmer. Ive been programming for years. I know all about Loops, recursion, Class heiarchy etc.
BUT i know nothing about hacking o_O?.... dont even know where to begin.....I see that most haks ro wriiten in VisualBasic... which i dont think is a real language >.<. If anyone has experience writing hacks in java i would love the help in getting started.
Plus i know quite a bit about more advanced programming....so...u know maybe i can help u guys out :l... or something.
Thx in advanced and btw im new which is why i sound like a nub >.>
Heres a sample of some of my work.... it was part of a zipcode program.... dont ask.
Code:
public class BarMaker
{
public static String makeBar(String zipcode)
{
//Varibles for this method_________________________________________________//
int checkDigit = 0;
int zipnum = 0;
String barcode = "|";
String[] tenStrings = {"1","2","3","4","5","6","7","8","9","0"};
int [] tenNumbers = {1,2,3,4,5,6,7,8,9,0};
S
tring[] bars = {":::||","::|:|","::||:",":|::|",":|:|:",":||::","|:::|","|::|:","|:|::","||:::"};
if(BarMaker.itLooksLikeAnInteger(zipcode))
{
for(int i = 0; i <= 4; i++)
{
String k = zipcode.substring(i,i+1);
for(int x = 0; x <= 9; x++)
{
if(k.equals(tenStrings[x]))
{
zipnum += (tenNumbers[x]* Math.pow(10, 5 - i-1));
barcode += bars[x];
}
}
}
if(zipnum%10 != 0)
{
//System.out.println(zipnum);
int temp = zipnum%10;
checkDigit= 10 - temp;
barcode += bars[checkDigit];
}
else
{
barcode += bars[9];
}
}
barcode += "|";
return barcode;
}
public static boolean itLooksLikeAnInteger (String zipcode)
{
//Variables for this method____________________________________________________________________________//
boolean numbersAreIntegers = false;
int numberOfNumbers = 0;
String[] tenStrings = {"1","2","3","4","5","6","7","8","9","0"};
//Loops Check size of zipcode and determines weather characters are in fact numbers____________________//
for(int i = 0; i <= 4; i++)
{
String k = zipcode.substring(i,i+1);
for(int x = 0; x <= 9; x++)
{
if(k.equals(tenStrings[x]))
{
numberOfNumbers++;
}
}
}
//If zipcode is in fact a zipcode return true__________________________________________________________//
if((zipcode.length() == 5) && (numberOfNumbers == 5))
{
numbersAreIntegers = true;
}
return numbersAreIntegers;
}
}