Need help with my program
When I run it I get: java.lang.NullPointerException at Packages.toString(Packages.java:78) at java.lang.String.valueOf(String.java:2854) at java.io.PrintStream.println(PrintStream.java:821) at...
View ArticleHibernate JPA Learning
Hi, I want to know the details about the Hibernate JPA ( Java persistence API ) . Any good learning tutorial for this. I already googled and found some links but if you can help me with a detailed...
View ArticleShopping Cart Program
Hi guys, I'm new with java and working on my first project and I got stuck with this ShoppingCart Class. Here is my ShoppingCart class and my question is when I add an ItemOrder which contains name of...
View ArticleDeveloping C# and Java (for Windows) on my Android Tablet
Hi, hope this is the right section. I am a computer science student and would like to be able to write code on my tablet (not for running on the tablet/android, but for transferring back to my desktop...
View ArticleJava application with windows form
How do I create one? I remember Visual Studio having something similar? Does Eclipse supports that? And would you know any guide/book/tutorial about that? Thanks.
View ArticleSummation Problem
Hey I'm having trouble doing this problem for my Computer Algorithms class. We're using Introduction to Algorithms by Thomas H Cormen et al....
View ArticleAdd all elements in an array
Hi, I need help on this Sum problem. I want to add all the array elements into one value which is '19.0', instead it prints out: 1.0 3.0 7.0 12.0 18.0 as I want to use the sum output later, I only want...
View ArticleSort on frequency/bytes from .txt
Hi, I want to read an file like (readthisfile.txt) read all the bytes like T=116 and the frequency(occurence of each byte) example: "test" http://i50.tinypic.com/1pgn76.png private void...
View ArticleQuestions About switch Statements
Hello, so I'm making a blackjack game for fun. To make the cards I used this tutorial. I have all the cards assigned to a value with a swich statement like so. public class Card { private int rank,...
View Articleget text of the selected item in combobox
I have a combobox which is filled from a binding source from the database. i want at some point of the program to get the selected value of the combobox. The table in the database has a column of Id...
View ArticleNetbeans memory
I'm using NetBeans (7.3 Beta) for Java as, I suspect, do a lot of people here. It was running very slowly and I modified to the following settings in my netbeans.conf file:...
View ArticleCalculating cosine using recursion problems
To expand on the title of the thread, I have been having trouble creating a proper cosine function that uses recursion. I don't want to use any form of a loop in this code. I have tried everything I...
View ArticleTrying to code a simple paper, scissors, stone game
I have got as far as being able to input 'paper', 'scissors' or 'stone'. It's then that I get an error message saying that whatever I have inputed is "undefined". Here's my code: [#the computer will...
View ArticleOpen a csv file from HTML form
Hi guys, I'm new to python and I have a problem opening a file in python because I can't pass the correct format file name to the open file function. heres my code: form = {} for ele in request.form:...
View ArticleMaking a code to simulate random walk
I don't have any programming experience, but I wanted to make a code for the following scenario: For each successive trading day, the closing price of a stock will be determined by the flip of a fair...
View ArticleSetting the length of a float
Okay this is a noob question kind of.. I have a float that is appearing on the screen as "0.000000", and I want it to just appear as "0.0", with only one number to the right of the decimal sign.. How...
View Article[QUESTION] Taylor Series Cosine [QUESTION]
I have no idea what I would do in order to calculate the taylor series in cosine. I have tried numerous times to make code for it, but I can't figure it out, it's really annoying me and stuck in my...
View ArticleIs there a goto command in python?
You know how you can do :START (start of the loop) and use at the end of the program a GOTO :START ( in batch file). is there a similar command in python? Thanks for the help .
View Articletracking variables across multiple windows with events inotify
This is actually a continuation of an ongoing issue I'm having but I think it should be in a new post as I'm taking a completely new path to get this feature working.. So this is what I have currently...
View Articledisplay average pixel value
Hi. I have a project which opens an image in PictureBox1, no problem. But the Public Static Color method at the bottom of the code is not working. I was hoping it would display the average value of the...
View Article