Course Solutions Uncategorized (Solved) : 1 Allows User Repeat Continue Program Many Times Wants Please Add Code Import Javautilscan Q32122393 . . . .

(Solved) : 1 Allows User Repeat Continue Program Many Times Wants Please Add Code Import Javautilscan Q32122393 . . . .

 

1. Allows user is to repeat/continue the program as manytimes as he/she wants
Please add it to the code below

import java.util.Scanner;

public class FormattingInteger {

//reverse method

public static void reverse (int num) {

int num_reverse=0;

while(num != 0)

{

num_reverse = num_reverse * 10;

num_reverse = num_reverse + num%10;

num = num/10;

  

}

System.out.println(“the number reversed “+num_reverse);

}

//even method

public static void even(int num) {

int even;

System.out.print(“the even digits are “);

while(num>0) {

even=num%10;

if(even%2==0) {

System.out.print(even +” “);

}

num=num/10;

}

}

//odd method

public static void odd(int num) {

int odd;

System.out.print(“the odd digits are “);

while(num>0) {

odd=num%10;

if(odd%2!=0) {

System.out.print(odd +” “);

}

num=num/10;

}

}

//validate method

public static String validate (int num) {

if(num>0) {

return “Enter number is gratter than zero”;

}

else {

return “Enter number is less than zero”;

}

}

public static void main(String[]

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Answered):Purpose Of Organizational Introductory Paper 2 Pages . . . .(Answered):Purpose Of Organizational Introductory Paper 2 Pages . . . .

<h3>Question Description</h3> <p style="text-align: center;"><strong>Purpose of Organizational Introductory Paper</strong></p><p>An Organizational Introductory Paper describes the organizations as a whole and your place within the organization.</p><p><strong>Guidelines for Writing Organizational Introductory Paper:</strong><br/></p><p>The following