loading
Today I decided to do java and some harder batch.  The programming we will learn today is player input we will start with java input.

Step 1:

first thing we need to know is that java is not object oriented programming so to program with it we need to import something.
this something is shown below.


import java.util.Scanner;

public class hipacman {

public static void main(String[] args) {

This is how it should look.

Step 2:

The next step is to get input now that you have imported the scanner.  To get input you must make a new scanner the scanner can be made like this.

input = new Scanner(System.in);
   String instructs = input.next();
  
   System.out.println(instructs);
   input.close();

This code will make a scanner.  that copies something that the player writes.

Step 3: Batch Input

to get batch input the code below is used.

set /p input=(anything you want)

Step 4:

to make a very simple batch input copier you would use this code.

set/p input=enter
if %input% == %input% echo %input%

this code would mean if the input was input write the input an easier way is to write this

set /p input=enter
echo %input%
(remmember) pause;

hope you liked it
please fav,follow and subscribe to my youtube channel.

Step 5: Java Programming Video

Step 6: Batch Input Video

I looked java up in wiki and it said java was object oriented but without a scanner java cannot be used for object oriented programming. The scanner which java gives can be obtained by writing import java.util.Scanner the scanner is given with java so you can let the person write text into the screen if this comment helped please message me
<p>You are getting closer, but the import has nothing to do with java being OO or not. Google the java import statement, pretty much all it does is let you use unqualified names, which is the way you have choose to reference it. There are other ways.</p>
actually java is not object oriented. And it is necessary to import. without importing you would not be able to make the scanner. The scanner allows someone to write text in the program. The program then uses the scanner to because the scanner has been put in the system. The scanner is object oriented programming. The reason why we import is because java is not object oriented. The scanner is an object if this message did not help I can try to make an instructable just about what i am doing
<p>I have programed in java for years, but do not just take my word for it, wikipedia says in the first sentence on java:</p><p>&quot;Java is a computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. &quot;</p><p>As for imports try running:</p><p>**<br> * The HelloWorldApp class implements an application that<br> * simply prints &quot;Hello World!&quot; to standard output.<br> */<br>class HelloWorldApp {<br> public static void main(String[] args) {<br> System.out.println(&quot;Hello World!&quot;); // Display the string.<br> }<br>}</p>
<p>Could you tweak up the first sentence, it may put some people off as:</p><p> Java is object oriented</p><p> It is common to import but not necessary</p><p>Finally you might explain what a scanner is up front so people know what you are trying to achieve.</p>

About This Instructable

744views

14favorites

License:

Bio: I do a little of everything. I like electronics. Chemistry physics and robotics.
More by the electrical engineer:How to make the elecgo car To take care of a parakeet How to take care of a tortoise 
Add instructable to: