even i don't like it.
But sadly, when this is what you've been taught since your first programming class,this is what happens.
they would ask us not to take names of variable and class which are long (like index,Maxvalues,etc.) even though they are sensible.
I'll take note of it.
I'm calculating maximum and minimum values so i can sort them in descending order because i couldn't think of how to sort the the elements which are arranged in both rows and columns.
I have taken the variables as follows:
A[][]=the matrix
max=to store the maximum integer value present in the matrix
min=to store the minimum integer value present in the matrix
sum=to store the sum of boundary elements
display()=methos to print matrix
sort()=method to sort matrix in descending...
I tried again.This time I was able to compile it it is printing "Queue is Empty" when it should print "Queue is full" Also I don't know what to do with the value returned by the pop() function/should I simply print it?
import java.io.*;
class CirQueue {
int cirque[]; //to store the...
Summary:: I have recently started with data structures in java and I tried doing this Program .But I have few confusions.
1.How do I write the main() of the program?
2.What are we supposed to do with the value returned by function pop()?
If anyone could point out if there are any errors and...
Today I learned about amazing facts that Green Chemistry is resulting in.and It is actually turning Oranges to plastic!
http://advancinggreenchemistry.org/tag/co2/#:~:text=The%20results%20are%20explained%20in,the%20carbon%20dioxide%20they%20produce.
I agree with you.
I think when the glass is released,the bubbles will remain stationary until the glass hits the floor .due to inertia,the bubbles will remain stationary and will not even rise with respect to the glass.
If you're asking out of curiosity,I think that is because when you move out from your house,there's a sudden change in temperature and as a defence mechanism of our body,the blood vessels beneath our skin contract to prevent the body from escaping.This is known as Vasoconstriction.It could be...
the condition is not for the pressure to be constant,Infact,the pressure is not CONSTANT ,it is EQUAL(or same) on every face of the cube .the pressure is equal because the a liquid exerts equal perpendicular force on every face of the cube and since ,According to pascal's law,
P=F/A;(Force is...
Hi guys. I'm ishika and I'm always fascinated by science.and i specially love physics.
I also like programming.currently,I'm doing java.
I found that there's a lot I could learn from here.
I'm a grade 12 student and I look forward to learn a lot more with you guys.