Question

my txt file data is as follow:

2013-11-01 00:00:00|1|0|0.3521|||0.0273|
2013-11-01 00:00:00|1|33|||||0.0261
2013-11-01 00:00:00|1|39|1.7322|1.1047|0.5919|0.402|57.7729
2013-11-01 00:00:00|2|0|0.3581|||0.0273|
2013-11-01 00:00:00|2|33|||||0.0274
2013-11-01 00:00:00|2|39|1.7334|1.088|0.602|0.4109|57.8875
2013-11-01 00:00:00|3|0|0.3644|||0.0273|
2013-11-01 00:00:00|3|33|||||0.0287
2013-11-01 00:00:00|3|39|1.7348|1.0701|0.6128|0.4203|58.0095
2013-11-01 00:00:00|4|0|0.3349|||0.0273|

i need to convert the above file data into 2D array in java such that the columns are seperated by '|'. how to perform this in java? there are 10 rows and 8 columns

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Engineering

Programing

Related Computer Engineering Q&A

Find answers to questions asked by students like you.

Q: Given the hash function H (key) = (3 * key) mod 11, use square probe  to solve the conflict. Please ...

A: Hash function: H(key) = (3 * key) mod 11   H(6) = (3 * 6) mod 11 = 7 Index Key 0   1   2   ...

Q: Write a program which should consists of a user defined function “fun ()” [Function returns no value...

A: Store the index where the element is found If index is same as initial index which means element not...

Q: 1. find an adapter that allows you to connect a Thunderbolt port onto a computer to a DVI monitor us...

A: there are some adapter which is suitable 

Q: Write a program which should consists ofa user defined function “Task ()”[Function returns no value]...

A: #include <stdio.h> void Task(int *arr, int size){    int *arr2, largest, j = 0;    largest = a...

Q: Shows the output of the following instructions? MOV AX,#10H MOV BX,#50H PUSH AX POP CX ADD BX,CX...

A: Objective: Two assembly codes are given to determine the output. Also, the steps should be mentioned...

Q: True or false Please do all

A: Hey, since multiple sub parts questions posted, we will answer first three questions according to ou...

Q: 1. Write a program which should consists of a user defined function “Task ()” [Function returns no v...

A: You haven't mentioned the programming language. So, we are answering this question using C. Program ...

Q: Answer the following question. All the files in the Quarantine area are: A. to be considered safe an...

A: Generally quarantine file means that it must be affected with kind of virus or a Trojan ware which i...

Q: “Array name can act as a constant pointer”. Justify the given statement by distinguishing array name...

A: A constant array is a special type of pointer variable that cannot change the contents that it point...

Q: Write a program that allows the user to enter name and phone number. Have the program accept input u...

A: Please find the answer below :  

Q: Which of the following figures reflects the type of physical topology most likely to be used on a 10...

A: 1000Base-T is a physical layer standard for achieving 1000 Mbps. It is an extension of the 10BaseT a...

Q: What is meant by memory leak and dangling pointer? Explain the concept with the help of example.(in ...

A: Actually, memory is used to stores the data.

Q: While troubleshooting a printer problem, you figured out the printer’s static IP address hadnot been...

A: Scenario and recommendations The printer's static IP address had not been reserved on the DHCP serv...

Q: Draw a annotated parse tree for the string: a=b/(c-d)*(x+y)

A: Parse tree is a graphical representation of the replacement process in a derivation. Each interior n...

Q: Write step by step command

A: 1.UNION command: It is used to add result set of two or more select statements .It is used to add th...

Q: Explain the principles of strain hardening. Does this mechanism work high temperatures ?explain

A: In This Strain hardening is also known as work hardening or cold working. In this the metals are str...

Q: how can i install cockpit and log in into the Web Console and  also create three accounts  1)  Cecil...

A: A primary cockpit server is the machine that runs a cockpit service with the user interface and  sec...

Q: 1. Write a program which has user defined function deletion(). Pass 1D array to the function along w...

A: You haven't mentioned the programming language. So, we are using the C to answer this question.

Q: Program to calculate the average of 3 marks. If the average ismore than or equal to 60 display “PASS...

A: Since the programming language is not mentioned therefore answering question in Pyhton.   total = 0p...

Q: Hi! I need assistance writing the PSEUDOCODE and the SOURCE CODE for the problem listed below! Any h...

A: import mathdef isRightTriangle(side1, side2, side3): if math.sqrt(side1 * side1 + side2 * side2) ...

Q: What type of network could use the type of connector shown here?

A: SC – straight connection – this type of connectors pushes on, which makes them easy to install and r...

Q: Write a program to count composite numbers from m and n (including m and n also) using the concept o...

A: #include <stdio.h>#include <math.h>void calculate(int *m, int *n, int *count){    int fl...

Q: In the formula, 3*[BaseSalary], the 3 is considered a(n) ________. variable field argument c...

A: The, given formula is 3*[BaseSalary], the 3 is considered a(n) ________.

Q: In Python, use only some or all of the following concepts: decision structures, repetition structure...

A: Python code: def grade_average(marks_lst):       #function to find average of all the marks     s =...

Q: ALSO: What is the hit ratio for the memory accesses (Round to the nearest percent.)

A: Solution is in Step 2.

Q: 31. For the MyMy1 queueing model, why do the followingresults hold? (Hint: Remember that 1ym is the ...

A: a) Here Adding 1 on both sides, So finally it will be:

Q: Using Queues. Java Program

A: The program is written in java

Q: Differentiate between null andwild pointer and also tell thathow you overcome thesituation of wild p...

A: A Pointer is a variable which stores the address of another variable   A wild pointer is a pointer w...

Q: Im using python and i need to 1)Fill the function definitions 2) Fill in the missing code in main() ...

A: Solution is in Step 2.

Q: Write a program to input two integers from user by using single scanf. Compute and display the value...

A: A single scanf can take more than one value and to make it happen you need to specify addresses of a...

Q: please solve it using C (Programming language).

A: Introduction of the Program: The C program takes 10 integers from the user as input and then checks ...

Q: This is a PYTHON question, I need the problem really step by step, careful solving with all comments...

A: The main objective of the python program is to write the function, compute_letter . The function tak...

Q: In at most one paragraph, describe a scenario that will require the use of multiple function and par...

A: Explanation: One can use a Sum of two numbers scenario to use multiple function and parameter to th...

Q: Asking help for Java Programming Create a program that simulates a meeting reservation system. Part ...

A: Actually, program is a executable software that runs on a computer.

Q: Stack is a linear data structure which follows a dynamical order in preforming operations, LIFO. In ...

A: Actually, stack has a performing operations  LIFO FIFO

Q: Write a C++ program that creates the following nodes using the head pointer only: head A C B.

A: #include <iostream>#include <cstdlib>using namespace std;struct Node {char data;struct N...

Q: Array Declarations. Determine whether the following array declarations are valid. If a declaration i...

A: Please find the answer below :

Q: how to get distance measurement from camera formula?

A: Camera Distance : In order to determine the distance from our camera to a known object or marker, we...