32,204 Topics
| |
I need some help with an assignment. It's already done, however my teacher made specific comments thatneeds to be addressed before I can resubmit it. - I have the wrong implementation in insertFront() and removeRear() methods. - I am missing a wrap-around in my peek() methods. - I did not … | |
somebody help me with this please package py.com.sistemas_ventas.view; import java.beans.Beans; import java.util.ArrayList; import java.util.List; import javax.persistence.RollbackException; /** * * @author Mirtha */ public class DepartamentoView extends javax.swing.JFrame { /** Creates new form DepartamentoView */ public DepartamentoView() { initComponents(); if (!Beans.isDesignTime()) { entityManager.getTransaction().begin(); } } /** This method is called from … | |
Hey I just found this site because I have been working on a program to make answer and create questions to the game 24. (24 is a game where players are given 4 numbers and by either adding, subtracting, multiplying and Dividing the given numbers the number at the end … | |
how would I add text that the viewer could see and not just to the console as well as it not getting rid of the other text on the page? <!DOCTYPE html> <html> <head> <title>help me</title> </head> <body> <p>this is a line of text</p> <p>this is another line of text</p> … | |
Im using Java Threads to implement the Weka CrossValidation (10fold CV), but im having difficulty understanding where the averaging part takes place in the method EvaluateModel(), i need to make sure each thread have it's own copy of the error rate for each fold and then perform the averaging when … | |
Hi, I have 2 projects opened in eclipse,I have added one of them as a maven dependency to the other.When I enable workspace resolution I am getting an error:Missing artifact myprojectname:jar:1.0.0 and when i disable workspace resolution it is showing some member properties of the class related to the project … | |
Hi, Currently my PC is setup for .Net development using Visual Studio 2012. I'm starting to look at JAVA programming so I was wondering can the JDK and Netbeans/IntelliJ/Android Studio coexisit with my .Net Development environment? I do not want to install the JDK and the either if the IDE's … | |
Guys who know how to develop custom rom ? | |
Hello! I have to print patterns using '*' and I am at a loss how to get these patterns printed! I figured out the first one, * ** *** **** ***** ****** ******* ******** ********* ********** and now i have to do it upside down: ********** ********* ******** ******* ****** … | |
I know this is really messy code but I am writing a Paint app in Java for a class and I'm getting an ERROR when I drag the mouse. MousePressed works properly (prints). MouseDragged, however, throws a NullPointerException. Please let me know what the problem is here. I'll put a … | |
I have a series of activities the last of which holds results. I have 'Send to Printer' button which needs to send these results to a wireless printer. Can anyone give me an example of doing this? I''ve trawled the web but there seems to be very little on this … | |
hi i am practicing this program here and i am outputting zero. trying my best where is the error here is the code double fed_tax = 0, state_tax = 0, hrswrk, payrate=0, gross_salary = 0; double hrlyrate=0; System.out.println("hi please enter your first name"); String firstname = userinput.next(); System.out.println("hi please enter … | |
Hi ,all.. How can i read more than one java file but ,without repeating the section of bufferedreader in every time i read file!!....so if i have 20 file ...this way is unpractical?? for example: this code: public class buffer{ public static void main(String[]args) throws IOException { String filname1= "C:/filename/filename1"; … | |
Hi, i have been working on this program and will display the array contents to the user and ask how many positions he would like to shift off the right side of the array, and replace onto the left side. This is what is supposed to look like: Array contents: … | |
I am trying To display the content of the table selected(Imported from MySql) in a JTable whose Structure is unknown to me . I Have Successfully added columns in Jtable but not Able to add rows which the ResultSet Object Returns. Please Help me Insert The Row DATA . I … | |
I am working on a program that should convert between in, ft, mi, mm, cm, m, and km. The question is: Write a unit conversion program that asks users to identify the unit from which they want to convert and the unit to which they want to convert. Legal units … | |
the source of the line is provided below, i understand what v.compareTo(w) does but i am curious as to what influence the < 0 has, does it not allow it to return if compareTo returns 1 which is greater than 0? does it not return if anything if compareTo returns … | |
For this project I need to generate all three digit numbers where the 1st digit is always larger than the 2nd, and the 2nd digit is always larger than the third. I'm not asking you guys to do it for me but to point me in the right direction. I'm … | |
Hi all, how can I write lines that I read from multiple files to one destination file in java?? the method write (FileWriter) can do this When I read multiple files and save these line in string called for example "line" ..how can write line on the distination file? I … | |
We're asked to program pig Latin, all works fine except for the counting of occurrences of the string. public static void count(String [] wordperLine, String [] word){ String check=" "; int count=1; for(int i=0; i<=wordperLine.length; i++){ for(int x=0; x>word[i].length(); x++){ for(int z=0; z<=word.length; z++){ if(!word[x].equalsIgnoreCase(check)) { for(int y=0; y<=word[i].length(); y++){ … | |
I was working on the wrong assignment, so I hammered this out, it's almost due, and I am having trouble figuring out how to test my program. Eclipse keeps showing errors when trying to figure out how to populate my fields, assuming I have the rest of the program right. … | |
how to create text box dynamically at run time in java and access each textbox value to insert in database. | |
| how to create java application in visual studio |
This is what I have so far.....any advise? Output does not give only one largest and smallest number from a file and also there are multiple averages of numbers..... thank you in advance. | |
I have a small spout in Storm of 60 integers but when I run the maven project I got the result but also several messages "Error: Stream Closed" like the photo below. What should I do to fix these errors? my terminal: ![Screenshot_from_2016_03_07_19_57_50.png](/attachments/large/4/6e9b2e556e2d91d16d4a7c868c4b3ab3.png "align-center") also when I use a large … | |
Hello, I have an arrayList that I want to emit and receive it in another bolt. So as suggested on another post here I used: the first bolt: collector.emit(new Values(listI)); the next bolt: public void execute(Tuple tuple) { ArrayList<Integer> i = (ArrayList<Integer>)tuple.getValue(0); .... } but instead of a size 4 … | |
Hi all, In main program I read file using bufferedreader, and (try, catch), Now this section is repeated in my code , how can I call function to do that ? By passing filepath ..I try it but I don't get any line of file ... How can I get … | |
Hi, I am programming an app and facing a problem now. I want to Update my Database over the GUI from my App via PHP. My Problem is that the app always sends the value of the checkbox even if it is unchecked. I will post my Script below. update.php … | |
I have a list of objects that having becode as string(setter,getter),i want to set the ststus as "active" for all the becodes.below is my query.but its giving exceptions as "java.lang.ClassCastException: com.rogers.tpia.model.updatetpia cannot be cast to java.lang.String".pls help me u will get appriciated. public void activateUser(List<updatetpia> act){ Session session = sessionFactory.getCurrentSession(); … |
The End.