Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want a program for printing numbers in below format in java.
for(int i=0,r=1;i<h.length/2;) {
//System.out.println(h[i]);
for(int j=i;j<r;j++) {
System.out.print(h[j]);
}
System.out.println("");
r=r+2;
}
The expected output should be
1
24
356
System.out.println("1\n\n24\n\n356");
</sarcasm>
more information is needed (what is your exact problem? what do you want to achieve? input -> outcome)
what have you tried and where exactly are you stuck.
Edit your question and i edit my answer ;)
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 15 hours ago.
Improve this question
enter image description here
I've tried googling and I have even created a chegg account but I didn't get an explanation or what I was expected to do.
What am I expected to put in the box?
What am I expected to put in the box?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I want to make an arraylist that has random numbers and make it in order from least to greatest.
How do I do this?
Try using the
Collections.sort(your_array_name)
This sorts your array from least to greatest in place.
If you still want some more information, try this link:
https://www.geeksforgeeks.org/collections-sort-java-examples/
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
Before
[/data/user/0/com.example.hx_loom.evpa/cache/EasyImage/a85f8011-10d5-4050-89d2-1e575da55522.jpg,
/data/user/0/com.example.hx_loom.evpa/cache/EasyImage/4737a29f-7df2-4e1f-abe3-18b71293d76e.jpg]
After
a85f8011-10d5-4050-89d2-1e575da55522.jpg,4737a29f-7df2-4e1f-abe3-18b71293d76e.jpg
please help me this algoritma
If the pattern of the directory of your images is always the same you can incorporate a regular expression to parse everything after EasyImage/.
You can use:
([^\/]+)(?=$)
It matches any character after the last slash.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to generate a regex in android to check plate numbers like
3 letters 1 space and 4 decimal numbers
LLL NNNN
That will be [a-zA-Z]{3}\\s[\\d]{4} as Java string
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
What function in java gives you the output of these:
05e0
01e1
42e0
66e6
I've tried exp() and expm() but doesn't give the right answer.
I think you want
Double.valueOf("66e6");