News


32 Votes Vote

Problems with GWT's Window.Location.reload()

Posted by External 23 hours ago General
http://www.daniweb.com — Hello everyone, I'm not sure whether this post belongs here. The thing is that I want to do a Page reload from my java code running on the server. After pressing a button, I wish for the page to do an automatic reload. So, inside the class file, I have ... Read More
Discuss Bury
Tags: problems gwts windowlocationreload All
31 Votes Vote

Doubt in String

Posted by External 23 hours ago General
http://www.daniweb.com — Hi, I have got a doubt In String. String objects are Immutable and StringBulider/StringBuffer objects are mutable. Almost we can do all the String functionality in StringBulider. Then why we need to use String instead of String builder/StringBuffer. Is there any specific reason available for using String? kindly clarify my ... Read More
Discuss Bury
Tags: doubt string All
30 Votes Vote

Hashset duplicate value

Posted by External 23 hours ago General
http://www.daniweb.com — hi all, As of my understanding hash set will not allow duplicates. But when I add two different object of same class with same value it is accepting, at the same time same object with different values are not accepting.Kindly clarify me Senario-1 TestBean testBean = new TestBean(); testBean.setId(1); testBean.setId(100); ... Read More
Discuss Bury
Tags: hashset duplicate value All
42 Votes Vote

Need help printing out my arrays separately

Posted by External 23 hours ago General
http://www.daniweb.com — I need to print out the titles for family members being stored in an array, but I am having issues with the report. It prints out all the stored names, instead of the ones that belong to each family member and one line for each. I'm new with arrays so, ... Read More
Discuss Bury
Tags: need printing arrays separately All
28 Votes Vote

Offsetting Bytes

Posted by External 23 hours ago General
http://www.daniweb.com — Alright, so I have seen `` in a few different Java Programs and I have an idea of what they do, but I have no idea what you would use them for. I haven't ran into a problem where I need to use them, so if someone could ... Read More
Discuss Bury
Tags: offsetting bytes All
42 Votes Vote

JavaFX FXMLLoader Invalid Property When Running

Posted by External 23 hours ago General
http://www.daniweb.com — The "Invalid Property" Error is thrown at Line 20, which is for the TextField. No idea as to why it is being thrown. Read More
Discuss Bury
Tags: javafx fxmlloader invalid property running All
26 Votes Vote

A telephone directory tester in Java

Posted by External 2 days ago General
http://www.daniweb.com — So I've made a bit of the directory and I want to make a tester that tests the methods that I've declared. The code for the directory is shown below. package TelephoneDirectory; public class TelephoneDirectory { String name; String telnumber; /** * * @param name a person's name * @param ... Read More
Discuss Bury
Tags: a telephone directory tester java All
34 Votes Vote

Dots and Boxes

Posted by External 2 days ago General
http://www.daniweb.com — Hi there, Im currently designing a Dots and Boxes Game and ive run into a snag,where my Minimax Algorithm will go 4-1 against the AI but not make the next move to win.Any help with this would be great package players; import interfaces.GameState; import java.util.List; import data.Line; public class MiniMax ... Read More
Discuss Bury
Tags: dots boxes All