search google for a java file tutorial. you can use scanner and printwriter
Em 10/04/2017 00:07, "Abhishek Pal" <[email protected]> escreveu: > Okay. So I have programmed in java. Now the problem I'm facing is that my > program takes input directly from user and prints the output. I'm using > BlueJ as my IDE and hence it opens a window which is like the following on > running the program: > > Enter the number of test cases: > 4 > Enter the number: > 132 > Enter the number: > 7 > Enter the number: > 1000 > Enter the number: > 145 > Case #1: 129 > Case #2: 7 > Case #3: 999 > Case #4: 145 > > > This is what my output looks like. > The user directly enters the data and the output is produced. > But how am I supposed to enter the data from the file they have provided > because it has like 100 inputs which are impossible to enter in 4 minutes. > SO the conclusion is: > > What type of source code to submit? : .java file type or copy the code > into notepad and upload a .txt file. > > How to produce an output file? for java. > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/google-code/21c2b202-3138-465e-83ce-af6da2f4abe8%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/CAN6UTaywziK764eBemw3T9f1qV%3DwWy1W83RwQR1t2fs4ZyAmjA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
