Posts
 
Reputation
Joined
Last Seen
Ranked #341
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
9
Posts with Upvotes
9
Upvoting Members
6
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
7 Commented Posts
0 Endorsements
Ranked #1K
~13.9K People Reached
Favorite Tags
Member Avatar for neutralfox

Hello everyone, I got a small question on encryption, actually I am trying to learn the various techniques to encrypt a message. Now I am trying AES, using the built in security package in Java. The problem is that I am having a problem with this encryption algorithm. Actually I've …

Member Avatar for JamesCherrill
0
970
Member Avatar for soniagupta98

hey can any one help me in writing the code : Write a Java program that sorts given integers using threads I am not able to proceed ..What should i have in main function()

Member Avatar for finfort
0
131
Member Avatar for ravikiran032

i have written the following code and it is not executing due to the following [B]error[/B] [COLOR="Red"]dec.java:7:integer number is too large :10000000000[/COLOR] [U][B]code[/B] [/U][CODE] import java.util.*; class dec{ public static void main(String args[]){ long dig,store,use,temp,temp1,end; int count=0,count1=0,ch; use=1000000000; end=10000000000; while(use<end){ dig=use; for(int i=0;i<10;i++){ temp=dig%10; dig=dig/10; ch=(10-i)%10; store=use; for(int k=0;k<10;k++){ temp1=store%10; …

Member Avatar for masijade
0
2K
Member Avatar for leverin4

How would one calculate the number of bytes of plaintext that could be encrypted as a single block given the key size? And how could you then calculate the number of bytes of cipher text that can be decrypted in a single block given the same key size because I …

Member Avatar for neilcoffey
0
3K
Member Avatar for Magda

Hello, I have been fighting with this assignment for almost 3 week now and it's almost ready besides one part that I simply don't understand. I would appreciate if someone could maybe translate it into "simple English" for me and maybe give me a little guidance. Basically we are writting …

Member Avatar for JamesCherrill
0
142
Member Avatar for functionalCode

I'm working on a program to upload some files to an ftp. I created a thread the starts the upload when the upload button is pushed. When the upload button is pushed the GUI freezes because it is uploading. What change would I have to make to get the GUI …

Member Avatar for BestJewSinceJC
0
106
Member Avatar for smoore

Okay so I have an ellipse and I could like to have a "racecar" (actually just a 10x10 rectangle) follow the ellipse around the edge. The point that is always touching the ellipse is the upper left hand corner of the "racecar." I'm not even sure where to begin writing …

Member Avatar for neilcoffey
0
132
Member Avatar for neutralfox

Hello everyone, I am currently developing a chat application and I want to encrypt all send messages. I am using the example below: [code] import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypto.NoSuchPaddingException; import javax.crypto.IllegalBlockSizeException; import javax.crypto.BadPaddingException; import java.security.Key; import java.security.Security; import java.security.NoSuchAlgorithmException; import java.security.InvalidKeyException; public class DESCryptoTest { public static void main(String[] …

Member Avatar for neilcoffey
0
634
Member Avatar for caps_lock

So i've downloaded netbeans, and had a play around. But I'm thinking is Java the wrong language to design a duplicate file scanner. The program if not obvious should hopefully atleast identify any files that exist on a computer more than once (copies). Im also going to try and make …

Member Avatar for jbennet
0
253
Member Avatar for srs_grp

I have a byte array has follows: 0 6 -56 28 How can I get its integer value by doing a manual calculation?

Member Avatar for verruckt24
0
843
Member Avatar for anujtripathi

[B][COLOR="Red"]Primary[/COLOR][/B] (x) x.y f(x) a[x] x++ x--new typeof sizeof checked unchecked [B][COLOR="Red"]Unary[/COLOR][/B] + -~ ! ++x --x (T)x [B][COLOR="Red"]Multiplicative[/COLOR][/B] * / % [B][COLOR="Red"]Additive[/COLOR][/B] + - [B][COLOR="Red"]Shift[/COLOR][/B] << >> [B][COLOR="Red"]Relational[/COLOR][/B] < > <= >= is as [B][COLOR="Red"]Equality[/COLOR][/B] == != [B][COLOR="Red"]Logical[/COLOR][/B] AND& [B][COLOR="Red"]Logical[/COLOR][/B] XOR^ [B][COLOR="Red"]Logical [/COLOR][/B] OR| [B][COLOR="Red"]Conditional[/COLOR][/B] AND&& [B][COLOR="Red"]Conditional[/COLOR][/B] OR|| [B][COLOR="Red"]Conditional[/COLOR][/B] …

Member Avatar for Ezzaral
0
138
Member Avatar for srs_grp
Member Avatar for bobi1234

anyone knows how to execute the function (x power n) in O(log n) and it has to be in iteration .

Member Avatar for bobi1234
0
103
Member Avatar for srs_grp

I have a string as follows: 'mnp1011000jie' I want to retrieve contents of the string as follows: 1st field: mnp 2nd field: 101 (which signifies the binary representation of 5) 3rd field: 1000 (which signifies the binary representation of 8) 4th field: jie I know that binary integer requires 4 …

Member Avatar for verruckt24
0
171
Member Avatar for srs_grp

Suppose i have a string which contains some binary data as follows: "bac01010111pqr14 " how can i retrieve binary data from this string using java?

Member Avatar for BestJewSinceJC
0
209
Member Avatar for Boyet728

I am very new to programming and I have an assignment, but I am not asking for the solution. I just want to understand what is being asked. Our instructor presented two codes using a break and continue statement. He stated that both methods are bad programming practices. Which I …

Member Avatar for ~s.o.s~
0
127
Member Avatar for av11453

Hi , I am a beginner in java and programming. Please help me out to set two attributes for a string field. Here segFolderName is a string field. I need to set two attributed name and description to segName and segDesc respectively. segFolderName.name = segName; segFolderName.description = segDesc; Thanks in …

Member Avatar for neilcoffey
0
58
Member Avatar for jrobw

hi, i alreday posted under [URL="http://forums.sun.com/thread.jspa?threadID=5355743&tstart=30"]http://forums.sun.com/thread.jspa?threadID=5355743&tstart=30[/URL] yesterday, but no one helped me. it's an assignment for university, i have only few hours left to complete it, any hints would really be great!! here my post: I have to write a frame with two componenents of squared size (i chose 450 …

Member Avatar for neilcoffey
0
188
Member Avatar for srs_grp

i want to write a code for big endian and little endian represntation of message.The msg is trading message.How can i do it with core java? also how can i check data type validity of input given by user and data type is also provided by user. Both Data type …

Member Avatar for AlbertPi
0
228
Member Avatar for bachma7

hi every body,i have a question- i programing UDP server to download file,it 's work but it can serve only one client one time, how could i create a udp server that can serve a lot clients at the same time. thank you very much.

Member Avatar for neilcoffey
0
220
Member Avatar for sciwizeh

Ok, i'm trying to make two player, no-network pong. i don't know what the problem is, there are some very strange things happening... at the beginning of the program i try to set a y value to half the height, but it doesn't it stays at y=0 when the user …

Member Avatar for sciwizeh
0
135
Member Avatar for tristan17

hi people, I want to convert the pixel to a set of rgb values, but I don't really have an idea. If i am not wrong, there are some java commands like readImage and readPixel and raster that are related to digital image. Can someone shed a light on me? …

Member Avatar for sciwizeh
0
700
Member Avatar for relequestual

Hi everyone. I'm new to this forum, recommended by a friend. I've just finished my first term at uni, and learnt some java. I'm creating a simple helicopter game in java, and have some issues using timers. The funny thing was, i started the project on my laptop, and it …

Member Avatar for Ezzaral
0
1K
Member Avatar for CoolGamer48

I'm trying to load a bitmap into an Image object using the following code: [CODE=Java] System.out.println("Point A"); System.out.println("Point B"); m_image = Toolkit.getDefaultToolkit().getImage(getClass().getResource(filename)); System.out.println("Point C"); MediaTracker mt = new MediaTracker(null); System.out.println("Point D"); mt.addImage(m_image, 0); System.out.println("Point E"); try { System.out.println("Point F"); mt.waitForID(0); System.out.println("Point G"); } catch (InterruptedException ie) { System.err.println(ie); System.exit(1); } …

Member Avatar for Ezzaral
0
169
Member Avatar for pocku

I'm working on a quick sort algorithm using recursion but it's throwing a stackOverflowError. Here is the code: [CODE] public static void quicksort(int [] A){ quickSortRec(A, 0, A.length-1); } public static void quickSortRec(int [] A, int p, int r){ if (p < r){ int q = Partition(A, p, r); quickSortRec(A, …

Member Avatar for neilcoffey
0
192
Member Avatar for PhiberOptik

Hey guys, I have a program that I want to launch and pass a parameter. For example: [QUOTE]"C:\Program Files\aProgram\test.exe -login joeSmith password1"[/QUOTE] The thing is I can't just add that to a shortcut because lots of other people will be using this computer as well. Is there a way of …

Member Avatar for neilcoffey
0
85
Member Avatar for Sereal_Killer

I have a basic problem i dont know where the error lies. i can create a class Persoon and fill in all its values before its created . but for some reason when i call up the information i get the current Date as the birthdate and not what i …

Member Avatar for neilcoffey
0
106
Member Avatar for robertmacedonia

Hello, I'm new in Java programming, just learning it and I want to ask you about the Exceptions. As much as I understood, I just need to create a class e.g. "MyException" that extends the Exception class, and use the exception specification "throws" in the function that might throw the …

Member Avatar for Tyster
0
142
Member Avatar for clueless101

[quote] Once again, I can get part of my code to work, but not all. When the user inputs more than one sentence [I](ending with either a period, question mark or exclamation point), [/I]each sentence should be capitalized accordingly. However, it only works with the first sentence to work. Does …

Member Avatar for ~s.o.s~
0
124
Member Avatar for it2051229

I'm creating a java program that in every second there is a data stored into my table. I made use of THread.sleep(1000) to pause the for loop in every second.. But when my program runs, it freezed for 10 seconds because of the condition of my for loop where the …

Member Avatar for Ezzaral
0
91