- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Here's a question i got in my assignment... [QUOTE]Create a method with signature public String testWindDirection() that creates a local object of type WeatherReport using the constructor with no parameters, and returns its initial wind direction, e.g "ESE"[/QUOTE] I createrd it here... [CODE]public class Reporter { private WeatherStation ws; private … | |
I'm was wondering if someone can check if this method produce the right result? [CODE] public int fileSize (String name) throws IOException { int charLength = 0; File file = new File("name"); Scanner input = new Scanner(file); while (input.hasNext()) { charLength++; } return charLength; }[/CODE] What this is supposed to … | |
Hello guys, I'm trying to create a method where it takes a InputStream as a parameter, reads the stream and returns the number of characters it contains as an int. I'm having difficulties with this. I've searched the internet for examples, but i can't find one that helps me with … |