Member Avatar
I am trying to assign a method to a varibale called from a constructor, but it returns null when I am calling it. ... When i try to print out "aa varibale" it gives me null value, but when I just do System.out.println(a.getTotalPromotion); the value isnt null. Is there any …
by Bartosz in Programming ()
Member Avatar
The following is a similar program I had when having trouble: ... The problem is, when using certain numbers as the sentinel (in the above it's 1.2), the sentinel would not work, i.e. it would always wait for the next input, even though it's supposed to end. There was no …
by sgw in Programming ()
Member Avatar
Given Problem: A professor at Hardtack University has an unusual method of grading. The students may or may not all take the same number of tests. The individual tests are weighted, and these weights are used to compute the student's average. Important: the weights for all of the tests for …
by PyGuy123456789 in Software Development ()
Member Avatar
Yes I did read these two posts. ... ... My case is a bit different because I'm using ... . This is what I have tried: ...
by COKEDUDE 13 in Software Development ()
Member Avatar
Hi, I'm trying to .push several urls to a global variable inside a function of a javascript and casperjs script. The global variable does not seem to be filled with the data. ... So, I'm trying to push product urls to the ... global variable and it seems to be …
by luislupe in Programming ()
Member Avatar
xml output: ... how to fetch the xml output from url and store the credits i.e. 39660 into php variable. the above xml output is coming from following url ... check-balance.php code: ... hope some one will resolve this issue. thanks in advance
by blueguy777 in Web Development ()
Member Avatar
Hi all, I have a multi-dimensional array. Using a for function, I would like to display the information inside the array. This means using a variable $i for the first index of the array, which I think is causing the problem. I am getting the error message: ... Note, that …
by James_43 15 in Web Development ()
Member Avatar
So I have 2 files: M.java, and construct.java. In construct .java, I have 5 instance variables, and made a constructor to initialize the variables. I have also created an getters, adn setters for each instance variable. In Main. java, I created an array: construct[] c= {new construct(int1, string1, string2, string3, …
by Lgie in Programming ()
Member Avatar
Why my $last_id variable is null always ? i am using this scirpt for ajax..but i tried to excute without my ajax page,it works fine and the output give me ... when i want to check my $last_id variable that was null, ...
by phoenix254 in Web Development ()
Member Avatar
Hi, I was learning operator overloading and I noticed a very strange thing. I could access the private variable of another object by using the object reference and the . operator. Both the objects belong to the same class and I can alter the value of a private variable of …
by anumash in Software Development ()
Member Avatar
i have an array of usernames and if a specific name is entered then code should say i know you concatenated with input name...this part is working fine...the problem is in ... this line of code is giving the error of undefined variable i'm not getting it i tried to …
by vampzzz in Web Development ()
Member Avatar
Hi, from the result in my "for" loop, have stored four value. How to extract that value to show the value(sprintf) ? Kindly refer to the attached the image file. Thanks Regrads, nazif
by naz1234 in Software Development ()
Member Avatar
I am trying to integrate elFinder and TinyMCE using the advanced method found here: ... When I click the image icon in TinyMCE, elFinder will appear in a popup window, and when I double click on a file in elFinder, it should include it in the editor. However, the following …
by joshmac in Web Development ()
Member Avatar
I have a JSON decoded array in php with foreach that includes a select option in a form every time I select an option from this drop down it returns the last value in the list. The option is just the selector not the value I'm trying to save. I'm …
by cambraydesign in Web Development ()
Member Avatar
May sound all too easy for some, but I'm just getting started on android development and I can't find out why I got an error when everything is exactly as it is in the tutorial. Weird but I'm confused so I thought I'd post to see if someone can help …
by valestrom 17 in Mobile Development ()
Member Avatar
Hi, having a bit of a head-scratcher time here. I have a FOR loop that searches through a Directory for images, collects the EXIF DateTimeOriginal information form each image and then is supposed to output this collected data inside an HTML TABLE. I know that the FOR loop does exactly …
by Cap'nKirk 10 in Software Development ()
Member Avatar
I'm totally new to php. I'm trying to echo the value of an input field into a an array but it doesn't seem to work.e.g echo the value of hidden-input as the value for origin in the array. How can I achieve this. ...
by Chibueze_1 in Web Development ()
Member Avatar
tl;dr: Looking for a java library to solve equations. Suggestions welcome. I'm looking to write an app for the sake of writing an app. I figured that, as a firmware guy with minimal EE hardware training, a good practice app would be one that acts as a helper for EE …
by DeanMSands3 57 in Software Development ()
Member Avatar
You have to create two classes. The first class “Employee” which included: The private variables: first name last name id number (Format: A#####) Wage hoursWorked The hoursWorked variable holds how many total hours the person worked. When the hoursWorked is over 40 hours, it will be considered as over time. …
by Daniel_45 in Software Development ()
Member Avatar
Hey guys, I need some help with my code, I have a trouble with checking on two different strings as I want to check if the string in the variable ... are equal to ... and ... are equal to ... . When I try it, it will show nothing …
by mark103 in Web Development ()
Member Avatar
Hi Guys, As part of an online store, I have a dropdown box where the user selects a size. If the user selects size L then the 'add to cart' button needs to link to a page different than if the user selected size M. I figured out that I …
by James_43 15 in Web Development ()
Member Avatar
ok The Maya used trinary variables two fluctuating and one solid for zero. Their base20 number system, very similar to Morse code where zero is completeness or a space in Morse. ... Maybe the compiler can convert the base10 scientific to or, if you care to learn the peasant enabled …
by Rene_2 in Hardware and Software ()
Member Avatar
Create a class called RoomInfo: Need to have the following private variables for class: length (double) width (double) hasTV (bool) houseSize(static double) Need to have following functions for class: Constructors Properties for each variables calcRoomSize: this function calculate the room size and update the house size. Create a class called …
by Daniel_45 in Software Development ()
Member Avatar
Hello, i have a problem with a variable i use to call a statement. The statement its ok, returns data from database as wanted, i checked it on phpmyadmin. I think that the problem is on the variable. Here is the code ... the statements i use they are ok …
by SimonIoa 39 in Web Development ()
Member Avatar
Hello. I want to make a simple login page using MVC4, where both users and admins can log in. The users should be allowed to see their own details, edit their details. The administrators should be able to list all the users, show a specific users details, edit those details …
by Shari_1 in Web Development ()
Member Avatar
Hi guys, I am working on my PHP script as I want to add the value in the variable to add it to 5 hours forward. When I use this: ... It will show this as the output: ... I want to add the hours in the variable of ... …
by mark103 in Web Development ()
Member Avatar
I'm doing a multi-line string saved to the variable str: ... When I ... it works fine. But if I print a different multiline string: ` ... Can someone help.
by Slass33 in Software Development ()
Member Avatar
Hi There, I'm checking if I can get all the occurrences of a variable in a php file. What will the best and easest method be? Any help is greatly appreciated. Regards
by LRNPHP in Web Development ()
Member Avatar
Declare a class (i.e., a type) called CArea and an object (i.e., a variable) of this class called obj. This class contains four members: two data members of type int (member x and member y) with private access and two member functions with public access: set_values() and area(). Calculate the …
by rakib.tanbir in Software Development ()