35,618 Topics

Member Avatar for
Member Avatar for sasikrishnasamy

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 …

Member Avatar for jwenting
0
122
Member Avatar for anand01

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); …

Member Avatar for JamesCherrill
0
234
Member Avatar for kamalvedha

In Jsp page, on selecting a table name, I need to display all columns associated with the table in a drpdownlist with checkboxes.can anyone plz provide code for that?.

Member Avatar for pritaeas
0
97
Member Avatar for napninjanx
Member Avatar for kamalvedha

How to load database table names dynamically in a jsp page?.

0
98
Member Avatar for metalfurby

Hi there, I am taking a html/java script class and I am completely lost. Can anyone help? Here is what my assignment is: Create an HTML file with Javascript to do the following Have text boxes for the user to enter 2 numbers Have a button so that when clicked …

Member Avatar for JorgeM
-1
139
Member Avatar for alonso.jasl

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 …

0
113
Member Avatar for gxs100

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 …

Member Avatar for iamthwee
0
2K
Member Avatar for LegendX

I need help with this problem, if someone can help me with this it would be appreciated. Part 1: Write a program that uses a while loop to loop 5 times. Each time it should prompt the user to input an integer and should add it onto a sum. After …

Member Avatar for JamesCherrill
0
144
Member Avatar for romdan94

I know I asked this before, so I appologize but I just need to write this program for an extra credit assignment and frankly I don't know a thing about arrays and don't have time to learn since I have another final coming up so if anyone could be so …

Member Avatar for JamesCherrill
0
255
Member Avatar for brittney_2

I need to create a 2D array that holds the number of family members by the highest numbe of titles of one of the family members, and they input on one line. However, I am having trouble when I call the class in my other code in the main method. …

Member Avatar for brittney_2
0
317
Member Avatar for nhiap6
Member Avatar for maurice.tracey.7

hi thier i was wondering if you guys could hep me when i press equall it calculates but when i press equall again it adds the first number added, for example if i was to enter 3 + 2 = 5 if i press enter again it equalls to 8 …

0
184
Member Avatar for gxs100

Hi there im trying to create a Minimax player in AI for dots and boxes Following this algorithm Max-Value(state) returns a utility value if Terminal-Test(state) then return Utility(state) v ← MinimalGameValue for s in Successors(state) do v ← Max(v, MinValue(s)) return v Min-Value(state) returns a utility value if Terminal-Test(state) then …

Member Avatar for gxs100
0
241
Member Avatar for ScottShip

Hi, I have follen behind on my inventory program. If I send what I have, can someone please help me finish it? I am on part 4 but part 3 is not finished as I am lost.

Member Avatar for stultuske
0
159
Member Avatar for nhrnjic6

Ok, I hope this is the right place for his kind of disccusion. I assume that this kind of question is rather apsurd but I may get killed for this. I have had expirience with both java and c++ but non in field of system programming. I am finishing my …

Member Avatar for deceptikon
0
505
Member Avatar for Manu_5

i had created a java application that has netbean frame work , but now am not able to run its exe file on other computeer then mine , its showing main class not fine error . can anyone help me in creating manifest file for the same

Member Avatar for jwenting
0
845
Member Avatar for cosweet
Member Avatar for nutandevjoshi

I am working on PHP Framework now.I am 23 old . I will have 2 years of experience by 2016.And Company Bond will be over ,and i will be able to leave the company. I worked on cakePHP,Wordpress,WHMCS,Smarty etc.and will work on other PHP Technologies by 2016. I want to …

Member Avatar for jwenting
0
242
Member Avatar for syasya

Hi guys , please look here . Consider code segment String a=new String("SMS Message"); String b=new String("SMS Message"); if(a==b) System.out.println("they are equal"); i) why it does not generate an output ? ii) how can we rewrite the program such that it will print the output ?

Member Avatar for jwenting
-1
603
Member Avatar for SagarSe7en

Hello Everyone, I am trying to achieve pagination using jsp javascript and servlets. Here is my code below: SearchUserViews.java `package TestPackage; /** * * @author Sagar */ private String _userid; private String _firstName; private String _lastName; private String _emailAddress; public userProfile(){ _userid = ""; _firstName = ""; _lastName = ""; …

Member Avatar for stultuske
0
3K
Member Avatar for michelle.trinsky

I'm trying to create a sorted linked list without using Collections. I don't want to use Collections since I'd like to learn how to work with Linked List manually. I'm getting NullPointer exception when I'm comparing strings and comparison <0. Any suggestions and help are appreciated. This is the part …

Member Avatar for stultuske
0
1K
Member Avatar for otengkwaku

Hi guys i am using sax to extract data from an xml file but i can't seem to discover how to extract <![CDATA[%s]]> from the xml below is the xml and the java code //java codepublic class XmlParser { public XmlParser(String xml) { try { SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser …

Member Avatar for iamthwee
0
2K
Member Avatar for Lewin Villar

Hello guys, I created two database in derby: DB1 with one table Customers and its columns id,name,last And DB2 with one table Purchases anf its colums CustID, total I would like to makes queries from data in both of these database. I tried SELECT C.name, C.last, U.Total FROM DB1.Customers C …

Member Avatar for iamthwee
0
121
Member Avatar for syasya

consider the following code segment String a="hello"; String b= "hello"; if (a==b) System.out.println("they are equal"); i ) Why does it not generate output? ii)How can we rewrite the program such that it will print the output?

Member Avatar for hannahaddad
-2
112
Member Avatar for mohanned_1
Member Avatar for syasya
Member Avatar for vincecamha

"a menu must be provided that asks the user of the software what task they would like to perform; it then activates the required task. The menu should loop until the user requests to exit"- that is the requirement. And i haven't learn about switch-case. So how can i create …

Member Avatar for vincecamha
0
454
Member Avatar for syasya

Hi guys , I dont have idea on how to solve this problem . I attach my question but I dont know whether it is true or not. Can you please help me Given an output file named "data.txt" write the code fragment to i ) set up the file …

Member Avatar for stultuske
0
140
Member Avatar for vergil1983

Hi and good day to all, Just a curious question, when I am comparing a String object with blank space(" "), I type x.equals(" ") in my Netbeans IDE(x is a String type variable), but Netbeans automatically shows it's an error and change it to " ".equals(x) instead. Anyone here …

Member Avatar for vergil1983
0
170

The End.