Click here to Skip to main content
15,886,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
import java.util.Scanner;
public class Zulu java.lang.string {

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

		String fName;
		String.out.print( "What is your full name sir?" );
		fName = keyboard.next();
		
		String fTall;
		String.out.print( "How tall are you, in meters please." );
		fTall= keyboard.next();

		String fKilo;
		String.out.print( "How many kliograms do you weigh?" );
		fKilo = keyboard.next();
		
		
		String.out.println(" You are a very interesting person " + fName + ", you are " + fTall + " tall " + " and " + fKilo );
    }
}


What I have tried:

I've tried placing the quotation marks but nothing I do seems to work and I think the problem might run deeper. I'm a beginner and would appreciate any constructive criticism, thank you.
Posted
Updated 17-Sep-21 15:12pm

1 solution

Your second line of code is a problem. That "string" statement should not be there.

What Is a Class? (The Java™ Tutorials)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900