rai salvador

Greenhorn
+ Follow
since Aug 04, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by rai salvador

Aaron Shawlington wrote:

windy col wrote:Can anyone also suggest a book for someone brand new trying to learn Java? I need beginners level with really no knowledge of Java. I have gone to the suggested links and will also check out Cave of Programming. I tried using Eclipse and found NetBeans easier and BlueJ I tried as well from a course I am watching on Udacity.com. I really don't care for BlueJ. The more sites I go to I seem to end up more confused

I tried to put this into NetBeans and kept getting error messages. This was from http://javatutorialhq.com/java/program-structure/ (It didn't really copy and paste correctly)


class DeskFan {

boolean powerOn = false;
int currentGearSpeed=3;
boolean isOscillating=true;

void turnOn(boolean newVal){
powerOn = newVal; }
void changeGearSpeed(int newVal){

currentGearSpeed = newVal; }
void changeOscillation(boolean newVal){
isOscillating=newVal; }}


Thanks,

Windy



Looks like a rubbish tutorial (followed the link). The example is incomplete - there is no showState() method on the DeskFan class.



ok my bad, looks like you want a compilable source code then go in http://javatutorialhq.com/java/example-source-code/
10 years ago
i think it's too early for you to start with awt's, forms and anything that has to do with gui

better start with the basic java tutorial
10 years ago
Traversing to a file made easy using java nio api. Copying of directory using java nio is very easy. We just have to use the walkFileTree method and as we traverse on the directory entry we copy the folders and file contents.