0

Ι am fairly new to the Java programming and while reading the book i am just experimenting with the code

Ι am stuck on the following code with the following out put :

package testing;
import textio.TextIO;


public class test {
    public static void main(String[] args) {
         final String name;
         final int age;
         final  String eyecolor;
         final String bff;
         final char lastName;
        
         TextIO.put("What is your name?");
         name=TextIO.getln();
         TextIO.put("What is your age?");
         age=TextIO.getInt();
         TextIO.put("What is your eyecolor?");
         eyecolor=TextIO.getln();
         TextIO.put("Who is your bff?");
         bff=TextIO.getln();
         TextIO.put("What is your Last's Name first letter?");
         lastName=TextIO.getChar();
         
         TextIO.writeUserSelectedFile();
         TextIO.putln(name);
         TextIO.put(age);
         TextIO.putln(eyecolor);
         TextIO.put(lastName);
         
        
        System.out.println("Hello World");
    }
 

So first of all, after the line where the user should select the file, no gui is opened. second , is that on the like considering the eyecolor the next line in the console or always glueed to each other and looks like this:

enter image description here

what could be the issues and how could i solve them?

AirlineDog
  • 518
  • 4
  • 18
Anasacia
  • 13
  • 1
  • 3
    I don't know `TextIO`, but it could be a similar problem to [scanner-is-skipping-nextline-after-using-next-or-nextfoo](https://stackoverflow.com/questions/13102045/scanner-is-skipping-nextline-after-using-next-or-nextfoo) – Thomas Kläger Jan 16 '21 at 09:10

0 Answers0