35,618 Topics
![]() | |
hiya i stuck on this can anyone help please Result1 = (Val1*Val2)/Val3; Result2 = (Val1+Val2)-Val3; write a sperate method to print the result of the above calculation and then write a main app class to create an operator object set it up with some test data to calculate the values … | |
I REALLY need help. ThIs program works - except I have one fatal error that I can't seem to figure out how to fix. The players can play where other players have already played. I tried to use the switch statement at the bottom in method checkMove where if result … | |
Please explain all these four pages- Open the images in paint. Only then will you be able to view it. Thanks in advance. | |
I display the progress bar for downloading attachments and it works fine … but when I am downloading some attachments I get the exception message: [QUOTE] Exception in thread "main" com.sun.mail.util.DecodingException: BASE64Decoder: Error in encoded stream: needed 4 valid base64 characters but only got 1 before EOF, the 10 most … | |
How can i update my Jpanel with the labels from another class in certain intervals? | |
I want to delete the strings file1 and file2 after its merged to a single pdf merge12. Please suggest your valuable ideas.. Thanks in advance package com; import java.io.FileOutputStream; import java.util.ArrayList; import com.itextpdf.text.Document; import com.itextpdf.text.pdf.PdfCopy; import com.itextpdf.text.pdf.PdfImportedPage; import com.itextpdf.text.pdf.PdfReader; /* * author * @282532 */ public class PdfMerger { public … | |
hello! i have been using Struts 2 for 2 weeks and i want to know if my login design is acceptable or not. here's my code: [CODE] <s:if test="status != null"> status property is NOT null <s:if test="status == 'incorrect'"> <div>Incorrect username/password</div></s:if> <s:if test="status == 'incomplete'"> <div>Incomplete details</div></s:if> </s:if> [/CODE] … | |
I want to ask a question When i say i am deploying application on the cloud its means that my application is basically on the my computer and API's provide basiclly provide server requests to my computer? Is application uploaded to the server? or still on my computer? Can anyone … | |
Hello all! I'm having some confusions about what to use as the "Home Page" in my web app. Should I use Servlet?([url]www.foo.com/index[/url]) or JSP?([url]www.foo.com/index.jsp[/url]) I dont know what would be their entry point in my site. I mean, let say, they visit [url]www.foo.com/index.jsp[/url], and they click login, the page then … | |
I am preparing to make a project "Accessing SANS through application on the cloud" the objective of the project is deploy a SAN in our company and allow users to upload and use data through application stored at Google App Engine. Is this achieveable? if yes then how could application … | |
So having a function code in JSP, example is this one: [CODE] function isitinstalled() { try { var myObj = new activity1(plugin.activity); if (myObj) { return "activity123"; } } catch(e) { if (navigator.plugins[plugin.namename]) { return "me"; } else { return false; } } return false; }[/CODE] How do I translate … | |
Hey everyone! I am trying to writing a program that will play hangman. I have an understanding, on paper, of how to write the program... but I just cant fully convert it into java. I have started the program but I've gotten to a point where I'm stumped. Any help … | |
Okay so this is another question printing patterns but this time using input! I have to prompt the user and read an odd number from the input. I can only use System.out.print('*'); System.out.print(' '); and System.out.println(); I need to maximize my use of repetition and minimize the number of output … | |
When I export the program to a executive Jar, file.txt does not import. The file.txt is in my src folder. Everything works file when i run the program in eclipse but when i export it, it does not import. HELP, I am new to Java and everything. | |
ok, I'm pretty embarrassed to be posting such a simple question, I feel like I've done this in much harder applications like a million times... [CODE]String[] wordVar = text.split("$");[/CODE] Why does the above code not split the String 'text' at each occurrence of a "$"? Is the "$" a special … | |
I'm writing an assignment for my introduction to programming class and we're supposed to implement the following interface: [CODE] public Interface Account{ //Calculates interest (1%) and adds to the account balance public void interest(); //Calculates the balance after a deposit public void payIn(double money); //Calculates the balance after a charge … | |
Hey guys been working on a java Program. I am having a problem with my percent rounding up to 7% instead displaying 6.5% any ideas here is my Program. [CODE]import javax.swing.JOptionPane; import java.math.*; import java.text.NumberFormat; public class Week_three_number_eleven { public static void main(String[] args) { String Investment = JOptionPane.showInputDialog(null,"Please enter … | |
Write an application that computes the cost of a telephone call. The inputs are the time the call was placed (this should be written as a 24-hour time, e.g., 2149 for a call placed a 9:49p.m.), the duration of the call in minutes, and the distance in miles of the … | |
Hello! I'm doing my first homework assignment with abstract classes and interfaces. I have a few questions: (1) I know that a class must be saved on the computer as, for example, Class.java. Is this the same for abstract classes? How are interfaces supposed to be saved? Do they need … | |
Hello Everyone I have an Internal frame in my application which has a JTable populated with values from a database and a JButton which performs some operation when a row is selected from the JTable.When the user does not select a row from the JTable and clicks the JButton, I … | |
Is there a method to check if a JButton has an Icon? becouse I've been searching all over google and i cant seem to find anything | |
Hey guys, I'm currently creating an Employee style GUI program in Java, and I have a .txt file with several Employee details (int, string, string, string, int, double), right now I want to implement a way to display all objects within a JComboBox at the very bottom of my program. … | |
Why is netbeans doing this?! I added an image to my login screen, but now when i want to add a new one (i just chose a crytec logo to show) then it doestn display it!? It still displays the old one!? Whyy?? (image Attached) | |
The goal of the project is to calc based on age and gender there rental rates for cars. but something is going terribly wrong T-T. I am receiving the following errors in homework for java class. ----jGRASP exec: javac -g RentalRate.java RentalRate.java:112: error: illegal start of expression public static String … | |
My project scope is on android forensic. 1. After extracting all the information from an android phone, the information is saved to an excel file. Currently, I'm trying to transfer all the data saved in the excel file to MySQL database in Java. 2. After which, implement a feature that … | |
Hello, I have a small issue. I am encrypting the data in J2ME using DES. When I send the data to the server, the encrypted text which has special characters is changed into "?" (question mark) and because of this the decryption doesnt work, it gives bad padding exception. How … | |
Dear all, Context: JSP I'm trying to get the value of a java variable and assign it to a javascript variable in order to later on use it in an iframe: [CODE] ... rs.next(); entry1 = rs.getString(3);%> <SCRIPT> [COLOR="Red"] var tt="<%=entry1%>";[/COLOR] [COLOR="red"] var content = "<html><body>" + tt+ "</body></html>";[/COLOR] var … | |
I'm working on a homework my OOP class and I just can't figure out this last part. The assignment calls for us to write five different classes with parent class StaffMember. I'm pretty sure I've that at the subclassess (Volunteer, HourlyEmployee and FullTimeEmployee) correct so I'm not going to post … | |
Hi co-programmers, We're currently doing a simple conversion of a jsp to java format. I think we we're able to somehow force our way for a java program to hold our jsp program, but unfortunately we are having a slight problem. We're getting this exception: Exception in thread "main" javax.script.ScriptException: … | |
![]() | I have problem with selecting text, In this code it only selects one and finds one, hot to make it to find more? [CODE]public void actionPerformed(ActionEvent e) { if(e.getActionCommand().equals("ResetAll")) { area.setText(""); search.setText(""); found.setText("0"); } else if(e.getActionCommand().equals("Exit")) { JOptionPane.showMessageDialog(frame, "Good-Bye","218 HW #5", JOptionPane.INFORMATION_MESSAGE); System.exit(0); } else if(e.getActionCommand().equals("Clear")) { area.setText(""); } else … ![]() |
The End.