Over 1 million tech questions and answers.

Printer off line?

Q: Printer off line?

This printer is an HP networked printer - was printing just fine, then one da;y I went to print and the printer says "printer off line" Any ideas how to fix this?

Read other answers
RELEVANCY SCORE 200
Preferred Solution: Printer off line?

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

RELEVANCY SCORE 53.6

Hi,
I was printing some music and had to change my settings.
After cancelling the printer, I tried to print with new settings,
But the printer won't print because it says Off-line.
I've tried right clicking the printer icon to put it On-line,
But it continues to say off-line.
How can i get it back on-line and printing again?
chuck.
 

A:Solved: Printer Reads Off-line, Won't go on-line.

Turn the printer off, then back on. Restart the computer.
 

Read other 2 answers
RELEVANCY SCORE 51.2

My HP Ece  solutions online will not work so I can print what can I do on this window 10 for a printer I am in need of one bad Microsoft did not tell us we would loose our printer when they started the over haul I wouod appreciate it very much if I
could get some help

[email protected] Hotmail.com

Read other answers
RELEVANCY SCORE 50.4

MY LAPTOP SAYS PRINTER OFF LINE AND AD THE SAME TIME PRINTER IS READY- ONLY ONE PRINTER INSTALLED

Read other answers
RELEVANCY SCORE 46.4

Host computer LPT port faulty on motherboard. repairer disabled in BIOS. Put a card in ISA slot and printer plugged into it. Works fine from host computer but appears off line from client PC. Internet and file sharing working ok on both PC's.
 

A:Printer not on line

you've also specifically set the printer as shared?

from the Windows Help

To share your printer

Click Start, point to Settings, and then click Printers.
Click the printer you want to share.
On the File menu, click Properties.
Click the Sharing tab, and then click Shared As.

Notes

If the Sharing tab is not visible, you need to enable file and print sharing services. For more information, click Related Topics.
You can only share a printer that is connected to your computer.
For information about limiting access to the printer you have shared, click Related Topics.
 

Read other 1 answers
RELEVANCY SCORE 46.4

After getting a virus, I had to restore my system (window me) and re-install the software. I installed my Lexmark Z52 color inkjet printer using their disk and when I try to print a message either says "cannot communicate with printer" or "off line". I updated everything I could think of in my control panel, the port is LPT1. Hopefully, it's something easy that I just don't know about. Please help. thank you
 

A:printer off line

Hi and welcome. Does LPT1 appear in the device manager without any exclamation marks? You've double checked the connections to the printer, correct? And the printer is turned on BEFORE you restart the computer?
 

Read other 1 answers
RELEVANCY SCORE 46.4

Please advise me.
Since recent W10 upgrade, my lap-top cant print to Epson XP415. Printer window shows document in print-list but OFF-LINE.
Husband has identical lap-top with good connection to that printer via the house router. Can we set it so my laptop talks directly to the printer? Can I add my tablet as well?

Thank you.
 

A:Printer Off-Line

The printer appears to have W8 drivers but not W10
However, I would download and re-install the driver
https://www.epson.co.uk/products/printers/inkjet-printers/consumer/expression-home-xp-415#drivers

if the printer is connected to the router - you should be able to add a network printer and see the Epsom listed
it supports google print and airprint
whats the make and model of the Tablet
if Apple, and the printer is already on the router - then it should see the printer
 

Read other 1 answers
RELEVANCY SCORE 46.4

I have a printer that is off line and cannot figure out why. I have rebooted the printer, the computer, checked all connections and I have no more ideas......Help!!!!
 

A:Printer - Off Line

A listing of Printer make and model, operating system, computer make and model would help with diagnosing.
 

Read other 2 answers
RELEVANCY SCORE 46.4

I cant get my printer to print from the computer, You told me a few minutes ago how to check and put on line, but I didn't copy it down, can you re-tell me where to look to see and put ; it on line
thanks
 

Read other answers
RELEVANCY SCORE 46

Hi ....my HP Photosmart CA 4780 won't print anymore! It's wireless and supposed to work with my Apple Mac Book Pro.....for the last 3 weeks - no print!

Jeanie
 

Read other answers
RELEVANCY SCORE 46

I have a HP Deskjet D4360. Prints off in very small font. Does not fill up page. Lot of left and right margin available. Is there a way to set line width or tell it to print in larger font?
 

A:Printer Line Width

HP Deskjet D4360 Printer Support

You might want to add and save this site in your browser favorites/bookmarks list so you can readily refer to it when needed.

The "Solve a problem" and "How to" sections should be helpful to you.

----------------------------------------------------------
 

Read other 2 answers
RELEVANCY SCORE 46

i was printing perfectly, and suddenly it begins to print every other line, only leaving a smudge of ink on the missing line... what happened???.... i unpluged everything, i filled it with more ink....what if i delete it?...then re-install.......i need my printer to print alot alot.......i have a lexmark 7000 colorfine series, windows 98....thanks
 

A:Printer only prints every other line...

Read other 7 answers
RELEVANCY SCORE 45.2

I have a HP notebook, running with windows 7, with a wireless connection to my HP photosmart C4700
printer. Message on my pc sayes printer is off line. And, the printer itself looks as if it is turned off because the screen that displays the funtion is black. I have tried unplugging the printer and plugging it back in, and doubled checked the power plug. I am a beginner/illiterate, so please respond in very general terms! Thanks
 

A:Solved: printer off line & looks as if it's turned off

Poster has informed us that this issued has been solved with the Geek Squad.
 

Read other 1 answers
RELEVANCY SCORE 45.2

My printer prints one line at the top of each page, and it's all gibberish (hieroglyphic type stuff).

Any ideas?
 

A:printer prints one line on each page, keeps going

I have a faint recollection of that happening when the paper selection was wrong one time. In any case, check the settings in the printer program.
 

Read other 1 answers
RELEVANCY SCORE 45.2

Has anyone had a problem with HP printer not printing the entire last line on first page of multipage documents. I have Vista and an HP C5180 all in one. I also use the HP with another computer that has Windows XP and don't have the problem.

Read other answers
RELEVANCY SCORE 45.2

I can't get my printer to work in Windows 7 virtual machine using Parallel's 5 for Mac. It works from the Mac side, but not the windows. What do I need to do to get it to work? It's an HP Photosmart 3310 All-in-one Printer.
 

Read other answers
RELEVANCY SCORE 45.2

How to print from the command line to USB printer?
 

A:How to print from the command line to USB printer?

What OS are you using?

I'll assume XP and move it to that forum...

buck
 

Read other 1 answers
RELEVANCY SCORE 45.2

If a printer is set up on a network with its own IP, is it possible for the administrator to receive notification when the printer comes online, and if so, how is that notification setup? WS 2000

Thanks
 

A:Notification to Administrator when printer comes on line

Most printers that are network capable use SNMP for notifications and such. This is all Dependant on the make and model of the printer and if it supports that kind of thing. So... I have no idea if yours will, maybe if you supplied a make and model...
 

Read other 2 answers
RELEVANCY SCORE 45.2

im testing it on windows 2000 & 2003 pls help me
 

A:How to print from the command line to a USB printer?

type print and the location of the file to be printed (ex. c:\>print help.txt) help.txt is located in drive c:
 

Read other 3 answers
RELEVANCY SCORE 45.2

I have just installed a new wireless router (D-Link DIR 655) in my home, replacing a Linksys unit. I have a desktop and a laptop that run Windows Vista, and a 5 year old Apple PowerBook G4. My printer is a wireless Brother MFC-255. Since installing the new router, the two computers that run Vista, show the printer status "off line", and will not print. I have uninstalled, then reinstalled the printer software, but the status still shows off line. My Apple laptop will still print however. I'm not the most computer savvy person in the world, so any help would be appreciated, before I have a computer bonfire in my back yard.

A:Printer off line after installing new router

Originally Posted by BBJPLT


I have just installed a new wireless router (D-Link DIR 655) in my home, replacing a Linksys unit. I have a desktop and a laptop that run Windows Vista, and a 5 year old Apple PowerBook G4. My printer is a wireless Brother MFC-255. Since installing the new router, the two computers that run Vista, show the printer status "off line", and will not print. I have uninstalled, then reinstalled the printer software, but the status still shows off line. My Apple laptop will still print however. I'm not the most computer savvy person in the world, so any help would be appreciated, before I have a computer bonfire in my back yard.



have you connected the printer to the wireless network(search for SSID and enter wep key)? might help if access is the issue

Read other 2 answers
RELEVANCY SCORE 45.2

i have a quantex pc windows 95 and a epson 600 printer. it worked fine forever all of a sudden the printer will not print at all it reads that the problem is that it is "off line" . ive deleted the printer , reinstalled, trouble shot on epson tech support until i almost had a nervous breakdown. NOTHING IS WORKING! what could be my problem here? it's been 4 days of fustration and homework panic. i am not that good in the computer world but i can follow instructions if anyone has any. thanksand hope your having a better day than me.
 

A:[SOLVED] printer won't go back on-line

Read other 10 answers
RELEVANCY SCORE 45.2

Is there a dos command to use a printer online? Every time I turn my computer on my network printer is offline, and I have to manually put it online before I print, so I wanted to write a quick batch file to run a startup to put it online. Thanks.

A:Use Printer Online From Command Line

Did you find a resolution to this question? I just joined this forum and have a similair problem with a Network Printer. I would like to change the status to Online.

Read other 5 answers
RELEVANCY SCORE 44.8

I have the Xerox Workcenter XK50 CX and it was working fine and the next time I tried to print when the print window for xerox comes up it flashes printer is offline. I have tried the various solutions that they offer on the website but has not worked. I can print out a test page or make a copy but cannot print a document. If anyone can help me I would appreciate it.
J.D.
 

A:Xerox WorkCenter XK50 says printer off line

What program were you trying to print from. Also what kind of document were you trying to print (spreadsheet, letter, picture?)
 

Read other 1 answers
RELEVANCY SCORE 44.8

Is it possible to create a printer share at the command line. I am working with an older, DOS based program that we map network printer shares to. I am now trying to use it with Terminal Services. I can get the users printer to show up on the Term server, but it does not share it, since it is recreated every time you log in. I figure I can map the share with a login script. Just can't figure out how to create the share to map.Thanks in Advance

A:Creating A Printer Share At The Command Line

What operating system are you working from, and what operating system are you mapping to?

Read other 4 answers
RELEVANCY SCORE 44.8

I have an Epson printer/fax that is off line and won't go back on. I've turned it off, disconnected the USB and it still doesn't work. How do I get it back online to print?
 

Read other answers
RELEVANCY SCORE 44.8

I keep getting a message box coming up saying that the printer is off line. I have the option to 'Retry' or 'Cancel' and when I select 'Cancel' I get another message saying the job is printing - but it really isn't printing. I've checked the cables and the printer is turned on. I can't print anything. Any suggestions?
 

A:Printer off-line error on Lexmark 3200

Hi simpsg, welcome to TSG....

Do a ctrl-alt-del when you can't print.....how many items do you have running? Also, how much ram do you have.

Also, when you have this problem, right click on my computer, properties, performance....what are your system resources at this point?
 

Read other 1 answers
RELEVANCY SCORE 44.8

Still hp 4215 officejet printer is printing rainbow line

Last night I removed all of the covers and cleaned all of the connections and ribbon cable connections. Still have the problem. the rainbow line is printing on the right side of the paper only. is there a way to get the photos to print on the left side of the paper only. If I could do that, I could live with the problem. Went to the HP site and checked for an answer, could find none.

Thanks.
 

A:hp 4215 printer still printing rainbow line

Please do not duplicate posts across the forum
continue here
http://forums.techguy.org/digital-photography-imaging/881707-hp-4215-officejet-printer-printing.html
 

