No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
i'd like to change my code from procedural to OOP and i've got a problem when it comes to naming methods. can somebody explain to me what's wrong with this - sort.java:36: ';' expected public static int sortAscending () { - i understand that semicolon is not needed sort.java:36: illegal … | |
i'm having a hard time creating a program that will display the initials of a string provided by the user. The program should also display the number of words of a given string. i've tried this code, but the problem is, the program would only display the first initial and … | |
Re: here's your code: import java.util.Scanner; public class multiplication_table { public static void main (String [] args){ Scanner in = new Scanner (System.in); int max = 12; for (int i = 1; i <= max; i++){ for (int j = 1; j <= max; j++){ System.out.print (i*j + " "); } … | |
Re: here's your code: import java.util.Scanner; public class times2 { public static void main (String [] args) { Scanner in = new Scanner (System.in); int max = 128; for (int i = 1; i <= max; i*=2){ System.out.print (i + " "); } } } |
The End.