Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java understanding: What this code is and how it works What does the while(x < n) mean then try and catch explain read.useDelimiter( ); //returns

Java understanding:

What this code is and how it works

What does the while(x < n) mean

then try and catch explain


image

read.useDelimiter(" "); //returns the scanner object/setting the pattern int x = 0; while(x < n) { String[] data = read.next().split( regex: ","); //reading the input try{ letter2DS [x] = new Letter2D (Integer.parseInt(data[0]), Integer.parseInt(data[1]), (data[2].charAt(0))); x++; }catch (Exception ignored) { } } return letter2DS;

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Statistics For Engineering And The Sciences

Authors: William M. Mendenhall, Terry L. Sincich

6th Edition

1498728855, 978-1498728850

More Books

Students also viewed these Programming questions

Question

In what research projects are your students currently involved?

Answered: 1 week ago