Read other 1 answers
RELEVANCY SCORE 44.8

hp 4215 printer still printing rainbow line
Still hp 4215 officejet printer is printing rainbow line

Last night I removed all of the covers and cleaned all of the connections and ribbon cable connections. Still have the problem. the rainbow line is printing on the right side of the paper only. is there a way to get the photos to print on the left side of the paper only. If I could do that, I could live with the problem. Went to the HP site and checked for an answer, could find none.

Thanks.
 

A:hp 4215 printer still printing rainbow line

Please do not duplicate posts across the forum
continue here
http://forums.techguy.org/digital-photography-imaging/881707-hp-4215-officejet-printer-printing.html
 

Read other 1 answers
RELEVANCY SCORE 44.4

I have a HP 4215 officejet printer that is printing a one-eighth inch rainbow colored line across photos printed on the machine. I have changed the cartridges with no positive results. I have checked the rollers for any substances, cleaned them and the line is still there. The line doesn't show up with just general document printing, only on colored photos. The line shows two and a half inches from the right side of the print (from front to back) as it is exiting the printer. I have tried printing with a couple of photo software packages and get the same results. ie: nero and microsoft. Does anyone have any experience with this problem. The printer is used and out of warranty so there is no help available from HP. Thanks.
 

A:hp 4215 officejet printer is printing rainbow line

Since you get new print heads with new HP cartridges and you changed the cartridges I would think you have a driver issue.

HP has 2009 drivers for your unit as well as some critical updates that might apply - like the update to “fix best mode printing”.

The HP site is pretty easy to use. If you are going to update the driver software make sure to remove the old software first.
 

Read other 2 answers
RELEVANCY SCORE 44.4

I am trying to install an HP 693C Deskjet printer to an off-line (no internet) HP Vectra computer with 32 RAM and 199 MHz. The computer will not read the CD with the printer driver information on it. Both the computer's "floppy" and CD drives seem to work okay for other applications. The installation disc contains driver information downloaded from the internet using another computer.

I have talked to HP who no longer supports this computer/printer and would charge more than the value of the unit to provide a "burned" CD.

How can I install this printer to this computer?
 

A:Solved: Installation of Older Printer to Off-line HP Computer

Read other 11 answers
RELEVANCY SCORE 44.4

hp 4215 officejet printer is printing rainbow line
I have a HP 4215 officejet printer that is printing a one-eighth inch rainbow colored line across photos printed on the machine. I have changed the cartridges with no positive results. I have checked the rollers for any substances, cleaned them and the line is still there. The line doesn't show up with just general document printing, only on colored photos. The line shows two and a half inches from the right side of the print (from front to back) as it is exiting the printer. I have tried printing with a couple of photo software packages and get the same results. ie: nero and microsoft. Does anyone have any experience with this problem. The printer is used and out of warranty so there is no help available from HP. Thanks.
 

A:hp 4215 officejet printer is printing rainbow line

Please do not duplicate posts across the forum
continue here
http://forums.techguy.org/digital-photography-imaging/881707-hp-4215-officejet-printer-printing.html
 

Read other 1 answers
RELEVANCY SCORE 44.4

I am attempting to add a printer via the command line using a batch file as an admin (to eventually deploy via SCCM TS on Win10):
rundll32 printui.dll,PrintUIEntry /in /ga /n"\\my network printer"
The command appears to run successfully but I am not able to find any trace of this printer in my printer list, print management, or in the registry (HKEY_LOCAL_MACHINE → SYSTEM → CurrentControlSet → Control → Print → Printers)
When I attempt to run it a second time I get the error message "Unable to add the per machine printer connection. Another printer or printer share with this name already exists. Please use another name for the printer."
Any ideas? Thanks in advance!

A:Network Printer Not Showing When Installing via Command Line

