Need to make a method for taking an input, num= stdIn.nextLine(); and converting it into a binary string. "public static String toBinary(String num)". In Java. Any ideas? Can only find for int to binary. Needs to be string so user can enter "q" to exit program.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…