32,204 Topics

Member Avatar for
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
239
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
157
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
484
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
841
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
241
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
600
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
120
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
109
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
427
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
138
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
168
Member Avatar for Gerock7

import javax.swing.JOptionPane; public class StudentReport { String name; //name of the student String schoolName; //name of the school String schoolGrade; //grade in school int numOfGrades; //number of grades or number of classes double grades; //grades received double average; //average of the grades double total=0; //initialize total String trash; //to convert …

Member Avatar for stultuske
0
271
Member Avatar for Ballistixz

hello, i am in need of some help with a bit of code i been working on. i am getting "illegal start of expression" and "reached end of file while parsing" errors and its been bugging me for awhile as i am not sure why. can anyone help me to …

Member Avatar for vergil1983
0
244
Member Avatar for Pyler

I'm implementing a generi method that's supposed to traverse a binary tree in PostOrder but when I attempt to use it, the Iterator doesn't work as It should when I attempt to use ot on a Binary Tree, can anyone spot my mistake in the code? Thanks. The method makes …

Member Avatar for iamthwee
0
216
Member Avatar for Aman_5

import javax.media.*; import java.io.*; public class MP3Player { public static void main(String[] args) throws Exception { File file = new File("xyz.mp3"); MediaLocator mrl = new MediaLocator(file.toURL()); Player player = Manager.createPlayer(mrl); player.start(); } } }`` when i execute above program, it shows error : Failed to configure: com.sun.media.PlaybackEngine@ce124a7 Bad header in …

Member Avatar for JamesCherrill
0
355
Member Avatar for romdan94

How would I write this program: Wrte a program that will read a line of text that ends witha period, which serves as a sentinal value. Display all the letters that occur in the text, one per line and in alphabetical order, along with the number of times each letter …

Member Avatar for JamesCherrill
0
273
Member Avatar for syasya

Please help me I cant answers these questions at all . Question b Suppose a class named FootballClub is to be definêd. i. Suggest THREE (3) data members for the class' ii. suggest TWO methods other than accessors and mutators for the class' iii. code the class in Java based …

Member Avatar for syasya
0
133
Member Avatar for andi-dev

public class NumFormat { public static void main (String [] args ){ int quarter = 2; int dollars = 3; double total = dollars + quarter * 0.25; final double TAX_RATE = 8.5; double tax = total * TAX_RATE ; NumberFormat formatter = NumberFormat.getNumberInstance (); formatter.setMaximumFractionDigits (2); System.out.println ("Totali:$" + …

Member Avatar for Doogledude123
0
129
Member Avatar for Halkawt.Papula
Member Avatar for asaidi

Hi i m trying to make a combobox that user can choose a value from a table this value then it is saved i have the code really i m stucked on combobox.. import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; //The API for …

Member Avatar for asaidi
0
2K
Member Avatar for thomas_18

How do i get make the correctLabel to have all the text disappear so there is NO "correct" and the "buttonclicked values". I have been tryin but i can only manage to get the "correct" to dissapear the button clicked values are not removed correctLabel.setText("Correct: " ); // this sets …

Member Avatar for thomas_18
0
210
Member Avatar for duncan55

Im trying to add odd numbers recursively from n to m but its not working . im sure its in the recursive logic on how im passing the arguments or something. public static int OddSum(int low, int up,int total) { if(low==up) { return up; }else { low+=2; return total += …

Member Avatar for jwenting
0
207
Member Avatar for brittney_2

I am just learning how to call arrays through methods and I know how to do it when they are integers, however, my teacher did not go through too much on what to do with Strings. I figured they weren't much different, overall same concept, however I keep getting an …

Member Avatar for stultuske
0
12K
Member Avatar for new_2_java

Hello everyone, I am writing a Java program to reset LDAP account password. I know the password should be quoted passwrod and then encoded in UTF-16. I have a question, if someone can confirm please. I am getting encoded password as follow: String oldPassword = "Password1234"; String newPassword = "Password9999"; …

Member Avatar for new_2_java
0
1K
Member Avatar for asaidi

Hi just starting learning java jdbc .. i have this error: Type mismatch: cannot convert from int to Object **tempRow = new Object[]{rows.getInt(1), rows.getString(2), rows.getString(3), rows.getDouble(4), rows.getString(5), rows.getInt(6), rows.getDouble(7),rows.getString(8)}; **

Member Avatar for jwenting
0
269
Member Avatar for Anto_1
Member Avatar for Anto_1
0
237

The End.