Hey guys,I'm new to java programming and I am taking an introductory class to computer programming; and I am having trouble with our first assignment. Basically all I want my program to do is gather an integer of 5 digits,then after gathering said integer, change the 2nd and 4th numbers into zeros. This is what I have so far...I don't know how to make it change the 2 numbers.
//Source listing for Assignment 1. import javax.swing.JOptionPane; public class Assignment1 { public static void main(String[] args) { int number,modnumber; String inputString; //Accept the data. inputString = JOptionPane.showInputDialog ("Enter the number:"); number= Integer.parseInt (inputString); modnumber=number; System.out.println("The number entered is:" + number); System.out.println("The modified number is:" + modnumber); } }