Are you not able to store the response into json objects directly?

|
Chitra Joshi 2022-07-06 11:28:03
how to do validation verification in my code
Krishna G 2022-07-06 11:39:29
Swati 2022-07-06 11:25:49
What does this error mean

configuration is wrong in rest controller

Riya R 2022-07-06 11:45:31
static void maxHeap(int[] arr, int value,int n)
{

n=n 1;
arr[n]=value;
int i=n;
while(i>0)
{
int parent=i/2;
if(arr[parent]>arr[i])
{
int temp=arr[i];
arr[i]=arr[parent];
arr[parent]=temp;
i=parent;
}
else {
return;
}
}
}
public static void main(String[] args) {

int[] arr= {70,60,50,55,21,45,33,45,12};
int n= arr.length;
n=n 1;
int insert=45;
maxHeap(arr,insert,n);
System.out.println(Arrays.toString(arr));
}

Riya R 2022-07-06 11:45:58
MaxHeap insertion…
But not getting output…
Riya R 2022-07-06 11:46:52
I have arr one array of length n….
I want to increase size of the array by one nd store one element in tht

How to do that???
Please Help 🙏🙏🙏

blizz_pool 2022-07-06 11:48:34
Anyone here good knowledge in
blizz_pool 2022-07-06 11:48:36
SQL
AD 2022-07-06 11:51:01
I write a program for date and time shorting in jQuery after refresh local downtown botton work only one time
AD 2022-07-06 11:51:13
How resolve this probelm
smartcoder69 2022-07-06 11:53:32
Riya R 2022-07-06 11:46:52
I have arr one array of length n….
I want to increase size of the array by one nd store one element in tht

How to do that???
Please Help 🙏🙏🙏

You are using array itself is wrong.

Riya R 2022-07-06 12:13:07
static void maxHeap(int[] arr1, int value,int n)
{

int i=n;
while(i>0)
{
int parent=i/2;
if(arr1[parent]>arr1[i])
{
int temp=arr1[i];
arr1[i]=arr1[parent];
arr1[parent]=temp;
i=parent;
}
else {
return;
}
}
}
public static void main(String[] args) {

int[] arr= {70,60,50,55,21,43,33,41,12};
int n= arr.length;
int[] arr1=new int[n 1];
int insert=45;
for(int i=0;i<arr1.length;i )
{
if(i<arr1.length-1)
{
arr1[i]=arr[i];
}
else {
arr1[arr1.length-1]=insert;
}
}

maxHeap(arr1,insert,arr1.length);
System.out.println(Arrays.toString(arr1));
}

Riya R 2022-07-06 12:13:13
Still not working
Rahul 2022-07-06 13:21:03
Trying to add data using postman in springboot but it’s showing this as request body where should I make changes in the code ❓
Rahul 2022-07-06 13:21:05
springbootmicroservices-66773.jpg

. 2022-07-06 13:21:39
Riya R 2022-07-06 12:13:07
static void maxHeap(int[] arr1, int value,int n)
{

int i=n;
while(i>0)
{
int parent=i/2;
if(arr1[parent]>arr1[i])
{
int temp=arr1[i];
arr1[i]=arr1[parent];
arr1[parent]=temp;
i=parent;
}
else {
return;
}
}
}
public static void main(String[] args) {

int[] arr= {70,60,50,55,21,43,33,41,12};
int n= arr.length;
int[] arr1=new int[n 1];
int insert=45;
for(int i=0;i<arr1.length;i )
{
if(i<arr1.length-1)
{
arr1[i]=arr[i];
}
else {
arr1[arr1.length-1]=insert;
}
}

maxHeap(arr1,insert,arr1.length);
System.out.println(Arrays.toString(arr1));
}

Constructing heap , right ??

v_lan1337 2022-07-06 13:23:53
Rahul 2022-07-06 13:21:03
Trying to add data using postman in springboot but it’s showing this as request body where should I make changes in the code ❓

add data where? and, how are you doing it?

Bolt 2022-07-06 14:18:43
When I post data in postman…

i am getting null return value from advice does not match primitive return type

Please rectify

rsdesouza 2022-07-06 14:36:44
Guys, is everything ok? Can anyone help me with an algorithm that runs a routine captures data from a service and then writes the information to a RabiitMQ queue.
JAGADESH P 2022-07-06 14:44:29
Any idea on stubs
rsdesouza 2022-07-06 14:53:37
rsdesouza 2022-07-06 14:36:44
Guys, is everything ok? Can anyone help me with an algorithm that runs a routine captures data from a service and then writes the information to a RabiitMQ queue.

public void executeListAutomatic(String id) throws Exception {
Optional<ListAutomatic> opListAutomatic = repository.findById(id);
if (opListAutomatic.isPresent()) {
ListAutomatic listAutomatic = opListAutomatic.get();
if (listService.countByNameAndId(listAutomatic.getName(), id) > 0) {
listService.removeListByName(listAutomatic.getName());
}
com.b2list.integrator.data.model.List list = new com.b2list.integrator.data.model.List();
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
calendar.add(Calendar.HOUR, 1);
list.setStartDate(new Date());
list.setExpiresIn(new CronExpression(listAutomatic.getFrequency()).getNextValidTimeAfter(calendar.getTime()));
list.setName(listAutomatic.getName());
list.setWarehouse(listAutomatic.getWarehouse());
list.setBanner(listAutomatic.getBanner());

if (listAutomatic.getToEveryBuyer()) {
persistForEveryBuyer(list, listAutomatic);
} else {
persistForFilteredBuyer(
list,
listAutomatic
);
}
}
}

Anonymous 2022-07-06 15:06:35
springbootmicroservices-66790.jpg
I am calling an api from axios.its returning data like this.i want to copy these elements to another array without copying the index means my array should look like this [{name:”hsdh”},{name:”hdhd”}].how can I do that.
Manoj 2022-07-06 15:42:26
In my project .I am using directly (logger.info=’abc’) without instantiation. But logger is not printing …can you please where is wrong
Saravana M 2022-07-06 15:55:26
Manoj 2022-07-06 15:42:26
In my project .I am using directly (logger.info=’abc’) without instantiation. But logger is not printing …can you please where is wrong

https://www.slf4j.org/api/org/slf4j/Logger.html

v_lan1337 2022-07-06 16:02:05
Anonymous 2022-07-06 15:06:35
I am calling an api from axios.its returning data like this.i want to copy these elements to another array without copying the index means my array should look like this [{name:”hsdh”},{name:”hdhd”}].how can I do that.

I don’t know axios; but, seems axios by default returns json. Are you not able to store the response into json objects directly?

vinuser 2022-07-06 16:40:45
Anonymous 2022-07-06 15:06:35
I am calling an api from axios.its returning data like this.i want to copy these elements to another array without copying the index means my array should look like this [{name:”hsdh”},{name:”hdhd”}].how can I do that.

Get the json and use map function

Anonymous 2022-07-06 17:19:42
vinuser 2022-07-06 16:40:45
Get the json and use map function

Ok thank you

J7069-Dayal Kumar Chand 2022-07-06 17:31:59
springbootmicroservices-66801.jpg

J7069-Dayal Kumar Chand 2022-07-06 17:32:04
springbootmicroservices-66802.jpg

J7069-Dayal Kumar Chand 2022-07-06 17:33:07
When I keep multiple yml file into a single file it’s showing this error,plz help me how to resolve the error
ArJuNdO 2022-07-06 17:41:40
Multiple yaml content(spring profile) should be separated by three hyphens “—”
|