Posts
 
Reputation
Joined
Last Seen
Ranked #208
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
94% Quality Score
Upvotes Received
145
Posts with Upvotes
120
Upvoting Members
62
Downvotes Received
9
Posts with Downvotes
8
Downvoting Members
6
28 Commented Posts
9 Endorsements
Ranked #222
Ranked #236
~210.66K People Reached
Favorite Tags
Member Avatar for tensity

This is the first program for a class that I am taking. I am having trouble creating the classes. We were only taught briefly on the subject and then told to complete this project. I guess my first question is how should I set my class "deck" and "card" up? …

Member Avatar for Hunter_2
0
2K
Member Avatar for Pobunjenik

I've managed to construct a working code for John Conway's Game of Life. Now I wish to GUI-ize it. My only problem is printing a matrix. I want a huge text field to print "_" for no life and "X" for life in each cell (much like I did in …

Member Avatar for sishenyelang
0
1K
Member Avatar for dwel
Member Avatar for bguild

I've noticed that there are various icons around the site that aren't appearing for me in Firefox the way they appear in Internet Explorer. They seem to be characters without the font needed to render them. I have attached a screenshot that shows the effect, most obviously next to the …

Member Avatar for Dani
1
875
Member Avatar for darylglenng

package numberpyramid; public class Numberpyramid { public static void main(String[] args) { int x = 9; for (int i =1; i<=x; i++){ for (int j =1; j<=x-i; j++) { System.out.print(" "); } for (int k=i; k>=1; k--) { System.out.print((k>=10)?+k:" "+k); } for(int k=2; k<=i; k++) { System.out.print((k>=10)?+k:" "+k); } System.out.println(" …

Member Avatar for pallav89
0
637
Member Avatar for matthewwhite011

Obesity in children has been a major issue and parents seem to have very little interest or concern in this issue. This was shared by a health and wellness graduate assistant at Indiana University. The news detail is as follows: > A new poll released today shows a large a …

Member Avatar for Reverend Jim
0
958
Member Avatar for happygeek

A couple of years ago, a 17 year old was arrested for his part in a denial of service attack against gamers playing the online multiplayer version of Call of Duty: Black Ops. The teenager was accused of selling cheat software called 'Phenom Booter' which prevented others from playing (it's …

Member Avatar for mrgreen
1
505
Member Avatar for kevinyu

This is my code. I don't know exactly why the program doesn't work. If I press the button, it should display the corresponding quote and its author. But nothing is displayed. After experimenting, I found out that the try clause of the exception DIDN'T REALLY work. I need help on …

Member Avatar for kevinyu
0
234
Member Avatar for bumsfeld

In my journey to find a new programing language to learn, I found Nimrod. According to the spiel on its web page: "Nimrod combines Lisp's power with Python's readability and C's performance." Just curious to know if anbody here has used it? Nimrod's home is at: http://nimrod-code.org/

Member Avatar for rubberman
1
323
Member Avatar for gagun

ok i was working on simon says app...here is the codes ...something is giving me nullpointerexception...i have trying to think for hours and cant seem to find anything to correct on...please help Here is the Main.java package com.gagan.simonsaysreplica; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; …

Member Avatar for cool_zephyr
0
846
Member Avatar for jemz

Hi, I need some help on this how can i use the arrow keys(up,down,left and right) in the keyboard so that the filloval will move, I have no idea on this.can you help me on this please. Thank you in advance. import java.util.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; public …

Member Avatar for jemz
0
1K
Member Avatar for Pobunjenik

Hi everyone! So, I hereby hope to show that I've made progress in coding java (largely due to the help of this great community). I want to thank everyone for dealing with me (especially James). :) The goal: The code below is supposed to seed a layout of boats into …

Member Avatar for JamesCherrill
0
2K
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 asif49

Hi, I have a friend who raised this question and it really got me wondering. I'm not so familiar with laws but basically he's going abroad on a holiday and of course is taking his laptop + ext hard drives with him. The problem (or is it?) is that he's …

Member Avatar for jwenting
0
748
Member Avatar for bibiki

Hey there, I have a question regarding the builder pattern that I need someone with more experience to clarify for me. I have this User class that has an inner, public static Builder class that has the same fields as User as well as the corresponding setter methods. Now, the …

Member Avatar for bibiki
1
154
Member Avatar for CoilFyzx

Hello good day. I have an urgent need as it relates to creating a table. Is it possible to create sub-columns under a main column? Please see image file for clarification. ![70637f1f94a4b270bf9cc203f22390bf](/attachments/large/3/70637f1f94a4b270bf9cc203f22390bf.png "70637f1f94a4b270bf9cc203f22390bf") Ultimately, I want to create a coulmn heading, and then beneath that heading divide it's width into …

Member Avatar for JamesCherrill
0
890
Member Avatar for Violet_82

Hi I would be really interested to understand how exactly the toString() method works. I have read quite a bit about it, that it returns the string representation of an object, that the default one can be overridden with @Override etc etc. Let's have a look at some examples: @Override …

Member Avatar for Violet_82
1
224
Member Avatar for ceelos1974

well I need some guidance to how I can do what I wan't done as I haven't gotten any idea I got the GUI made, now I have these items I wan't the player to be able to paste onto the empty space (were there are no GUI) how can …

Member Avatar for ceelos1974
0
223
Member Avatar for peymankop

Hi...! I'm working on a notepad project,in save or saveas option just like the real notepad i want that the file automaticly save as .txt file if in the option below i choose "all files" it saves a file and if i choose "text documnet" save as *.txt file how …

Member Avatar for bguild
0
127
Member Avatar for overwraith

I have been having some trouble with this action listener scenareo, and I am doing it exactly like what my java book says to do, and something is still not working. In the action listener the if statement is not working correctly. Here is an example of my code. The …

Member Avatar for overwraith
0
171
Member Avatar for maxcatozzi

Hey, Does anyone see anything wrong with this? I don't know what's up, it's throwing the IOException everyt time even though the mp3 is in the source folder. (I tried .wav as well). I'm trying to place this in a GUI, but testing it seperately first. import java.io.*; import sun.audio.*; …

Member Avatar for stultuske
0
1K
Member Avatar for parkz16

there are no visible error in the syntax but when i run the application i keep getting the following error. i have been trying to fix it for hours and simply cant find the problem. the error that appears when running is; Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.JComboBox.setModel(JComboBox.java:292) at …

Member Avatar for bguild
0
33K
Member Avatar for riahc3

Hello This is a demo showing Java interacting with Daniweb's new API ( http://www.daniweb.com/api/documentation ) You introduce a member's name and it should show you the total number of posts he has made. Demo is a proof of concept: No bug checking, error checking, etc is in this code. In …

Member Avatar for peter_budo
4
867
Member Avatar for DarkLightning7

Ive been working on pathfinding algorithms for a couple weeks now and A Star has me stumped. Right now i am attempting to Pathfind over a maze in a matrix of the form boolean map[x][y][5]; where index 0-3 are the walls on the cells starting on the right with 0, …

Member Avatar for DarkLightning7
0
265
Member Avatar for Varunkrishna

Is the following Code correct, for calculating Decimal to Triskaidecimal and Triskaidecimal to Decimal, I hope this code is not right import java.util.Scanner; public class converter { /* 1) Decimal To Triskaidecimal 2) Triskaidecimal To Decimal 3)Exit. */ public static void main(String ar[]) { int a, b; String s; System.out.println("Please …

Member Avatar for bguild
0
218
Member Avatar for Violet_82

Hi all, I have just finished with my tict-tac-toe program, and I thought I'd post it here if anybody fancy giving me any feedback. Also, I have a problem with printing the board, probably due to my lack of knowledge in using `printf` as opposed to `println`. Anyway this is …

Member Avatar for Violet_82
0
233
Member Avatar for somjit{}

the following is taken from joshua bloch's effective java. pg 82: public class InstrumentedHashSet<E> extends HashSet<E> { // The number of attempted element insertions private int addCount = 0; public InstrumentedHashSet() { } public InstrumentedHashSet(int initCap, float loadFactor) { super(initCap, loadFactor); } @Override public boolean add(E e) { addCount++; return …

Member Avatar for somjit{}
0
171
Member Avatar for ankit.pandey3

Hi friends, Can any one tell me the java program that how to convert Octa Decimal to HexaDecimal without using inbuild functions. I tried a lot but not successful. Please Please Please post the program... Thanks in advance..

Member Avatar for bguild
0
277
Member Avatar for Stuugie

Hi All, I am attempting to execute a dtsx package using Java and I have the following line Process executionProcess = Runtime.getRuntime().exec("dtexec/f\"C:\\Projects\\EconAnalysisConferenceBoard\\EconAnalysisConferenceBoard\\EconAnalysisConferenceBoard\\ConferenceBoardETL.dtsx\""); I keep getting an error saying the file cannot be found but if I run the dtexec in command prompt with the exact same paths and file name …

Member Avatar for Stuugie
0
667
Member Avatar for greyfox32

I am working on a program which takes a text file as input and stores each word in a hash table along with a count of how many times the word occurs in the text. It seems to work fine until I attempt a file with more than 18 words, …

Member Avatar for bguild
0
256