Printer icon displays “printer error” & won’t print. How can I fix this?

February 15th, 2011 at 08:25am Under Forum

Printer icon displays “printer error” & won’t print. How can I fix this?

Installed Dymo label printer. Printer icon shows but no connection. Does not print.

By Barcode Scanner 3 comments

ECU 128 error code on a freightliner 2008 Columbia?

February 15th, 2011 at 08:18am Under Forum

ECU 128 error code on a freightliner 2008 Columbia?

This error code came up when i was driving home. Its really cold up here like -12F. any help about what the code means??

By Barcode Scanner 1 comment

I am developping C# app and having a message “An error occured on the computer running IIS”?

February 15th, 2011 at 08:02am Under Forum

I am developping C# app and having a message “An error occured on the computer running IIS”?

I am using visual studio with sql server 2000 SP4, and Sql server Ce 2.0, developing with c# on Intermec 740 handheld device.
PS: No problem to reach IIS service by web browser on the mobile device.
Its all I have on the error message

By Barcode Scanner 1 comment

Is my error pokemon card rare?

November 26th, 2010 at 09:01pm Under Forum

Is my error pokemon card rare?

I have an E-reader card. It is a holographic Gardevoir with the Poke-Power Psybeam and the attack energy Burst. One thing is missing, however. Where the E-reader barcode normally is, there is just blank yellow space. This isn’t a big deal to me as I don’t have an E-reader, but I was wondering if my card is “rare” and is worth anything.

By Barcode Scanner 2 comments

Getting an error message in Bartender Label software saying maximum characters reached in dialog prompt box?

November 13th, 2010 at 07:55am Under Forum

Getting an error message in Bartender Label software saying maximum characters reached in dialog prompt box?

I work with Bartender and Access Database at work and I am receiving an error message saying the maximum characters reached when I try and print a part number. I have to usually go into Access Database and take off the last character to print it. I have tried everything. PLEASE HELP!

By Barcode Scanner 1 comment

My Zebra LP2844 thermal printer for labels is giving me a spooling error. How do I fix the issue?

November 13th, 2010 at 07:30am Under Forum

My Zebra LP2844 thermal printer for labels is giving me a spooling error. How do I fix the issue?

By Barcode Scanner 1 comment

compiling error help?

June 9th, 2009 at 08:51am Under Forum

compiling error help?
here is the program and it wont compile the starred out line is were the problem is and it gives the error message “cannot find symbol-Method toArray(double[])

import java.util.ArrayList;
import java.util.Scanner;

/**
* The StatsRule class allows the user to enter numbers (doubles) and then
* the program prints out the mean, max, min and range of those numbers. The
* user can enter as many numbers as they want to.
*
* For a four: the program also computes the mode.
* To have your name retired in the programming hall of fame: the program
* also computes the median value.
*
* This is a Mr. G original project
**/
public class StatsRule
{
public static void main(String [] args)
{
ArrayList bin = new ArrayList();
Scanner read = new Scanner(System.in);

double min, max, mean, mode, range, input, numone, numtwo, sum;
int count, size, countone;
boolean ismode = false;

System.out.println(“Please enter your desired data set then enter zero to calculate the statistics”);
input = read.nextDouble();

min = input;
max = input;
count = 0;

while(input != 0)
{
bin.add(input);
sum = sum + input;

if(input < min)
{
min = input;
}
if(input > max)
{
max = input;
}

System.out.println(“Please enter your desired data set then enter zero to calculate the statistics”);
input = read.nextDouble();

}
size = bin.size();
double[] cont = new double[size];
***bin.toArray(cont);

while(count < size)
{
numone = bin.get(count);
count ++;

while(countone < size)
{
count++;
numtwo = bin.get(countone);

if(numone == numtwo)
{
mode = numone;
ismode = true;
}
}
}

range = max - min;
mean = sum / bin.size();

System.out.println("The Max = " + max);
System.out.println("The Min = " + min);
System.out.println("The Range = " + range);
System.out.println("The Mean = " + mean);

if(ismode == true)
{
System.out.println("The mode = " + mode);
}
else
{
System.out.println("There is no mode");
}
}
}

Best answer:

Instead of:

bin.toArray(cont);

you want:

cont = bin.toArray();

But you will still have some type problems, toArray returns values of type Object[] but cont is of type double[]. Probably you should change the declared type of bin from ArrayList to ArrayList, then declare cont to be of type Double[], then cast the result of calling toArray to that type before assigning it to cont. At worst you could declare cont to be of type Object[], then you wouldn’t need the cast, but reading each value out of cont would have to be casted to Double.

A way around the casting problem, if you declared bin to be of type ArrayList, would be to just iterate over bin and copy each Double value out of bin and into cont in the loop, instead of using toArray.

By Barcode Scanner 1 comment

Can someone double check this java coding? I'm getting an error?

March 31st, 2009 at 07:48am Under Forum

Can someone double check this java coding? I’m getting an error?
i get the error: cannot find symbol – class Thermometer

import java.util.*;

