35,618 Topics

Member Avatar for
Member Avatar for furqanishaq

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 …

Member Avatar for DavidKroukamp
0
116
Member Avatar for macdunk11

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 …

Member Avatar for hiddepolen
0
595
Member Avatar for jackbauer24

Please explain all these four pages- Open the images in paint. Only then will you be able to view it. Thanks in advance.

Member Avatar for JamesCherrill
0
172
Member Avatar for R_K

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 …

0
174
Member Avatar for 47pirates

How can i update my Jpanel with the labels from another class in certain intervals?

Member Avatar for 47pirates
0
277
Member Avatar for arathy nair

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 …

Member Avatar for arathy nair
0
442
Member Avatar for autorunman22

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] …

0
61
Member Avatar for araib

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 …

Member Avatar for JamesCherrill
0
108
Member Avatar for autorunman22

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 …

Member Avatar for autorunman22
0
273
Member Avatar for araib

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 …

0
91
Member Avatar for kris-kz

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 …

Member Avatar for kris-kz
0
121
Member Avatar for techgeek420

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 …

Member Avatar for NormR1
0
199
Member Avatar for letters1417

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 …

Member Avatar for DavidKroukamp
0
517
Member Avatar for bsabowala

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.

Member Avatar for DavidKroukamp
0
394
Member Avatar for FALL3N

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 …

Member Avatar for FALL3N
0
169
Member Avatar for ThaiAmL

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 …

Member Avatar for ThaiAmL
0
203
Member Avatar for Thermalnuke

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 …

Member Avatar for stultuske
0
128
Member Avatar for deathmagnetix

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 …

Member Avatar for deathmagnetix
0
1K
Member Avatar for ThaiAmL

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 …

Member Avatar for ThaiAmL
0
193
Member Avatar for kalz

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 …

Member Avatar for kalz
0
457
Member Avatar for scheppy

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

Member Avatar for DavidKroukamp
0
325
Member Avatar for Vampiricx3

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. …

Member Avatar for Philippe.Lahaie
0
3K
Member Avatar for Mr.BunyRabit

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)

Member Avatar for Mr.BunyRabit
0
143
Member Avatar for Joeeb22

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 …

Member Avatar for stultuske
0
489
Member Avatar for androidf

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 …

Member Avatar for peter_budo
0
565
Member Avatar for abhijeet P

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 …

Member Avatar for abhijeet P
0
101
Member Avatar for softDeveloper

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 …

0
104
Member Avatar for sp85202

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 …

Member Avatar for sp85202
0
329
Member Avatar for kris-kz

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: …

Member Avatar for kris-kz
0
202
Member Avatar for mehnihma

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 …

Member Avatar for mehnihma
0
127

The End.