Jump to content

Anyone a computer science major?


Jabby

Recommended Posts

mihu the monkey
2 minutes ago, Jabby said:

Java

never wrote a single line of code in java l0l but this is real easy stuff shouldn't be a problem

Link to comment

These aren't that difficult. 

 

For #2, import a scanner for System.in to read the keyboard. Assign kb.nextLine() to read their input. 

 

Scanner kb = new Scanner(System.in);

Import Scanner.java.util; before your main method. 

 

Ask the user for their input, assign it to a variable. Easy

 

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 + "vary much!"

 

Idk whats up with the autistic typos in the question but yh im at work cba typing more on my garbage phone

Edited by Tr ees
Link to comment
32 minutes ago, Kanye said:

yo you missed the due date fam...

I finessed the professor for 3 day extension. 

3 hours ago, Tr ees said:

These aren't that difficult. 

 

For #2, import a scanner for System.in to read the keyboard. Assign kb.nextLine() to read their input. 

 

Scanner kb = new Scanner(System.in);

Import Scanner.java.util; before your main method. 

 

Ask the user for their input, assign it to a variable. Easy

 

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 + "vary much!"

 

Idk whats up with the autistic typos in the question but yh im at work cba typing more on my garbage phone

Thank you, and my teacher hardly knows English. 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members, 0 Anonymous, 0 Guests

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.