public class TestProgThermometerTester
{
static Scanner console = new Scanner(System.in);

public static void main(String[] args)
{
Thermometer myThermometer = new Thermometer(35);
Thermometer yourThermometer =
new Thermometer();

int temperature;

System.out.println(“Line 10: myThermometer: ”
+ myThermometer);

System.out.println(“Line 11: yourThermometer: ”
+ yourThermometer);

yourThermometer.setCurrentTemperature(34);

System.out.println(“Line 13: After setting ”
+ “yourThermometer: ”
+ yourThermometer);

System.out.print(“Line 14: Enter the ”
+ “current temperature: “);

temperature = console.nextInt();
System.out.println();

myThermometer.setCurrentTemperature(temperature);

System.out.println(“Line 18: myThermometer: ”
+ myThermometer );

}//end main
}
If someone could tell me how to fix it too I would appreciate it. I’m taking a java class and pretty new to this.

Best answer:

you haven’t created a class named “Thermometer”, You have only created a main class called “TestProgThermometerTester”.

By Barcode Scanner Add comment

My PS3 is registered online, error code do I need the receipt?

March 21st, 2009 at 12:52pm Under Forum

My PS3 is registered online, error code do I need the receipt?
I bought this thing back in Feb 2008 (6 months ago at Target). I’m going to try to go to Target tomorrow and see if they can pick up anything on the barcode. They said they would try but it’s not garaunteed because their system for receipt reprint onluy goes back 90days. I tried to call Sony today but the CSR wasn’t really helpful. I explained the situation like 3times but I guess he wasn’t listening. He told me I would have to pay 149.00 if I didn’t have the receipt. I then asked him if I can register it. He said not without the receipt, I tried anyways. So I went online and 3minutes I was able to register it today. I had the registration serial number on the box and it was easy. But since I bought it on Feb 08 and registered it today, would I still need a receipt just incase Target can’t pull one up for me you think? I would call Sony again but their closed now. From the experience would be great but from others it’s fine and thanks ahead of time.

Best answer:

You still need the receipt. They will also honor a credit or debit card statement. If you paid cash you could be screwed. I just sent mine back and had to use the credit card statement. They said that was fine and they accepted it yesterday.

By Barcode Scanner Add comment

Java error- Help needed!?

February 29th, 2008 at 01:24am Under Forum

Java error- Help needed!?
Im working on a program and am getting the following error message of: “can not find symbol variable i”.

Here is my code:

import java.util.Scanner;

class jets24
{
public static void main (String[]args)
{
Scanner input= new Scanner (System.in);

//variables//

int TotalLuxurySeats = 4 ;
int TotalExecutiveSeats = 6 ;
int Option = 0 ;
int LuxurySeatsSold=0;
int ExectutiveSeatsSold=0;
String[] CustomerName= new String [10];

// seat objectives within the array//

for(int i=0; i<10; i++)
{
if (i<4)
CustomerName[i]=new String ("Luxury");
else
CustomerName[i]=new String ("Exectutive");
}
while(Option!=4 || LuxurySeatsSold>0 || ExectutiveSeatsSold>0)
{
System.out.println(” Hello and welcome to CCNJet! “);

System.out.println(” “);

System.out.println(” Please select an option from the following menu “);
System.out.println(” “);
System.out.println(” 1. Book a luxury seat “);
System.out.println(” 2. Book an exectutive seat “);
System.out.println(” 3. Display seat details/availability “);
System.out.println(” 4. Exit “);
Option=input.nextInt();

if ((Option==1) && (LuxurySeatsSold<4))
{
System.out.println(" Please enter your name ");
CustomerName[LuxurySeatsSold]=input.next();
System.out.println(" ");
System.out.println(" Thank you for your luxury seat order " + CustomerName[LuxurySeatsSold] + " You have seat number " + (LuxurySeatsSold + 1));
LuxurySeatsSold++;
LuxurySeatsSold=TotalLuxurySeats -1;
}
if ((Option==2) && ExectutiveSeatsSold<4)
{
System.out.println(" Please enter your name ");
CustomerName[ExectutiveSeatsSold]=input.next();
System.out.println(" ");
System.out.println(" Thank you for your exectutive seat order " + CustomerName[ExectutiveSeatsSold] + " You have seat number " + (ExectutiveSeatsSold+ 1));
ExectutiveSeatsSold++;
ExectutiveSeatsSold=TotalExecutiveSeats -1;
}
if (Option==3)
{
System.out.println(" Here is a report of available/unavailable seats on the aircraft ");
System.out.println("");

System.out.println(" Luxury seats ");
while (CustomerName[i]!=null) // can not find symobol variable i//
for (int i=0;j<4;i++)
{
if(customerName[i]==null) break;
System.out.println("Seat Number: " + i + "Name: " + customerName[i]);

}
System.out.println("Executive Seats");
while(CustomerName[k]!=null)
for( k=4;l<10;k++)
{
if(customerName[k]==null) break;

System.out.println("Seat Number : " + k + "Name: " + customerName[i]); }

}
}
if (Option==4)
{
System.out.println("=============");
System.out.println(" Good bye,thanks for looking!");
System.out.println("=========");

}
}
}

Can anyone see the problem?

Thanks,

Ben

Best answer:

There is a problem with this section:
while(CustomerName[k]!=null)
for( k=4;l<10;k++) <--- what is 'l', k might increase infinitely and make outofbound error
{if(customerName[k]==null) break;
System.out.println("Seat Number : " + k + "Name: " + customerName[i]); } <-- here is your error, 'i' is out of scope
}

By Barcode Scanner 1 comment

Previous Posts


Forum