Go here and look at this page. It tells you how to do it via the .vbs scripts that are provided by Microsoft. I have never gotten the RUNDll32 option to work in Windows 7. What I normally do for printer installs is install all the printers that your organization/workgroup on one workstation until they are all installed they you want them to do and they all work. Then I start the program "printbrmui.exe" (Run it as an Administrator...even if you are logged in as an administrator). Then export all the printers to a file. Then goto the next workstation and then run an import (you can do this via Remote Desktop too). Anyway, hope this helps.

Read other 2 answers
RELEVANCY SCORE 43.6

The title tells it all...I went to use my Line In (blue) on the back of my Inspiron 3847, and it is now listed as a Speaker (Line Out) port.
Anyone know how to remap it? Or anything that I can do to get my Line In?

Read other answers
RELEVANCY SCORE 39.2

My printer will print from our 2 desktop PCs, but when I try to print from my laptop, or my son's notebook, it says it's off line.
 

A:printer shows "off-line" on network

whats the make and model of the printer

is it a HP network attached printer - if so, i have seen this a few times and you need to do a complete re-install
 

Read other 2 answers
RELEVANCY SCORE 38.8

Can someone help me? I'm stuck and need to get some documents printed ASAP. I am using an HP officejet 6310 and a wireless HP dv4 Notebook. It will not print and it is showing the printer as being "off line". How do I get it back "on line"?
 

A:Solved: Printer has gone "off line"

Read other 7 answers
RELEVANCY SCORE 38

I have a large .csv file I wish to break into smaller (5000 line) files such that

sourceFile.csv (100000 lines)

becomes

outputFile1.csv (lines 1-5000)
outputFile2.csv (lines 5001-10001)
etc till end of sourceFile.csv providing me 20 outputFiles

Any ideas?
 

A:Solved: split a 100000 line csv into 5000 line csv files with DOS batch

Read other 8 answers
RELEVANCY SCORE 38

Bitdefender Total Security 2018 packs multi-layer ransomware defense, privacy protection, advanced threat protection




Bitdefender, the innovative security solutions provider, has released its 2018 consumer line. Bitdefender consumer solutions, which detected the devastating Wannacry and Petya ransomware from the start and protected all users, now makes it even tougher for cyber criminals. Customers will benefit from its 9th generation of machine learning and artificial intelligence-based technologies that have been premiered and developed since 2008.

Bitdefender Total Security 2018 gives home users elite security and ensures personal privacy in today?s world of sophisticated hacking attacks, while staying true to the company?s reputation of a feather-light footprint that won?t slow your computer down.

The new generation of the award-winning line introduces a multi-layer defense against ransomware, the malware outbreak that?s evading many detection filters and encrypting users' documents then demanding ransom to decrypt them. Advanced Threat Defense finds patterns of behavior to detect and block even the newest threats while Real Time Protection instantly stops all known threats. As an additional protection, the new Safe Files feature prevents unauthorized alterations to sensitive files.

User privacy, a growing concern among users in an era of state-sponsored espionage, mass data theft and the proliferation of hackers, is enhanced in the latest Bitde... Read more

A:Bitdefender announces new security line for cross-platform product line

Total Security, I have seen that somewhere before
 

Read other 2 answers
RELEVANCY SCORE 38

Sure enough, I was disappointed when after running Kaspersky online scanner, Malwarebytes, and ComboFix I noted recurring hicjacked webpages and popups and inability to start Auto Update in Services, etc. but at a reduced rate.

I decided to run Malwarebytes a second time which detected several residual entries not eliminated on the first pass.

I then reexamined System 32 and saw that a number of the infected dlls WERE STILL THERE and were not deleted as promised after rebooting.

I decided to PRINT OUT ALL THE LOG FILES from the initial Kaspersky, Malwarebytes, and ComboFix scans and then tediously went LINE-BY-LINE identifying, deleting, and in cases of the System 32 dlls, using McAfee's more secure recycle bin shredder to remove them (inviting McAFee back for short term use as it is free via my comcast.net subscription--see my last post about this).

It was time-consuming and tedious, but it worked. Much more helpful to refer to a printed page than to squint at the screen swiveling from txt files and the Registry trees...

