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

hello everybody. i have formatted my desktop and after formating i couldn't get another drive, other than C drive. i think some unallocation problem.. please help me to get my D drive back as that contain my important documents. thanks..

Member Avatar for jbennet
0
117
Member Avatar for adil_bashir

can we return 7 elements of an int array using return statement. if not, please help?

Member Avatar for NormR1
0
97
Member Avatar for adil_bashir
Member Avatar for adil_bashir

hello everyone, I have implemented RSA algorithm in java but now i am asked to determine the time for encrypting variable length messages(plain text). As an example, i have to find the time in which input message of length 3 will get encrypted, similarly the time in which input message …

Member Avatar for DavidKroukamp
0
259
Member Avatar for adil_bashir

hello everyone, help me in centering the frame which i developed using swing. Here is the code: [CODE] import javax.swing.*; public class RSAInterface extends JFrame { public RSAInterface() { setTitle("RSA by adil"); setBounds(200,200,300,300); setResizable(false); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel panel = new RSAPanel(); this.add(panel); } } [/CODE] [CODE] import javax.swing.*; public class RSAInterfaceTest …

Member Avatar for Hazem Nassr
0
123
Member Avatar for adil_bashir

hello, is there any function in java that can give me 2^n binary combinations. as an example, if the value of n = 2, output should be: 00, 01, 10, 11 ??

Member Avatar for stultuske
0
58
Member Avatar for vgpans

Hi, I've used g.drawRect(----) and some other stuffs and happily accepted o/p but really want to enhance myself in knowing how to code it if I want to draw the same figure in reverse direction.

Member Avatar for stephen84s
0
85
Member Avatar for adil_bashir

can anyone tell me how to get out of the error Connection refused: connect thanks in advance

Member Avatar for adil_bashir
0
54
Member Avatar for adil_bashir
Member Avatar for adil_bashir

hello, i have written the below piece of code for calculating the power function, but when i run the program, it shows the wrong result and i verified it by calculating manually. so please help me to get the correct result. [CODE] public class powerFunction { public static void main(String …

Member Avatar for dantinkakkar
0
166
Member Avatar for adil_bashir

hello everyone.. i have studied the beginning java, can you please suggest me any small project that will brush up my concepts.

Member Avatar for stultuske
0
143
Member Avatar for adil_bashir

Ihave written the below pieces of code, but i am not able to solve the compilation error here as it shows the error as ArrayOutOfBoundsException error. so please tell me hw to remove the error and please bring the necessary changes. [CODE] import java.util.*; public class Cipher { private int …

Member Avatar for adil_bashir
0
159
Member Avatar for adil_bashir

i am doing the coding of my minor project and for that i need to convert an input text(String) to an int type as i am inputting the data through swing component, panel as text(string). But internally i need to process that as int. so please tell me how can …

Member Avatar for adil_bashir
0
179
Member Avatar for adil_bashir

[CODE] public static void main(String[] ar) { ..... int N = Integer.parseInt(args[0]); ..... } [/CODE] Error is : Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0

Member Avatar for adil_bashir
0
91
Member Avatar for moe0

Hello I'm writing a little program to check if a postal code is valid or not and I'm using while loop and if statement this is the code: [CODE]final String REGEX = "[A-Z&&[^DFIOQU]][0-9][A-Z&&[^DFIOQU]] [0-9][A-Z&&[^DFIOQU]][0-9]"; output.println ("Please Enter a Valid Postal Code: "); String postal1; String postal2; boolean isCorrect = false; …

Member Avatar for DavidKroukamp
0
73
Member Avatar for Valiantangel

hi Got 2 questions. 1.How can i simplify 4 variables all with same condition? if a,b,c,d <1 System.out.println("Invalid input");? How to put this in a simple code?I know it can be done individually. 2.if the above condition is false i dont want my code to go further and calculate the …

Member Avatar for DJSAN10
0
85
Member Avatar for adil_bashir

please check the following piece of code and give the correct code as my program is showing some error. here is the code. public class passingArray { public int getCipherText(int[] c, int len) { int cipher = 0; int e = 7; int n = 130; cipher = (int)((Math.pow(c[len],e)) % …

Member Avatar for DavidKroukamp
0
233
Member Avatar for adil_bashir

please tell me how to convert an integer type to a String. if possible, give some code?

Member Avatar for stultuske
0
168
Member Avatar for adil_bashir

please give some piece of code that will make me understand that how to pass an array to a method/function?

Member Avatar for adil_bashir
0
180
Member Avatar for adil_bashir

Since i am new to java, so please tell me that is there any way by which i can convert integer array to primitive int?? if yes, give some code.

Member Avatar for adil_bashir
0
252
Member Avatar for adil_bashir

i need to return the ASCII value of the argument passed in the StringtoIntfunc(). But i am not getting the real ASCII values and i think the problem is with the return statements? please help. public class StringIntfc { public int[] StringtoIntfunc(String s) { int j =0; int k[] = …

Member Avatar for DavidKroukamp
0
126
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