Alright I made some change to the testprintqueue :
import java.io.*;
import java.util.*;
import java.lang.*;
public class testPrintQueue
{
public static QueueClass mainQueue
...
Type: Posts; User: mael331
Alright I made some change to the testprintqueue :
import java.io.*;
import java.util.*;
import java.lang.*;
public class testPrintQueue
{
public static QueueClass mainQueue
...
the error is from this line
that's why i have a system.out.println(); to see it the parsing is actually working , now i am trying to pass each variables into the setPrintjobInfo method
type is...
I have attached the folder where i have everything stored and thanks again for helping me
Sorry lol
import java.io.*;
import java.util.*;
import java.lang.*;
Here is the test file
public class testPrintQueue
{
public static QueueClass mainQueue
= new QueueClass();
public static QueueClass addQueuePriority
=...
What variables is the input in? A is suppose to be a string , both B and c are integers
What does "load" mean? I mean I want to pass each variables
What are the definitions of the variables:
...
Hey guys ,
I am working on a print queue read from a file but I can only read the input file and parse it, I don't know how to load the elements from the input to the queue.
The file input...
I don't really want to use the scanner class because I have no idea how I can implement it to display the items and prices also I want the prices to be double how can I convert the prices from String...
Thanks for your reply , i am trying to read the items and prices from the input file into the program so I can calculate the subtotal then the total price .
Hello ,
I have this fun assignment not for a grade i have to do , I am suppose to read the offering and prices of a restaurant menu from a file like this one
Blueberry Muffins $0.85...
The MyDivisionByZeroException I created
public class MyDivisionByZeroException extends Exception {
public MyDivisionByZeroException(String strMessage)
{
super (strMessage);...
I got it figured out :
I created a class called MydivisionException; and
if (divisor == 0) throw new MyDivisionException("Why did u just divide by 0 Try Again ");
Thanks for your help
What my response to the division or to your post ?
Just tried this still not working :
if (divisor == 0) throw new java.lang.ArithmeticException("Why did u just divide by 0 Try Again ");
Thanks for your response
I do not get a error message as a response I get "infinity" but I want to be able to write my own response instead of the default one
Hello everybody ,
I was messing around with java and when I tried to divide a double(decimal) number by 0 ; it was giving me a Infinity response ; does anyone know how to override that infinity...
yes to all three of your questions but since i am beginner i taught it will beneficial for me to have some people look at what i did
Hello everybody , I did an assignment for my java class and would like to have some input ; I have to create a program using a two dimensional array and average the high and the low numbers separatly...
Hello,
I would like to know how to format an output to 2 number after the comma , with this code
MinutesTF.setText("" + Minutes);
I taught It was going to be something like ...
ILan can you please tell me how I can do that
Hello ,
I am having trouble with my code I am a beginner and I know I probably made a mistake somewhere but can't figure out where .
-I want to only have 7 letters to output but I can't figure out...
Thanks so much Sean4u your links helped me a whole lot this what I came up with :
System.out.printf ("("+x +","+ y+") is on the third line");
Hello,
I am a beginner in java and I want to output a line as follow :
"your number is (x,y) and is on the third line "
x and y are the user input and if I put a number for example 1 as x...
Can a mod please delete this thread I got my answer .
Thanks