I also took advantage of a Microsoft "836941 Windows Update guided tool" (self extracting cabinet type) which I downloaded to the desktop. It "automatically" peformed the tasks of placing the update sites in the trusted sites of IE (which I had already done), purging the DNS cache or something like that (which I could not do from other Knowledge Base articles) and probably helped solve the
frustrating 0x80070422, 0x80072ee2, e... Read more

Read other answers
RELEVANCY SCORE 38

When setting a password for user, when I type it, it shows up as black dots but when I retype the next line, it shows up as the letters, numbers and symbols that I'm typing. It won't let me set it.

What the heck is going on? Thanks

A:setting password - line 1, black dots : line 2, letters & numbers

Welcome to the forums!

Not 100% sure what you're saying here. Is this for your account? Or a new one? Administrator or standard? Or are you trying to save a password in Windows so you don't have to log in each time?

Read other 2 answers
RELEVANCY SCORE 38

Hey all,

Take for example the following text file...

a
aa
aaabaaa
madamiamadam

...

I have this code here to read the file,
Code:
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.FileInputStream;
public class FileCode
{

public static void main(String[] args) throws IOException
{

int next;
char c;
char[] message = new char[10000];
String str;
int count = 0;
Stack stack = new Stack();


String fileName = "c:\\prog4DS.dat";
FileReader reader = new FileReader(fileName);
FileWriter writer = new FileWriter("FileStuff.dat");

next = reader.read();

while(next != -1)
{
c = (char) next;
message[count] = c;
next = reader.read();
count++;
}

reader.close();

for(int i = 0; i < count; i++)
{
System.out.print(message[i]);
writer.write(message[i]);
}

writer.close();

}

}

Basically what I want is to read each line of the text file individually and store the text in its own location of an array. So for example, for the first line in the text file it is simply just an "a". I would like the program to recognize that "a", and assign... Read more

A:Solved: Reading text file line by line in JAVA - Help PLZ

Hi r3drock3t88,

The best way to read a file line by line is to use an instance of the BufferedReader class.
Example :

Code:
[SIZE=2]
List<String> list = new ArrayList<String>();
String line;
...
...
String fileName = "c:\\prog4DS.dat";
FileReader reader = new FileReader(fileName);
BufferedReader bufrdr = new BufferedReader(reader);
line = bufrdr.readLine();
while (line != null) {
list.add(line);
line = bufrdr.readLine();
}
bufrdr.close();
reader.close();
...
...
String[] array = new String[list.size()];
list.toArray(array);
[/SIZE]

 

Read other 3 answers
RELEVANCY SCORE 38

I have Access 93 SP2.

I have a report where I am doing calculations on each row of data in the Sub Detail_Print. What is happening is that the detail line that is to print on the top of the 2nd page and any detail line to print first on subsequent pages is having this routine executed twice.

I have created the smallest possible report which simply selects a list of order numbers. The only section is the Detail. The only line in the Sub Detail_Print is

MsgBox "OrderNumber is" & Me.OrderNumber

In Preview, I see a msgbox for each line then the ordernumber that should print at the top of the second page shows its msgbox, the first page appears, when I click the arrow to go to the next page the same msgbox appears again.

It appears that Access gets the line, executes the code, decides it doesn't fit on that page, does the new page, regets the line and re-executes the code placing it on the new page.

I could find nothing on this anywhere. Has anyone else seen this? Is there some setting I am missing?

Thank you!
 

Read other answers
RELEVANCY SCORE 38

Somehow the line that you put web sites -- after the http --has disappeared. I'm sure that there's a simple way to get it back but I'm new to WIN XP. Can someone help.
 

A:Lost command line -- line with site addresses WinXP

I think you are talking about the address bar in a web browser???

You did not mention what browser you are using. For Internet Explorer 6, right click in any other visible menu bar and then make sure that "Address Bar" is checked in the box that pops up. This may work for other versions of Internet Explorer.
 

Read other 3 answers
RELEVANCY SCORE 37.6

