Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Java
(view source)
Revision as of 06:23, 26 March 2015
452 bytes added
,
06:23, 26 March 2015
no edit summary
Line 148:
Line 148:
System.out.println(grid[1][1];
System.out.println(grid[1][1];
String[][] = new String[2][3];
String[][] = new String[2][3];
+
</source>
+
+
== Classes and Objects ==
+
<source lang="java">
+
class Person {
+
String name;
+
int age;
+
+
void speak() {
+
+
}
+
}
+
+
public class App {
+
public static void main(String[] args){
+
Person person1 = new Person();
+
+
person1.name = "Jhon Doe";
+
person1.age = 37;
+
+
person1.speak();
+
}
</source>
</source>
Line 154:
Line 176:
Ctrl + d → Delete Line<br />
Ctrl + d → Delete Line<br />
Ctrl + o → Automatically add imports<br />
Ctrl + o → Automatically add imports<br />
+
Ctrl + Shift + f → Indent<br />
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version