Jump to content

So I have been learning java for almost a year now. Self taught. Using sites like udacity, sololearn and I have also been using the java for beginners jdk 8 revision. The problem is I have been doing all of this alone and when I reach a bump things get tough. So I came here wondering if there are other java learners or even gurus who are here who would like to join me maybe we could have like a session together once a week were I help you with what you don’t understand in Java and you help me with what I don’t understand like a little community but we have specific times when we come together to discuss. Please if you are interested please tell me down below so we can have further talks. 

Link to comment
https://linustechtips.com/topic/1063609-java-beginner/
Share on other sites

Link to post
Share on other sites

Yah. With the book I am on the chapter that talks about I/O and streams and I don’t get what streams are and also if using the java.io is better than using scanner objects for input. Still if you are willing to be part of what I talked about earlier I would love to know

Link to comment
https://linustechtips.com/topic/1063609-java-beginner/#findComment-12564175
Share on other sites

Link to post
Share on other sites

Can't answer about Java specifics but streams are what the name suggests. It's a "stream" of data. Basically imagine it as being like a tape. It contains all the data and you can scroll through it like you would with tape.

 

pseudo code!

var stream = File.Load(path) //opens the file stream
var data = stream.Read(0,100) //start at 0 read 100 bytes

There can be different type of streams i.e file streams or memory streams, but in the end they behave pretty much the same. It's a stream of data you can then read byte for byte.

 

For example, if you'd like to extract data without the header, you can simply load the file in a stream, and scrip the header size and read till file end to have everything except the header. Hope that helps clearing what's a stream. Feel free to ask if you still didn't fully understand it (would be understandable I suck at explaining)

Link to comment
https://linustechtips.com/topic/1063609-java-beginner/#findComment-12564231
Share on other sites

Link to post
Share on other sites

9 minutes ago, De-Wohli said:

Can't answer about Java specifics but streams are what the name suggests. It's a "stream" of data. Basically imagine it as being like a tape. It contains all the data and you can scroll through it like you would with tape.

 


pseudo code!

var stream = File.Load(path) //opens the file stream
var data = stream.Read(0,100) //start at 0 read 100 bytes

There can be different type of streams i.e file streams or memory streams, but in the end they behave pretty much the same. It's a stream of data you can then read byte for byte.

 

For example, if you'd like to extract data without the header, you can simply load the file in a stream, and scrip the header size and read till file end to have everything except the header. Hope that helps clearing what's a stream. Feel free to ask if you still didn't fully understand it (would be understandable I suck at explaining)

Thank you. Please if you know any java community that has something like a weekly meet up or you want to join one please inform me

 

Link to comment
https://linustechtips.com/topic/1063609-java-beginner/#findComment-12564250
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×