furious_gamer
Excessive happiness
So what is the best way to learn java from scratch?? I'm pretty much aware of C and C++.
Head First Java is another fun way to learn Java. The Complete Reference will be useful read if you finish the Head First.
So what is the best way to learn java from scratch?? I'm pretty much aware of C and C++.
SELECT * FROM pnotocdm WHERE time > time('now','localtime') LIMIT 4;
Multiple markers at this line
- Syntax error on token ")", ;
expected
- Syntax error on token "(", ;
expected
package com.example.toggleclock;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AnalogClock;
import android.widget.CompoundButton;
import android.widget.ToggleButton;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final AnalogClock clock = (AnalogClock) findViewById(R.id.AnalogClock);
ToggleButton toggle = (ToggleButton) findViewById(R.id.ToggleButton);
toggle.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (isChecked) {
@Override
# public void onClick(View v) {
clock.setVisibility(View.VISIBLE);
}
}
else {
@Override
# public void onClick(View v) {
clock.setVisibility(View.INVISIBLE);
}
}
}
});
}
}
<RelativeLayout xmlns:android="*schemas.android.com/apk/res/android"
xmlns:tools="*schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="${packageName}.${activityClass}" >
<ToggleButton
android:id="@+id/ToggleButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textOn="@string/on"
android:textOff="@string/off"
android:checked="true" />
<AnalogClock
android:id="@+id/AnalogClock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/ToggleButton"
android:layout_centerHorizontal="true" />
</RelativeLayout>
I have installed the jdk1.8.0_11 I also get the verification that the software is installed successfully. I am using the book "CORE JAVA Volume 1 - Fundamentals" 9th edition written by Cay S. Horstmann, Gary Cornell. In this book they have said to make a directory by using the command "mkdir src". Every thing is fine uptil C:\Program Files\Java\jdk1.8.0_11\bin But after this when I use the command "mkdir src" I get the following error "Access Denied". I have set the path correctly. Please help. I am sorry if I have posted the question in the wrong thread. But I am new to programming. Thank you
Get Eclipse Luna, it takes 5 mins to setup, and then code away, luna supports java 8. Also if you need to learn J2EE, just get TomEE. Coding via notepad is not a a very good way at all, you need to debug your code, see the console, use an IDE.I have installed the jdk1.8.0_11 I also get the verification that the software is installed successfully. I am using the book "CORE JAVA Volume 1 - Fundamentals" 9th edition written by Cay S. Horstmann, Gary Cornell. In this book they have said to make a directory by using the command "mkdir src". Every thing is fine uptil C:\Program Files\Java\jdk1.8.0_11\bin But after this when I use the command "mkdir src" I get the following error "Access Denied". I have set the path correctly. Please help. I am sorry if I have posted the question in the wrong thread. But I am new to programming. Thank you
Thanks, is there any local edition available? The price is out of my range.@Tkin
Hello my friend.
I'm a huge fan of cay horstmann. Try this for java 8 - Buy Java SE 8 for the Really Impatient Book Online at Low Prices in India | Java SE 8 for the Really Impatient Reviews & Ratings - Amazon.in
Their Core series act has a very good reference. So i suggest you to try this.
Btw buddy i don't recommend the scjp book by sierra and bates to a newbie into the world of java. I would suggest their head first book to absolute beginners.
Thanks, is there any local edition available? The price is out of my range.
^^ Did you checked these?
Link1
Link 2