Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~8K People Reached
PC Specs
I know basic Java and very basic C
Favorite Forums
Member Avatar for Dexxta27

I am just learning Java and am trying to use variables from objects that I passed into another method. Can someone help me here [CODE] package data; public class Data { private int day, month, year; public Data(int day, int month, int year) { this.day = day; this.month = month; …

Member Avatar for Dexxta27
0
169
Member Avatar for yancouto

Hey guys, I'm working on a game, and I was trying to mirror the gif images inside the program so I wouldn't have to do it manually (And also so it wouldn't use twice as much space to store the mirrored gifs). Anyway, I Google'd it and found [URL="http://stackoverflow.com/questions/1708011/create-a-imageicon-that-is-the-mirror-of-another-one/1708909#1708909"]this answer[/URL], …

Member Avatar for Ezzaral
0
521
Member Avatar for JJHT7439

I have a quick question that I'm hoping someone can help me with on here. I have 2 2d int arrays that I create for a board state and a solution that look something like this: int[][] P1 = new int[][]{{0,2,0,0,0,0},{0,0,3,0,0,0},{5,0,0,0,0,0} etc. ect. They're 6x6 arrays and I need a …

Member Avatar for JJHT7439
0
128
Member Avatar for yancouto

EDIT: My problem was solved. :) But I have a doubt, what is the most effective way to wait for something to happen in java? for example, if I want to wait for a boolean b to be true, does this below work? [CODE=java]while(!b) {} //stuff to do after wait …

Member Avatar for yancouto
0
126
Member Avatar for chinee

i have to create a soccer tournament like the world cup that starts off with 32 teams that goes down to 16 then quaters, semis and final i have to use sort stacks or queues or even linkedlist. there must also be arrays, classes. gui for bonus marks but i …

Member Avatar for chinee
0
2K
Member Avatar for lynnajoe

Hi, I have checked examples and tutorials but never seem to get a direct answer to a couple of questions. When using a Gui with a JButton (Netbeans)where does the code for the array go in order to be displayed? Here is the code for the array and I just …

Member Avatar for JamesCherrill
0
94
Member Avatar for 24x24

My assignment: develop a limited application to track the statistics of sports players. For each player, track first and last name, points scored, assists made, and penalty rate. Design and implement an object capable of recording this info. Implement this object as Player. Must allow user to enter new player …

Member Avatar for yancouto
0
210
Member Avatar for tracydo

Reviewed with answer from my quiz, I want to make sure that I understand it right? If not, what is yours? int x=1; int j; for(j=0; j<=2; j++) x=x*j; System.out.print(x); --------------------- answer is x=0 My understanding is since this for loop has no curly bracket, therefore, no loop after the …

Member Avatar for jokers6
0
116
Member Avatar for yancouto

I'm creating a silly game, and the first thing I want to make is to tell you "You Lose" if the all that you control with the mouse is not inside the frame. I created a JComponent and every 20 milliseconds it is repainted (A thread does that). Inside it, …

Member Avatar for hanvyj
0
1K
Member Avatar for thedalek

Hello, I've written a fairly simple program to print a string in a window...But my Java compiler (JGrasp) will not compile it. It says: JDemoGraphics.java:7: cannot find symbol symbol : method String(java.lang.String) location: class JDemoGraphics String companyName = String("Event Handlers Incorporated"); ^ I've checked my capitalization, run a debugging program, …

Member Avatar for yancouto
0
212
Member Avatar for neemo6

Wondering how one goes about testing which button was clicked in an actionperformed method. For example if I have 2 buttons named button1 and button2, and create an if statement what is the proper syntax, ive tried this but get errors. Where am i going wrong? [CODE] //declaring buttons Panel …

Member Avatar for neemo6
0
187
Member Avatar for lynnajoe

Hi, I am confused as to all the posts by newbies. If they are new (which I am) how do they know all this code they post? I have a question and it is very basic. All I want to do is to get one JButton to pull up an …

Member Avatar for yancouto
0
132
Member Avatar for Newskin01

Hello, I need to perform a binary search on an array of objects but to do so I need to have them sorted. I've been looking online and no one really has a good explanation of how to conduct a quick sort on an array of objects. If you can …

Member Avatar for jon.kiparsky
0
2K
Member Avatar for yancouto

Hi everyone, I'm trying to create a program that you can use to communicate to other people with the same program. It connects to a Server program that gets your message an send it to everyone. I found 2 problems that I haven't been able to solve. The first one …

Member Avatar for yancouto
0
768
Member Avatar for Aepexx

Here is Assignment07: [CODE]public class Assignment07 { public static void main(String []args) { Asn07Employees emps = new Asn07Employees(ids, hours, rate); Asn07Employees allEmps[] = new Asn07Employees[7]; int ids[] = {5658845, 4520125, 7895122, 8777541, 8451277, 1302850, 7580489 }; int hours[]={ 12, 15, 7, 16, -1, 20, 15 }; float rate[]={6.5f, 12.5f, 1.5f, …

Member Avatar for yancouto
0
124