Hello,
I'm very new to Java Programming, and I've been working on a project. Probably easy, I just can't seem to know what to do next.
Well basically creating an ASCII table.
I prompt a user for a number , which will define my number of groups in my table. ( I've already prompt the user)
I produce an ASCII table from 0 -127
Im organizing my groups in 3 tables displaying values as a char, in hex, and in decimal.
When I print the number of groups defined by the user, i need to input a new line and continue.
I know my solution must use a loop that goes from 0 - 127, and a second control structure to determine where to start a new line when i have enough groups printed.
package first; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int userNum; System.out.println("Enter an integer: "); userNum = input.nextInt(); while (userNum < 128) { if (userNum > 6 && userNum < 9 || userNum == 13) { } } } }
So im not asking anyone to give me the answer, but I want to know if im on the right track or not, and if so perhaps you can point me in the right direction or suggest type of tutorials that will help me. Im really do want to learn and not just copy paste.
Thanks
Oh this is the sample output im sure that will give a better understanding of what im trying to achieve.
sample.jpg