Skip to content
Snippets Groups Projects
Commit 1f0e8474 authored by venkat's avatar venkat
Browse files

modification in the added new codes

parent b4f9ec2a
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ exponent power series ...@@ -74,7 +74,7 @@ exponent power series
00000037 00000037
factorial factorial
00000038 00000038
fibonacci fibonacc
00000039 00000039
floyd's triangle floyd's triangle
00000040 00000040
...@@ -122,7 +122,3 @@ transpose of a matrix ...@@ -122,7 +122,3 @@ transpose of a matrix
00000061 00000061
vowels_or_consonants vowels_or_consonants
00000062 00000062
\ No newline at end of file
...@@ -24,9 +24,38 @@ selection sort ...@@ -24,9 +24,38 @@ selection sort
simple interest simple interest
square root square root
sum of digits sum of digits
table of number table of numberarmstrong number
binary search
binary to decimal
bubble sort
bucket sort
calender
dictionary sort
divide_by_zero
dynamic memory allocation
exponent power series
factorial
fibonacci
floyd's triangle
GCD
heap sort
insertion sort
inverse of a matrix
knapsack problem
LCM
magic square
matrix multiplication
merge sort
no of prime between a and b
octal to decimal
prims algorithms
radix sort
reverse a string
Root of a factorial
RSA agorithm
sequential search
singly linked list
standard deviation
tower of hanoi
transpose of a matrix
vowels_or_consonants
\ No newline at end of file
...@@ -3,6 +3,7 @@ package com.example.venkat.and; ...@@ -3,6 +3,7 @@ package com.example.venkat.and;
import android.support.v7.app.AppCompatActivity; import android.support.v7.app.AppCompatActivity;
import android.os.Bundle; import android.os.Bundle;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;
...@@ -15,6 +16,7 @@ public class Disp_code extends AppCompatActivity { ...@@ -15,6 +16,7 @@ public class Disp_code extends AppCompatActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_disp_code); setContentView(R.layout.activity_disp_code);
String file = getIntent().getExtras().getString("file").toString(); String file = getIntent().getExtras().getString("file").toString();
// Toast.makeText(this,file, Toast.LENGTH_SHORT).show();
//String file="INDEX.txt"; //String file="INDEX.txt";
if (file != "NOTHING.txt") { if (file != "NOTHING.txt") {
StringBuilder Sb; StringBuilder Sb;
...@@ -38,6 +40,7 @@ public class Disp_code extends AppCompatActivity { ...@@ -38,6 +40,7 @@ public class Disp_code extends AppCompatActivity {
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
Toast.makeText(this, e.toString(), Toast.LENGTH_SHORT).show();
} }
} }
else { else {
......
...@@ -89,7 +89,7 @@ ListView listView=(ListView)findViewById(R.id.sample_list); ...@@ -89,7 +89,7 @@ ListView listView=(ListView)findViewById(R.id.sample_list);
e.printStackTrace(); e.printStackTrace();
} }
fl=fl+".txt"; fl=fl+".txt";
Toast.makeText(Sample.this, fl, Toast.LENGTH_SHORT).show(); Toast.makeText(Sample.this, fl, Toast.LENGTH_LONG).show();
Intent i =new Intent(Sample.this,Disp_code.class); Intent i =new Intent(Sample.this,Disp_code.class);
i.putExtra("file",fl); i.putExtra("file",fl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment