No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
Hi How can I get the maximum digit from a number entered by the user? Example: if user inputs: 1521, the program should output 5 as maximum. Any help please? NOTE: I want it to be made using 2 methods. AND don't give me answers with arrays. :) This is … | |
Hi, I have a Java Final exam after few days. And I am looking for some website that contains [B]SOLVED [/B]programming exercises. Can anyone give me at least one site? Note: what I mean by [B]SOLVED [/B]is that I want the exercises to have solutions with them because I want … ![]() | |
[B]Hi guys Whenever I run this program, some weird characters like: ([/B] [COLOR="Green"][I@1f436f5[/COLOR] [B]) appear.[/B] [CODE]int[] list= new int[3]; Scanner scan = new Scanner(System.in); for(int i=0;i<list.length;i++){ System.out.println("Enter a number:"); list[i] += scan.nextInt(); } System.out.print(list);[/CODE] [B]How can I fix this? It is supposed to print the numbers entered from the user … | |
Hi, I am making a program where the user has to input an integer with LESS than 5 digits. If he enters more than 5 digits, I want the program to print: "ERROR" How can I do that? I wrote this code till now. Do I have to use a … | |
Hi guys, I want to find the sum of numbers(inclusive) between TWO integers inputted by user. Example: if user enters 1 and 4, then it outputs: Sum = 10 I just started my code: [CODE]public static void main(String[] args) { int number1 = 0,number2 = 0,Sum = 0; Scanner input … | |
Hi I have this problem where I tell the user to prompt 10 integers separated with spaces. And then I have to output the same numbers the user entered and then output max and min numbers. So How can I get the maximum value of these multiple integers? This is … |
The End.