pls I've tried my best... but I can't get past the first and 3rd condition
package com.codegym.task.task18.task1801;
import java.io.FileInputStream;
import java.util.*;
/*
Maximum byte
*/
public class Solution {
public static void main(String[] args) throws Exception {
// Scanner word = new Scanner(System.in);
// String file = word.nextLine();
FileInputStream input = new FileInputStream("c:/folder/filename.txt");
int max = 0;
while(input.available()> 0){
int data = input.read();
if (data > max){
max = data;
}
}
input.close();
System.out.println(max);
}
}