Quantcast
Channel: Programming Forums
Browsing all 51036 articles
Browse latest View live
↧

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 Article


Hibernate 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 Article


Shopping 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 Article

Developing 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 Article

Java 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 Article


Summation 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 Article

Add 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 Article

Sort 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 Article


Questions 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 Article


get 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 Article

Image may be NSFW.
Clik here to view.

Netbeans 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 Article

Calculating 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 Article

Trying 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 Article


Open 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 Article

Making 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 Article


Setting 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 Article


Image may be NSFW.
Clik here to view.

Is 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 Article

tracking 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 Article

display 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
Browsing all 51036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>