Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.*;
- public class X
- {
- public static void main(String[] args)
- {
- BufferedReader in = new BufferedReader(new FileReader("\chisla.txt"));
- //как их связать?
- int[] array = {...};
- int max = 0;
- for (int i = 0; i < array.length; i++)
- {
- if (max < array[i])
- max = array[i];
- }
- System.out.println("Max: " + max);
- }
- }
Add Comment
Please, Sign In to add comment