Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: System.out.printin isnt working

  1. #1
    Junior Member
    Join Date
    Sep 2018
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default System.out.printin isnt working

    Im attempting to learn user input via scanners. But whenever I try to compress it is saying something is wrong with the system.out.printin isnt working

    My Code:
    import java.util.Scanner;

    public class UserInput {

    public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
    System.out.printIn("please enter your favorite anime: ");

    String inputText = input.nextLine();
    String outputText = inputText+"is Shit: ";

    System.out.printIn(outputText);
    }
    }

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: System.out.printin isnt working

    it is saying something is wrong
    Please copy the full text of the error message and paste it here. It has important info about the error.

    Please edit your post and wrap your code with code tags:

    [code]
    **YOUR CODE GOES HERE**
    [/code]

    to get highlighting and preserve formatting.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Sep 2018
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: System.out.printin isnt working

    The error message
    UserInput.java:7: cannot find symbol
    symbol : method printIn(java.lang.String)
    location: class java.io.PrintStream
    System.out.printIn("please enter your favorite anime: ");
    ^
    UserInput.java:12: cannot find symbol
    symbol : method printIn(java.lang.String)
    location: class java.io.PrintStream
    System.out.printIn(outputText);
    ^
    2 errors

    Code (in the proper format )
    import java.util.Scanner;
     
    public class UserInput {
     
    	public static void main(String[] args) {
    	Scanner input = new Scanner(System.in);
    	System.out.printIn("please enter your favorite anime: ");
     
    	String inputText = input.nextLine();
    	String outputText = inputText+"is Shit: ";
     
    	System.out.printIn(outputText);
    }
    }

  4. #4
    Junior Member tonya's Avatar
    Join Date
    Feb 2018
    Posts
    16
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: System.out.printin isnt working

    you have used a capital i instead of a lower case l in the println method. This method name is short for print line, so it should read:
    System.out.println();

  5. The Following User Says Thank You to tonya For This Useful Post:

    CJ_sucks_at_programin (September 2nd, 2018)

Similar Threads

  1. Collision Testing Code isnt working.
    By NathanWick in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 25th, 2013, 05:42 AM
  2. JInternalFrame isnt working why
    By justyStepi in forum AWT / Java Swing
    Replies: 1
    Last Post: May 17th, 2012, 01:42 PM
  3. keylistner + applet isnt working
    By brandon95 in forum AWT / Java Swing
    Replies: 3
    Last Post: January 4th, 2011, 07:16 AM
  4. PrintIn( )
    By Jay27 in forum Java SE APIs
    Replies: 2
    Last Post: March 22nd, 2010, 06:44 PM
  5. hmm for some reason the char.At isnt working
    By dvsumosize in forum What's Wrong With My Code?
    Replies: 3
    Last Post: February 2nd, 2010, 04:27 AM