X-Received: by 10.66.160.36 with SMTP id xh4mr4282489pab.11.1378656396062; Sun, 08 Sep 2013 09:06:36 -0700 (PDT) X-Received: by 10.49.133.225 with SMTP id pf1mr584512qeb.6.1378656395856; Sun, 08 Sep 2013 09:06:35 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!y3no9632777pbx.0!news-out.google.com!rn2ni68054pbc.1!nntp.google.com!b4no4538178pbq.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Sun, 8 Sep 2013 09:06:35 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.129.109.128; posting-account=L3GIDwoAAAAVaWFoxfZ2m8N6zVIr0Vqh NNTP-Posting-Host: 24.129.109.128 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Nothing prints when I compile my code From: John Stephens Injection-Date: Sun, 08 Sep 2013 16:06:36 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.java.programmer:25259 Another Homework assignment for College Intro to Java course. I am having a disconnect with what the issue is. It compiles fine but does not print. Hints anyone? Here is my code: //************************************************************************************************* // Author: John Stephens Date: September 7, 2013 // Class: COP 2551 Filename: Homesick.java // Lab: Lab 1 // Programming Project PP2.3 on Page 109. // Purpose: This program prompts and reads a person's name, college, and petname into a paragraph //************************************************************************************************* import java.util.Scanner; public class Homesick { //---------------------------------------------------------------------------------------------- // Reads a character string from the user and prints it. //---------------------------------------------------------------------------------------------- public static void main (String[] args) { String name, college, petname; int age; Scanner scan = new Scanner (System.in); String Name = scan.nextLine(); System.out.println ("Johnny"); name = scan.nextLine(); System.out.println ("41"); age = scan.nextInt(); scan.nextLine(); System.out.println ("FSCJ"); college = scan.nextLine(); System.out.println ("Sagwa"); petname = scan.nextLine(); System.out.println ( "Hello, my name is " + name + " and I am " + age + " years " + "old. I'm enjoying my time at, " + college + " though " + "I miss my pet " + petname + " very much!" ); } }