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
00000037
factorial
00000038
fibonacci
fibonacc
00000039
floyd's triangle
00000040
......@@ -122,7 +122,3 @@ transpose of a matrix
00000061
vowels_or_consonants
00000062
\ No newline at end of file
......@@ -24,9 +24,38 @@ selection sort
simple interest
square root
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;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.IOException;
......@@ -15,6 +16,7 @@ public class Disp_code extends AppCompatActivity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_disp_code);
String file = getIntent().getExtras().getString("file").toString();
// Toast.makeText(this,file, Toast.LENGTH_SHORT).show();
//String file="INDEX.txt";
if (file != "NOTHING.txt") {
StringBuilder Sb;
......@@ -38,6 +40,7 @@ public class Disp_code extends AppCompatActivity {
} catch (IOException e) {
e.printStackTrace();
Toast.makeText(this, e.toString(), Toast.LENGTH_SHORT).show();
}
}
else {
......
......@@ -89,7 +89,7 @@ ListView listView=(ListView)findViewById(R.id.sample_list);
e.printStackTrace();
}
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);
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