Larry71's Profile
Reputation: 3
Apprentice
- Group:
- Members
- Active Posts:
- 39 (0.11 per day)
- Joined:
- 05-June 12
- Profile Views:
- 263
- Last Active:
Apr 05 2013 10:22 PM- Currently:
- Offline
Previous Fields
- Country:
- GR
- OS Preference:
- Who Cares
- Favorite Browser:
- FireFox
- Favorite Processor:
- AMD
- Favorite Gaming Platform:
- Who Cares
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: Help with Algorithms Pseudocode and Loops
Posted 18 Feb 2013
Just do the opposite of a multiplication.
If n=i*i*i...*i j times,then just just do n/i,save the result,then result/i etc.
At sometime,result/i will return 1.That means j is an integer.
Then you have a pair (since i is already an integer)
Also think of the exceptions.What if n/i or result/i is not an integer?
I think that piece of information is enough to start writing your pseudocode. -
In Topic: Stuck in a method
Posted 17 Jan 2013
CasiOo, on 17 January 2013 - 09:53 AM, said:A List has a couple of methods that make it easy to make a Deck class
You do not need to use the List class though
Why is it so important for you to remove the Card after it has been drawn? The Deck class could just keep track of which cards has been drawn and that way make sure they are not drawn again
You could use the stack structure in your Deck class. I think this is a good school example teaching how to use a stack
/>
When you search for stack implementation, you will notice that it can be made with both a List and an array
I could have an int index that keeps watching the Deck,right?
I've never used a stack,I will try to do it so.
Thanks again. -
In Topic: Stuck in a method
Posted 17 Jan 2013
At the moment I am using an Array.Is that possible?
I mean to delete the drawn cards?
Or should I use an ArrayList?
Thanks for the suggestions. -
In Topic: Stuck in a method
Posted 17 Jan 2013
Thanks a lot,done! -
In Topic: Changing Icon of a JLabel
Posted 14 Jan 2013
g00se, on 13 January 2013 - 04:08 AM, said:Quote
ImageIcon icon = new ImageIcon("C:\\Dice_2.jpg");
That location is normally out of bounds to some extent. Test it thus
File f = new File("C:/Dice_2.jpg"); System.out.println("Does the file exist? " + f.exists() + " Can i read the image file? " + f.canRead());
Clearly my fault.
I found out that it did not exist and then that I gave "C:\... instead of C:/...
Question: Where should I put the file,that I can call the file just by typing "File.jpg" ?
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
Contact Information
- E-mail:
- Click here to e-mail me
Friends
Larry71 hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
Larry71 has no profile comments yet. Why not say hello?