Member Avatar
Hi, I'm currently working on a GUI programme that caluculates the amount of days in a month through user input. However I've become stuck where the programme crashes upon entering the month number. I believe that I may have incorrectly chosen my instance variables but I am unsure of which …
by Gl753 in Software Development ()
Member Avatar
hello i just get started with java so i have a question where the difference from c/c++ and the famous lovely java begin, the function or better method, so in c/c++ we can make a function prototype on top the main and then define it later like this ... i …
by chrisschristou in Software Development ()
Member Avatar
Hi I want to change my carrier from Php to Java. I have 2 years of experience in php web development like wordpress, joomla tools. There after I changed company there on my company request, I learnt java on my own by seeing tutorials. They assigned me spring project I …
by Narmada_1 in Software Development ()
Member Avatar
... what ia trying to do is read csv file( contains (product Id and units) and put them in arraylist of objects, then sort the arraylist in ascending order, then I have to look for duplicate product id and add the units to same single product id so their will …
by Ravi_23 in Software Development ()
Member Avatar
Let assume that ‘k’ is an integer that indicate and reveals exactly the length of subset that sum to 0. Thus length of subset to pick is determined by ‘k’. If I would like to pick only ‘k’ distinct set of integers from any given set of integers in polynomial …
by claptus in Computer Science ()
Member Avatar
Consider a single producer and 10 consumers as threads. The consumers has to subscribe (Ad themselves) to the producer in-order to get any messages that produces sends. The expected functionality is that, the producer should add a message to a data structure/collection (you choose of your choice) every 2 minutes …
by Sandeep_16 in Software Development ()
Member Avatar
I'm trying to figure out why my removeProduct method won't actually remove the product from the list please give me some feedback. ...
by jjones0150 -3 in Software Development ()
Member Avatar
Hello everyobody, I'm trying to do a presentation of MD5 algorithm in my class. I would like to give an example of md5 hash in every programming language. I found a useful website like ... a with examples in all other languages, but i still want to present Java too …
by Linda_6 in Programming ()
Member Avatar
Hello guys, I am Toni Hacker, i browsed through this forum and I saw you guys really talk more about programming. i wanna make an operating system but i need a team. please its gonna be an open project. I need your advice and help. anybody care to help
by Cyberglobe in Software Development ()
Member Avatar
I got the program to run, but the output is not the way it should be and I don't know where I went wrong. The output is supposed to look like this: Sample Input 6 8 7 3 8 3 8 Sample Output - @ @ @ - - - …
by Zac_3 in Software Development ()
Member Avatar
HI guys, a while ago I built an application to save strings to file ... and I was wondering, what if I wanted to have the ability to search those strings, say I can choose a search key, like "bring" and search all the strings (and when I say strings …
by Violet_82 35 in Software Development ()
Member Avatar
Hello there! I've got the following assignment: Write a method in Java called FirstDNAMatch(shortDNA, longDNA) that receives 2 strings with the letters that have to do with the four main nucleobases found in the nucleic acids DNA (A for Adenosine, G for Guanine, C for Cytosine and T for Thymine). …
by Belfina in Software Development ()
Member Avatar
Hi,i want to use this ClassParser to parse another file(class) in another package , in my code i used ClassParser to parse only existing file (class) in existing package ,,,how can i use it to parse any file and from any package ,if i can't use it ,is there any …
by Mar. Na. in Programming ()
Member Avatar
Why can't I use || or && with double as in sample below? ... .......................................... etc
by Centorpe in Mobile Development ()
Member Avatar
Hi all, I'm currently developing an Android application with Android Studio that allows visitors to enter information such as their name, company and reason for visiting our work premises and have this information stored in a SQL database. The app would have to allow for the printing of this information …
by C Newbie in Mobile Development ()
Member Avatar
Design a java program that generates 100 random numbers, and keeps a count of how many of those random numbers are even and how many are odd. This is what I have and it is not suppose to be an array just simple coding with a boolean. ...
by jaspinall37 in Software Development ()
Member Avatar
I'm looking for an algorithm, pseudocode or any langauge, to generate random numbers with the following characteristics: integer values in the range 0-n lower values much more likely to happen than higher values, eg prob of 0 is n/(n(n-1)), prob of n is 1/(n(n-1)) - linear relationship between value and …
by JamesCherrill 2,589 in Programming ()
Member Avatar
I keep getting this error: " Exception in thread "main" java.lang.ClassCastException: java.util.Collections$EmptySet cannot be cast to java.util.List at JayJuan.InventoryManager.getProductList(InventoryManager.java:15) at JayJuan.InventoryManager.addProduct(InventoryManager.java:48) at JayJuan.InventoryApp.main(InventoryApp.java:35) C:\Users\JonesJ58\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1 " Based off this error and the code I provided please help me figure out how to get this program to run correctly. …
by jjones0150 -3 in Programming ()
Member Avatar
I have the code for my InventoryManager class, my Product class, and my InventoryApp class . Based off this code, I need someone help me correctly call the methods I already have in place. There is a section where the method is supposed to be called and I have made …
by jjones0150 -3 in Computer Science ()
Member Avatar
Hi all, Thanks for viewing this thread. I would like to do a remote debugging of WAR file that contain one Java servlet. Anyone tried that before? I tried to use cmd with the following command: java -Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=y -classpath "TestingServlet.war" MyServletName Not sure if the command above is correct, …
by strRusty_gal 14 in Software Development ()
Member Avatar
I am trying to write an elevator test program in java. It is suppose to execute the following steps using the methods in the class: 1: Starting from the first-floor. 2: Go to 2nd (update bool GoingUp) 3: Go to 3rd 4: Back to second floor This is what I …
by eny321 in Software Development ()
Member Avatar
I'm really having a hard time understanding this stuff and all the examples I find online just aren't starting from a place that makes sense to me. I missed my lab last week and the prof suggested those of us who missed it should go through the lab anyway because …
by dyingatmidnight in Computer Science ()
Member Avatar
Hi, how can I get inherited classes in java api , after parsing class .. For example: Public class h extends C ..... and C extends B and B extends A.....andso on... How can I get these inheritance classes (A, B, C), I parsing class h using api parser: JavaClass …
by Ma. Na. in Programming ()
Member Avatar
First let me confess that I'm a beginner with little knowledge of Java. I'm facing a problem with XML to JSON conversion. The XML that I need to covert is complex with elements that will repeat throughout the document. And the order in which the elements appear need to be …
by newprogrammer14 in Programming ()
Member Avatar
Hello guys am totally new to java development but I red some tutorial on web on how to create different application on Android Studio. I've created simple webview application with navigation drawer and everything work perfect, when I tried to add Parse.com SDK to use notification service my program crashes …
by OsaMasw 13 in Mobile Development ()
Member Avatar
HI EVERYONE!!In applets how to take coordinates as input given by user.Also we dont know number of coordinates user enters .In simple,how to take several points as input and present them on a graph as output??
by Kakumani in Software Development ()
Member Avatar
hi, I am having a problem with adding button on jTable for each data I get from the database. here is what I get from database in SQLite ... I am not understanding how to make the button code?
by altjen in Software Development ()
Member Avatar
Hi All, I want to generate report in a document format and the same should be converted in to pdf using JAVA. Can you please any one suggest me some libraries for the same. Thanks in advance Regards, Anand
by anand01 in Software Development ()