Laimonas Samalius

Greenhorn
+ Follow
since Dec 28, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Laimonas Samalius

Hi,

I would like to get compass readings at every second rate and send them to the cloud. So basically, I would like to get orientation information ("N", "S" etc) once per second and send it. Method onSensorChanged()  is  constantly  updating  information on the screen, but how I could capture samples at regular rate?


1 month ago
I looks like  that I managed  to get ArrayList returned now.

I tried to use "split", but it didn't work at all for me. Current code is  creating ArrayList without headers. It's better than nothing. It  would be usefull to get first headers line in separate array. But I'm not sure how  to separate just one line.
8 months ago
Hi,

I need to write a program that reads CSV file and daws XY scatter plot using Swing. File sample:

YIELD DAYS_TO_MATURITY AMOUNT_CHF(000)
7.224 1002 250
7.266 1044 227
7.266 1044 227
7.428 1068 227


Initially I want the program to be able draw a scatter plot using yield as x coordinate and days_to_maturity as y coordinate.

So, my idea is to read file into ArrayList with a single trade as an object .

Later I would like to access ArrayList from other class to get  x and y coordinates.






Is it a good idea?

Is it possible  to return ArrayList from the method?
8 months ago