- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
6 Posted Topics
I seen something rather interesting about a month ago about cross compiling open source software that can take a java class file decompile it and then recompiling it in a foreign language specifically Objective C which is the language that iphone runs on. Found it [URL="http://www.xmlvm.org/overview/"]http://www.xmlvm.org/overview/[/URL] there's also a vid …
I believe it's because you never initialise your array. Try replacing lines 26 - 28 in your hearts class with this: [CODE=JAVA] deck[i] = new Card("d", i); [/CODE]
What you could do is take your input one letter at a time. Compare it in a loop to you alphabet. When a letter matches you increment your alphabet index by 13 and append that letter to your output variable. Be careful of index out of bounds exceptions which can …
You could use a java.text.DecimalFormat object to help format your integer into a string with 3 decimal places. [CODE=JAVA] java.text.DecimalFormat threePlaces = new java.text.DecimalFormat("000"); strNN = threePlaces.Format(n) + threePlaces.Format(n); [/CODE]
On lines 19 what you want to do is (seconds%3600)/60. On line 21 you want (seconds%3600)%60. Int or float it doesn't matter because integer devision rounds down.
I am making a calendar planner applet. When the user clicks on a date it displays a menu of the different activities that can be performed. Then when the user makes their decision for the activity the calendar is displayed again this time with an updated icon for that date. …
The End.
armsracer