Baktha Elumalai

Ranch Hand
+ Follow
since Mar 13, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Baktha Elumalai

what are all the steps to followed while migrate toplink to eclipse link without using JPA concept
plan to migrate from com.inprise.vbroker.CORBA.* to Jakarta EE. Please advice me is it possible and what are all the steps to follow to migrate
2 years ago

Hello,
Are there any Best Practices documents telling what could be the most practical way to migrate Corba based aplication to J2EE(Jakarta EE) platform?
2 years ago
String dateStr="Aug 4,2022 11:48:40";

DateTimeFormatter dtfTx = DateTimeFormat.forPattern("MMM d,yyyy H:m:s").withLocale(Loocal.FRENCH);

System.out.print("dtfTx" +dtfTx.parseDateTime(dateStr).getMillis());


while parsing am getting below issues:


Exception in thread "main" java.lang.IllegalArgumentException: Invalid format: "Aug 4,2022 11:48:40"
at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:945)
at com.cat.ngsite.DateFormatTesting.main(DateFormatTesting.java:56)

Please help me how to solve this issue in french language
2 years ago

Baktha Elumalai wrote:<Quote>
[{Da=1Box, PROOF=N, Var=No, id=AG-012},
{Da=1Box, PROOF=N, Var=No, id=AI001},
{Da=1Box5, PROOF=N, Var=No, id=DSB-01},
{Da=1Box3, PROOF=N, Var=No, id=DSB-02},
{Da=1Box9, PROOF=N, Var=No, id=Demo2},
{Da=1Box3, PROOF=N, Var=No, id=MI2-001},
{Da=2Boxes24, PROOF=N, Var=Yes, id=MI3-001},
{Da=1Box1, PROOF=N, Var=No, id=TESTSTD001},
{Da=1Box2, PROOF=N, Var=Yes, id=ZI001}]
<Quote>

from the above  list<Map<string, Object>>arraylist= new Arraylist()..

i need to sort the value only id other no need to sort

what am going to do

6 years ago
<Quote>
[{Da=1Box, PROOF=N, Var=No, id=AG-012},
{Da=1Box, PROOF=N, Var=No, id=AI001},
{Da=1Box5, PROOF=N, Var=No, id=DSB-01},
{Da=1Box3, PROOF=N, Var=No, id=DSB-02},
{Da=1Box9, PROOF=N, Var=No, id=Demo2},
{Da=1Box3, PROOF=N, Var=No, id=MI2-001},
{Da=2Boxes24, PROOF=N, Var=Yes, id=MI3-001},
{Da=1Box1, PROOF=N, Var=No, id=TESTSTD001},
{Da=1Box2, PROOF=N, Var=Yes, id=ZI001}]
<Quote>

from the above  list<Map<string, Object>>arraylist=Arraylist()..

i need to sort the value only id other no need to sort

what am going to do
6 years ago
Not possible to put data into list of object why because lot functionality working already.
Without put data into list of object any other way is there any possibility

Thanks I advance.
6 years ago
How soon convert hashmap<String, Object> into map<String , List<Object>>

Thanks in advance
6 years ago
Thanks for your response.

Could you please explain the with sample will understand seaily.
6 years ago
Ignore the previous reply.

Yes you are absolute correct. When I try sort single column but all the other column also sorted

We have the data like
List<Hashmap<String, Object>
6 years ago

Yes got my point. When unsorted particular column all the column sorted.
No it's like hashmap<string, Object>
6 years ago
ArrayList < HashMap < String, Object>> contactList;

A                        B
Tamil            English
Bangalore     Karnataka
Go's                 Read
Fisha              Basics

Collections.sort(contactList, new Comparator<Map<String, Object>>() {
       @Override
       public int compare(Map<String, Object> o1, Map<String, Object> o2) {
           if(null != o1.get("status") && null != o1.get("status")){
               return o2.get("status").toString().compareTo(o1.get("status").toString());
           }else if(null != o1.get("status")){
               return 1;
           }else{
               return -1;
           }
       }
   });
6 years ago