I have a line of music audio entering my realtek card to accompany a powerpoint slideshow, together they go out on our community cable channel. I need to kill the input, the music audio that is directly plugged into the card in the back of the pc, so that when I schedule a video (bod meeting prerecorded video), the line in is muted and the video audio goes out, without the muting capability I get both streams...

Need to do it in an attended way. Also, need to return to the music input afterwards. Old config (xp/machine Creative sound card, allowed us to do this via a batch file that executed a muteon.exe, ran the video, then muteoff.exe...however the .exes do not work in our present config.

Any ideas greatly appreciated! It's burning me out...

A:cmd line way to mute line in realtek hd audio card

Vista/Win7/Win8 handle some audio functions differently than XP and thus the reason the XP drivers and most of their utilities do not work in Win7. You will find several other differences in Win 7 from XP as I have seen many posts from ex Windows XP users with programs and procedures that no longer work or are different.

Now, back to muting the Line In. RIGHT click on the speaker Icon in the Notification Area (lower right of the task bar) and then LEFT click on Recording section and you should be able to mute (disable) the Line In there (or enable it).

Read other 3 answers
RELEVANCY SCORE 37.6

can anyone help, i can't seem to be able to print repeated when the line entered is exactly the same as the one before, or print farewell when a blank line is entered, this is my code so far:
String word, word1;
Scanner scan = new Scanner (System.in);
System.out.println ("Enter continuous lines of text: ");

while (scan.hasNextLine()){
word = scan.nextLine();
word1 = scan.nextLine();
}
if (word.equals(word1)){
System.out.print ("Repeated:" + word);
}
else if
(word.isEmpty()){
System.out.print("Farewell");

}
}
}
 

A:Solved: Java: If a line is exactly equal to the previous line

Hi, Welcome to TSG

OK, lets have a look at the ISSUES in your code

1. If you have JUST TWO WORDS, then no need of the loop
2. The way you checked for the blank line is wrong
3. If you want to check two strings, don't use .equals(). Because it will check the STRING OBJECT. For an example, if the both lines are blank, it will still print "Repeated"
4. You have to check whether any of the lines are blank or not, but you are checking only the first line

Have a look at the following edited code
Code:
import java.util.*;

public class Test
{
public static void main(String[] args)
{

String word=null;
String word1 = null;



Scanner scan = new Scanner (System.in);
System.out.println ("Enter continuous lines of text: ");


word = scan.nextLine();
word1 = scan.nextLine();

if (word==word1)
{
System.out.print ("Repeated:" + word);
}
else if((word==null || word.length()==0) || (word1==null || word1.length()==0))
{
System.out.print("Farewell");
}

}
}
 

Read other 2 answers
RELEVANCY SCORE 37.6

I have Word 2003. I do a lot of literature reviews, copying and pasting from .pdf files. When I do this, the text is pasted into word only filling a partial page. I want the text to completely fill a line within the margins. So I manually go to the end of a sentence, hit the space bar once, the delete once to delete the new line/paragraph marker. Sometimes I have to do that twice. Then I go to the next sentence and repeat the steps until it is all completed. It seems this would be a good use of a macro. I can record a macro and go through these steps once but not looping through every line until the end. Can someone please help?

Zeda
 

A:Solved: Looping Line by Line in Word Macro

Read other 6 answers
RELEVANCY SCORE 37.6

Hello

I would like to know if its possible (and how to do it if so) to justify a paragraph of text in Word 2007 to gradually get narrower.

What I mean is, id like the first line of text to be longer than the one after and so on until I end up with something like this:

-----------------------------
-------------------------
--------------------
----------------
----------
I cant seem to use simple spacing or margins as they effect the entire text? Please help

Ok that example above has not come out right

I want the 2nd line to start further to right of first line and end closer to left and so on. Im struggling to show an example but hope you know what I mean. Basically centre justified but going down in a V shape

A:Line by line justification of text in Word 2007

I know this doesn't do exactly what you are looking for, however it is the only resolution I can think of:
How to Create multilevel list styles in Microsoft Word 2007 ? Microsoft Office

Read other 1 answers