This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class ReadInput { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| System.out.println(sc.nextLine()); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class BacisCalc { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| double fnum,snum,answer; | |
| System.out.println("Enter the First number: "); | |
| fnum = sc.nextDouble(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class MathOperators { | |
| public static void main(String []args){ | |
| Scanner sc = new Scanner(System.in); | |
| int girls,boys,people; | |
| girls = sc.nextInt(); | |
| boys= sc.nextInt(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class IncrementOperator { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| int pen = 5; | |
| int pencil = 1; | |
| //Post increment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <activity | |
| android:name=".MyActivity" | |
| android:label="@string/app_name" | |
| android:screenOrientation="landscape"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <activity | |
| android:name=".MyActivity" | |
| android:label="@string/app_name" | |
| android:configChanges="orientation|screenSize"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void doSomething(View v){ | |
| if(v.getId()==R.id.button1){ | |
| Log.d("SOMU","Button was clicked"); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MyActivity extends ActionBarActivity implements View.OnClickListener{ | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| //Log.d("SOMU","On Create called"); | |
| setContentView(R.layout.activity_my); | |
| one = (Button) findViewById(R.id.button1); | |
| one.setOnClickListener(this); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title> | |
| This is an php tutorial | |
| </title> | |
| </head> | |
| <body> | |
| <form action="learnphp.php" method="post"> | |
| <table border="0"> | |
| <tr> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| html { | |
| background: url(www/images/background.gif) no-repeat center center fixed; | |
| -webkit-background-size: cover; | |
| -moz-background-size: cover; | |
| -o-background-size: cover; | |
| background-size: cover; | |
| } |