Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
73% Quality Score
Upvotes Received
7
Posts with Upvotes
7
Upvoting Members
7
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
2 Commented Posts
~23.6K People Reached
Interests
Java,Javascript,PHP,C++,HTML&CSS
PC Specs
CPU: Intel Core i7-870, RAM:12GB, GPU: Sapphire Ati Radeon 7790
Favorite Tags
Member Avatar for JamesCherrill

I've opened this thread following rotten69's suggestion for "Java projects for beginners". To get things started I've posted a project in a format that makes sense to me; please feel free to follow that format, or to do it in some completely different style if that seems better. Let's see …

Member Avatar for Alok_5
20
3K
Member Avatar for godzab

Hello all, I am trying to take input from user using scanner. The problem is, when the loop starts, it skips taking input for the first iteration. Here is the code: import java.util.Scanner; public class TrigTriangles{ public static void main(String[] args){ int N; double a,b,c; double A,B,C; Scanner s = …

Member Avatar for noobz32
0
202
Member Avatar for godzab

Hello all, I was wondering on how I would extract a number out of a String after a specified character. For example, if String s = "22+5+35" , how can I extract and store the numbers 22,5, and 35 in a ArrayList?

Member Avatar for Taywin
0
303
Member Avatar for Ersin
Member Avatar for godzab

Hello all, I am trying to find all occurences of a letter in a word. If the letter is present in the word, then I save it to a String. For example here is the text: Hello World, my name is godzab. I search the text, and if there is …

Member Avatar for godzab
0
101
Member Avatar for godzab

Hello all, I have a Dell Studio XPS 8100. I was playing crysis 2 eariler today, and after an hour I quit the game. I left the computer standing for 15 mintues, and then was trying to open up google chrome. The problem was my computer was freezing, so I …

Member Avatar for godzab
0
451
Member Avatar for Stuugie

Hi All, I'm trying to loop through and open PDFs in a folder using Java. I have the following code: import java.awt.Desktop; import java.io.File; import java.io.IOException; public class OpenPDFs { public static void main(String[] args) throws IOException { // TODO code application logic here String fp; fp ="S:\\Economic Forecasts\\Fcst13\\SourceForecasts\\"; File …

Member Avatar for Stuugie
0
566
Member Avatar for purity_1

how can i come up with a code in java that shows the number of apartments in a block, the number of blocks in the estate and AT the same time show the cost of renting an apartment the name of the tenant in the apartment and how i can …

Member Avatar for JamesCherrill
0
147
Member Avatar for yusking

Using an SQLite database your program should be able to create, read, update, and delete room reservations. Present the user with a menu at the beginning using the console or JOptionPane for example: Choose a task 1. Add a reservation 2. View a reservation 3. List all reservations 4. Update …

Member Avatar for stultuske
-2
2K
Member Avatar for godzab

Hello, I am trying to encrypt a String using Symmetric Key Cryptography. When I try to encrypt the string, on runtime it gives me this error: input text: Hello World Exception in thread "main" javax.crypto.IllegalBlockSizeException: data not block size aligned at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source) at javax.crypto.Cipher.doFinal(DashoA13*..) at SimpleSymmetricExample.main(SimpleSymmetricExample.java:25) I know it …

Member Avatar for JamesCherrill
0
3K
Member Avatar for godzab

Hello, I have started picking up on encrytion, and I seem to have an error when I run the program. Here is the error: Exception in thread "main" java.security.NoSuchAlgorithmException: Cannot find any provider supporting ES/ECB/PKCS5Padding at javax.crypto.Cipher.getInstance(Cipher.java:453) at GenerateKey.encrypt(GenerateKey.java:41) at GenerateKey.<init>(GenerateKey.java:24) at GenerateKey.main(GenerateKey.java:71) Here is my GenerateKey class: import java.io.IOException; …

Member Avatar for godzab
0
285
Member Avatar for callen91

I'm taking my first Java class. I need to create a rock paper scissors game. I can't seem to figure out how to fix it. Please help! Thanks (: I'm using NetBeans IDE 7.3 btw /* * To change this template, choose Tools | Templates * and open the template …

Member Avatar for stultuske
0
516
Member Avatar for godzab

I am trying make a linkedlist remove() method. It only works half way. When I try to remove a number, it removes the whole right side. For example here is the output: ` before remove: 8,7,3,5,2, after remove: 8,7,` How do I get it so only the three is removed? …

Member Avatar for godzab
0
221
Member Avatar for sliobra

I was doing my assignment till I reached this point. Add a static Date toDate(String str) method to the DateTest class. If the method is called with a string like “23/5/2013”, it will create and return the corresponding date object. If the input string is not valid date, the method …

Member Avatar for JamesCherrill
0
191
Member Avatar for godzab

Hello, I have tried making a merge sort method, but I am getting an `Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 .` How do I fix this error, I have tried but I can not find the error: public class MergeSort{ public static int[] merge_sort(int[] b){ if(b.length <= 1){ return b; …

Member Avatar for JamesCherrill
0
209
Member Avatar for godzab

I am trying to write a selection sort, but I am getting a outofbounds error. How do I fix this? public class SelectionSort{ public static void selectSort(int[] arr){ int least = 0; for(int i = 1; i < arr.length - 1; i++){ for(int j = i + 1 ; i …

Member Avatar for jalpesh_007
0
87
Member Avatar for happygeek

An in-the-wild exploit targeting a vulnerability with Java 7 has led to security experts the world over warning users to disable the Java plug-in for their browser clients at the very least, and preferably uninstall Java altogether. The CVE-2012-4681 vulnerability, comprising two flaws, along with a couple of other 'related …

Member Avatar for vmk99
0
681
Member Avatar for lloydsbackyard

try{ name= JOptionPane.showInputDialog("Enter Employee Name: "); } <br /> catch (Exception e){ //wHAT IS THE CODE HERE if THE INPUT IS NUMERIC JOptionPane.showInputDialog("Invalid Input"); }

Member Avatar for lloydsbackyard
0
132
Member Avatar for godzab

I am just trying to submit two input fields, username and password. I am not able to do that because my code won't submit my data to the PHP database. The code is below, also please note I am trying to use ajax: getData.php <?php $db = mysql_connect('localhost', 'wont tell', …

Member Avatar for Clanstrom
0
221
Member Avatar for godzab

I am not sure how to explain this so I will give an example. If I were to have two arrayList like the one listed below: ArrayList<String> java = new ArrayList<String>(); java.add("1"); java.add("2"); java.add("2"); java.add("4"); ArrayList<String> lava = new ArrayList<String>(); lava.add("0"); lava.add("2"); lava.add("5"); lava.add("4"); how would i remove the duplicates, …

Member Avatar for JamesCherrill
0
288
Member Avatar for godzab

It just started today, a random Homegroup icon came to my desktop, and after a while my desktop background changed. I don't even have a homegroup setup, is this a virus?

Member Avatar for caperjack
0
87
Member Avatar for rotten69

Hi everyone, I want to get started on learning jQuery Framework.I got the basics of the JavaScript at this stage. But now, I don't know where to start with jQuery. Other than the jQuery.com website. Would you suggest easy-to-follow introductions to jQuery? Is there a big difference between jQuery and …

Member Avatar for iamthwee
0
301
Member Avatar for godzab

Here is my form.html <html> <head> <script type="text/javascript"> function ajax() { var aj; if(window.XMLHttpRequest) { aj = new XMLHttpRequest(); } else { aj = new ActiveXObject("Microsoft.XMLHTTP"); } aj.onreadystate = function() { if(aj.ready == 4) { document.getElementById("text").innerHTML = aj.responseText; } }; var param = document.forms["fo"]["text"].value; aj.open("GET", "try.php" , true); aj.send(); } …

Member Avatar for esma.ramirez
0
124
Member Avatar for DaveyMoyes

How do i add variables from $var1=urlencode(''.$var1.''); on page one.php and use the values from the above variables on page two.php $var1 = $criteria['".$var1."']; if($var1=='') $var1 = ''; Page two is included in page one and I am trying to use the same variable value.

Member Avatar for broj1
0
197
Member Avatar for godzab

As the title said, how would I get text from a input tag and show it dynamicly. So whenever i press a, it shows up in a p tag. How would I do this in jQuery? EDIT: Here is what I have but its not working: <html> <head> <title>update text …

Member Avatar for JorgeM
0
165
Member Avatar for mevoohafez

I tried to insert data using the following code, but I really I don't know how can I get result and what is the problem in my code, I tried to build firstly my form then I write the insert query and send it to a new form , any …

Member Avatar for Squidge
0
313
Member Avatar for gamebook
Member Avatar for yup790

I have nearly finished teach yourself java in 21 days. What should I do now to get good at programming, especially java but other languages would be nice. BTW, java is my first programming language.

Member Avatar for godzab
0
94
Member Avatar for godzab

I have been programming in java for 1 year, but I would like to contribute to an open source program. The problem is its to compicated for me to join a open source program. Is there any recommendations you guys have for any open source projects I can join?

Member Avatar for rotten69
0
89
Member Avatar for joejo

Need help urgently. Can anyone please help me finish up a project which i have a deadline to meet in 3 hours time. It's a camp application to input and store the records of the children from my church! I have created the GUI and I am left with the …

Member Avatar for Stuugie
0
216