-
Replied To a Post in Theater GUI
and if you are still stuck... **<spoiler alert>** you declare 4 text fields in your main class. you declare 4 more with the same names as local variables in the … -
Replied To a Post in Theater GUI
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException A null pointer means an unititialised variable (or a return value from a method that returns null) > at Chapter12.TheaterGUI$buttonListener.actionPerformed(TheaterGUI.java:84) You have the original … -
Replied To a Post in AI in Tic Tac Toe
> There's no excuse today for <etc>. Unlearning is harder than learning. That ***is*** the excuse why teachers continue to use outdated materials -
Replied To a Post in AI in Tic Tac Toe
Harish 1. Your code is unreadable - a solid mess of undocumented stuff strung end-to-end without any thought towards making it comprehensible. It even has gotos! It's useless. 2. Can … -
Replied To a Post in C++ Random Numbers
Ty_1 1. Do not hijack old topics for your new question. Start you own new topic. 2. If you do not post your code then nobody can tell you what … -
Replied To a Post in Why can't I get all of my student records to print out using the methods?
Line 49 you fail to initialise `i` (which is also used in many other methods) so your loop may or may not execute any number of times. Insert prints "true" … -
Replied To a Post in need help ASAP
> NEED THE CODE FOR THIS: That's not what you need. Try again. I can post you an honors degree certificate if thats what you think the world owes you. -
Replied To a Post in Google JavaScript code syntax highlighter
Well, the people who wrote it know how. They even documented it on the web. You even posted a link to that very page as part of your question! What … -
Replied To a Post in Java Array Random Integer
> Between or inclusive? The header docs seem clear on this. Dietrich: You have code there, so what is your question exactly? ps: HINT: You should check the API doc … -
Replied To a Post in java jframe interface is not showing when run
> when i run it this is the error i get You missed out the error message itself. All we see is the location where it happened - which is … -
Replied To a Post in Order matters with if else if statement
I don't disagree, but it's a while since I've had a decent techy chat, so I'll keep going.... :) IMHO it's essential to understand how the language is defined when … -
Replied To a Post in Order matters with if else if statement
> What if your compiler thinks you mean ... > Why it matters is that your compiler may do that test first as it is low cost. I hate to … -
Replied To a Post in Java String Array
It looks like the spec is badly written Although the method is called "printAll Nums" the spec does NOT say print the numbers, it says return a string (that could … -
Replied To a Post in Crystal report error on client system
Sorry, my thing is Java. I have never used Crystal Reports. But there are other people here with more relevant experience. -
Replied To a Post in Lucky Nine in Java
That is a very vague and general question. Please ask something more specific so people can answer -
Replied To a Post in print data in columns
Pietiläinen Just a guess... Is it possible that you are using a one byte character set where the a-umlaut is a 2-byte extended code? (easy to check - just replace … -
Replied To a Post in Crystal report error on client system
Hi zebnoon Sorry, but it does look like there's nobody around at the moment who can help you. People do have very full and busy schedules, but with any luck … -
Replied To a Post in AcedCast5 what is This??
http://bfy.tw/F8Mq (Second hit) -
Replied To a Post in Need code
Need code <copy of teacher's spec>? No. You first need to learn to be polite and ask sensible questions. You obviously ignored the "[Read This Before Posting A Question](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question)" topic … -
Replied To a Post in Histogram program help
Yes - as above. In fact all your loops and if/else blocks need brackets. The code inside your loop line 15 will be executed for the "end of input" value … -
Gave Reputation to Imran_22 in single login page for Admin and user
hi, plz help me. i create single login form. i want to login in this form (user and admin) both in one form. how to register admin and user. and … -
Replied To a Post in single login page for Admin and user
> tell me how i insert data in to data base, how to select the data in the database There are many many tutorials on the web that cover this … -
Replied To a Post in java jframe interface is not showing when run
`new StudentHomePage().setVisible(true); ` You want that to run when the user hits enter in the logon screen? So it should be in the actionPerformed for the Logon OK button (and … -
Edited session not setting corectly
this is the code that works if (isset($_POST['add_to_cart'])) { if (isset($_POST['select_size']) && isset($_POST['select_color']) && isset($_POST['select_quantity'])) { $size = $_POST['select_size']; $color = $_POST['select_color']; $quantity = $_POST['select_quantity']; if (isset($_GET['lang'])) { $the_lang = … -
Replied To a Post in Complex Username and Password System
DaniWeb Member Rules (which you agreed to when you signed up) include: "Do provide evidence of having done some work yourself if posting questions from school or work assignments" https://www.daniweb.com/welcome/rules … -
Replied To a Post in java jframe interface is not showing when run
That class has no `main` method! (Which may be good thing, since if you did try to create a new Login then that constructor calls initComponents - which schedules another … -
Replied To a Post in java jframe interface is not showing when run
I can't see any obvious problems with the various bits and pieces that you have posted, but without the whole code I can't test it here. Maybe you can reduce … -
Replied To a Post in java jframe interface is not showing when run
You haven't shown us your initComponents, so nobody has any idea what may be in it. `setVisible` does what it is supposed to. The question is what did you have … -
Replied To a Post in java jframe interface is not showing when run
What about `initComponents`? You need to have at least one control in the JFrame to get something worth seeing (unless you are using absolute sizing...) ps: You are probably getting … -
Replied To a Post in java jframe interface is not showing when run
Where is your `main` method? The code lines 9 etc should be in `main` if you want them executed! -
Replied To a Post in how to break number into digits in java?
Yes, we can help. Show what you have done so far and explain what you need to progress further. -
Replied To a Post in Hello
Welcome to DanWeb! What particular subjects interest you the most? -
Replied To a Post in code for testing of independece of association of attributes by chi square
If you just want a program to test chi squared then you wil find many versions via a trivial web search. If you want to learn how to program it … -
Replied To a Post in how to work algorithm of question and answer in c++
Hi abdisa I can see that your English is not very good, but that is OK. We will try to understand. You must give us more details because we do … -
Edited Java Car Constructors
Alright so I have a tester for this class and it keeps saying this message: "Now testing your drive method: *** A car with mileage of 700 miles driving 400 … -
Replied To a Post in Creating an array of different data types
> Not in Java ??? `Object[][[]` is a multi-dimensional array that holds anything. Because every object extends `Object`, and primitives are auto boxed/unboxed into the corresponding objects as required, then … -
Replied To a Post in Car
A couple of notes re the above: The discussion of divide by zero seems to be looking at the wrong variable. It's not the miles that are the problem, its … -
Gave Reputation to rproffitt in How can implement my perfect hashed algorithm?
@Deamanjoe. I took a stab at your assignment googling the your top question. Now while that finds the assignment completed on a few sites, that's going to not get you … -
Replied To a Post in Substring [Updated]
A good example of why reading the API doc is never a waste of time! The behaviour of `indexOf` for index >= length is defined in the API JavaDoc (it … -
Edited Substring Counter
HI, so my code compiles but does not give the result I intended. Any help is greatly appreciated! public class SubstringCounter { public static int substringCounter(String master, String substring) { … -
Replied To a Post in Substring Counter
OP has started a [new thread](https://www.daniweb.com/programming/software-development/threads/510312/substring-updated) to continue this (why?), so I'm locking this one to avoid confusion. JC -
Replied To a Post in Substring Counter
Look again at line 10. Did you really intend to set `pos` back to 1 , 2, 3 etc? Or were you hoping to set it just after the last … -
Replied To a Post in How can implement my perfect hashed algorithm?
Crossposted [here](https://www.sitepoint.com/community/t/how-can-implement-a-perfect-hashed-data-structure-using-the-four-basic-operations/279640/2) -
Replied To a Post in jquery or javascript "Uncaught SyntaxError: Unexpected token <"
Actually, looking at it now, it doesn't look un-matched to me anyway. "senior moment"? Which < is it complaining about - line 1 or 6? -
Replied To a Post in jquery or javascript "Uncaught SyntaxError: Unexpected token <"
You have an unmatched ) on line 5 -
Replied To a Post in How can implement my perfect hashed algorithm?
There's no point posting code that is so far from valid Java - nobody can test it and hardly anyone will understand what it supposed to be. At your stage … -
Replied To a Post in Microsoft Edge
> ---> here you go You missed the point. How to restore a backup on an absolete version of Windows is irrelevant. The reference I wanted was to justify "Indeed … -
Replied To a Post in Microsoft Edge
Adam_40 Please supply a link or reference for this. Until then nobody will be naive enough to spend hours restoring backups on just your say-so. -
Replied To a Post in facebook fans page
Adam That's hardly surprising when you revive a year-old thread. And be careful when referring to other people's posts as "random garbage". You have been warned. JC (Moderator) -
Replied To a Post in compute a weight and height BMI
Please note our member rules, including > Do provide evidence of having done some work yourself if posting questions from school or work assignments
The End.