We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Java Currency Formatter
Java Currency Formatter
Sort by
recency
|
855 Discussions
|
Please Login in order to post a comment
Had to switch from Java 15 to Java 8 to not deal with the problem.
My solution .... i hope i helped someone who stuck
public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double payment = scanner.nextDouble(); scanner.close();
i am using Java 15, but expected output is "Rs." On output in java 15 is "₹", i just switch for java 8 and play start, it worked out
Please use the Java 8 compiler for this code. If you find the solution helpful, kindly leave your feedback in the comments.
Thanks, this was really helpful!
import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*;
public class Solution {
}****