Re:
I'm getting a error code : java:23: error: cannot find symbol monthlyPayment=(balance*(interest/12))/(1-(Math.pow(1/(1+(interest/12)),(numberOfYears*12)))); ^ symbol: method pow(double,int) location: class Math 1 error it's pointing at Math.pow, but I dont understand what else to do thank you for any help. [code] import java.util.*; public class Loan { public static void main(String[] args) … |
|
Re:
having a problem with executing this in jGRASP not acceptin user input [CODE]class salestax { public static void main (String[] args) { try { double price = Double.valueOf(args[0]).doubleValue(); double salestax = price * 0.0825; System.out.println("Sales tax is " + salestax); } catch (NumberFormatException e) { System.err.println("Usage: java salestax price" ); … |
|
Re:
hy im having a little problem with a loop with jgrasp here is my basic program [code] import javax.swing.JOptionPane; public class loops1 { public static void main (String[]args) { String name do { String name = JOptionPane.showInputDialog ("who is the cleverest person in the room?"); } while (name != "erin"); … |
|
Re:
hey there, I have the following code: [CODE]import java.awt.*; import javax.swing.*; public class TabelaEShahut extends JPanel{ public static void main(String[] args){ new TabelaEShahut(); } public TabelaEShahut(){ JFrame f = new JFrame(); f.setSize(500, 500); f.setVisible(true); f.setTitle("shah"); f.getContentPane().add(this); } public void paintComponent(Graphics g){ g.setColor(Color.white); g.fillRect(0, 0, 700, 700); g.setColor(Color.red); g.fillRect(50, 50, 400, … |
|
Re:
Hey there, I have the following code: [CODE]public void paintComponent(Graphics d){ int gjeresia_e_kornizes = 800; int lartesia_e_kornizes = 800; d.setColor(Color.white); d.fillRect(0, 0, gjeresia_e_kornizes, lartesia_e_kornizes); d.setColor(Color.red); d.fillOval(105, 70, 250, 350); try { Thread.sleep(2000); } catch (InterruptedException e) { } d.setColor(Color.blue); d.fillOval(150, 170, 50, 20); d.fillOval(270, 170, 50, 20); try { Thread.sleep(2000); … |
|
Re:
I am using jGrasp IDE and i'm having trouble with the compiler i keep getting this error ----jGRASP exec: g++-3 -g C:\Users\Joe\Documents\Downloads\testfile.cpp ----jGRASP wedge2 error: command "g++-3" not found. ---- This command must be in the current working directory ---- or on the current PATH to use this function. ---- … |
0 Reputation Points