Click here to Skip to main content
15,917,061 members
Home / Discussions / Java
   

Java

 
AnswerRe: binary search tree error compliation error Pin
I am BATMAN4-May-09 5:43
I am BATMAN4-May-09 5:43 
Questionis there any decryption algorithm that uses a dictionary to decrypt an encrypted file? Pin
Ha lee3-May-09 14:47
Ha lee3-May-09 14:47 
AnswerRe: is there any decryption algorithm that uses a dictionary to decrypt an encrypted file? Pin
I am BATMAN4-May-09 5:47
I am BATMAN4-May-09 5:47 
AnswerRe: is there any decryption algorithm that uses a dictionary to decrypt an encrypted file? Pin
Ha lee4-May-09 10:39
Ha lee4-May-09 10:39 
QuestionHow to get/create Image from the given file name? Pin
Flying_Doc1-May-09 14:09
Flying_Doc1-May-09 14:09 
QuestionJ2EE on Server 2003 Standard Pin
SimonRigby30-Apr-09 1:20
SimonRigby30-Apr-09 1:20 
AnswerRe: J2EE on Server 2003 Standard Pin
adatapost3-May-09 17:37
adatapost3-May-09 17:37 
QuestionHow to do zigzag scanning in java Pin
Flying_Doc29-Apr-09 18:57
Flying_Doc29-Apr-09 18:57 
could any one tell me how to do zigzag scanning in java. i was doing it in c++
i was use this in c#
struct zigzag
{
int row;
int col;
} ZigZag[8*8] =
{
{0,0},
{0,1},{1,0},
{2,0},{1,1},{0,2},
{0,3},{1,2},{2,1},{3,0},
{4,0},{3,1},{2,2},{1,3},{0,4},
{0,5},{1,4},{2,3},{3,2},{4,1},{5,0},
{6,0},{5,1},{4,2},{3,3},{2,4},{1,5},{0,6},
{0,7},{1,6},{2,5},{3,4},{4,3},{5,2},{6,1},{7,0},
{7,1},{6,2},{5,3},{4,4},{3,5},{2,6},{1,7},
{2,7},{3,6},{4,5},{5,4},{6,3},{7,2},
{7,3},{6,4},{5,5},{4,6},{3,7},
{4,7},{5,6},{6,5},{7,4},
{7,5},{6,6},{5,7},
{6,7},{7,6},
{7}
}

i use this in java..
//the initiation
protected int zigzag[][] = {
{0, 1, 5, 6,14,15,27,28},
{2, 4, 7,13,16,26,29,42},
{3, 8,12,17,25,30,41,43},
{9,11,18,24,31,40,44,53},
{10,19,23,32,39,45,52,54},
{20,22,33,38,46,51,55,60},
{21,34,37,47,50,56,59,61},
{35,36,48,49,57,58,62,63},
};
//the method
public void zigZagScan(int blkIn[][],int buffOut[])
/* Desk: Method for zigzag scanning as a pattern of scanning in RLE
I.S : array 2D of 8x8
F.S : array 1D of 64
*/
{
int row, col;
for (i=0;i<64 ;i++ )
{
row = zigzag[i]; //i want to use row = zigzag[i].row
col = zigzag[i]; //i want to use col = zigzag[i].col
buffOut[i]=blkIn[row][col];
}
}

could any one tell me what is the suitable sintax in java?
thanx
Questionmoving a graphic Pin
jonig1928-Apr-09 16:13
jonig1928-Apr-09 16:13 
AnswerRe: moving a graphic Pin
Nagy Vilmos28-Apr-09 23:01
professionalNagy Vilmos28-Apr-09 23:01 
Question[Message Deleted] Pin
jonig1928-Apr-09 10:46
jonig1928-Apr-09 10:46 
AnswerRe: move() graphics Pin
fly90428-Apr-09 11:37
fly90428-Apr-09 11:37 
Questionsaving files with current date and time as their names Pin
nicks1128528-Apr-09 2:01
nicks1128528-Apr-09 2:01 
AnswerRe: saving files with current date and time as their names Pin
Jimmanuel28-Apr-09 3:09
Jimmanuel28-Apr-09 3:09 
Questionsending an e-mail Pin
prasadbuddhika26-Apr-09 20:25
prasadbuddhika26-Apr-09 20:25 
AnswerRe: sending an e-mail Pin
Gil Messerman27-Apr-09 6:03
Gil Messerman27-Apr-09 6:03 
GeneralRe: sending an e-mail Pin
shrims4u17-May-09 6:48
shrims4u17-May-09 6:48 
Questionjava recursion problem Pin
harshad bhatia26-Apr-09 2:13
harshad bhatia26-Apr-09 2:13 
AnswerRe: java recursion problem Pin
CPallini26-Apr-09 23:26
mveCPallini26-Apr-09 23:26 
GeneralRe: java recursion problem Pin
harshad bhatia27-Apr-09 0:22
harshad bhatia27-Apr-09 0:22 
GeneralRe: java recursion problem Pin
CPallini27-Apr-09 0:39
mveCPallini27-Apr-09 0:39 
GeneralRe: java recursion problem Pin
harshad bhatia27-Apr-09 0:51
harshad bhatia27-Apr-09 0:51 
QuestionRe: java recursion problem Pin
CPallini27-Apr-09 0:57
mveCPallini27-Apr-09 0:57 
AnswerRe: java recursion problem Pin
harshad bhatia27-Apr-09 1:08
harshad bhatia27-Apr-09 1:08 
GeneralRe: java recursion problem Pin
harshad bhatia27-Apr-09 1:14
harshad bhatia27-Apr-09 1:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.