How to use the technique of Array to replace switch statements
class Month {
public static void main(String[] args) {
String month1 , leapyear = null, name = null;
int year, days = 0, month ;
month1 = JOptionPane.sho wInputDialog("E nter a month: ");
month = Integer.parseIn t(month1);
switch (month) {...
User Profile
Collapse
-
find max value by Array
how to using the technique of Array so that I can input 5 values and then the program will find out which value is the large one.
Who can help me????
THANK!!!!! -
Thank you ,you all help me a lot!!!!!!!!!! -
I understand the concept, jos,but I can't write in code, I just wrike like that
class NestedLoop {
public static void main (String [] a) {
int n=5, i, j;
for (i = 1; i <=n; i++) {
Then I don't know how to write.Can help me how to write in code?Leave a comment:
-
Nested loop structure
hi
i am beginner in java and i need help with programining ,Please if you could suggest me some sites where i can see some solved examples of codes as well as i need code for following
55551
55512
55123
51234
12345
I need a code to make above mentioned , in nested loop form.
thanks and regards
No activity results to display
Show More
Leave a comment: