
Write a program that prompts the user for 2 different integers, then prints out the numbers between the 2 integers (inclusive) and their squares and the sum of their squares.
Write a program that reads a string from a user and then prints it out one character at a time.
Write a program that will print the complete multiplication chart. Bonus for printing it out to a file (in the form of a chart).
Either of them will be help full. Thanks for any help in advance.

import java.util.*;
class NumberExample1
{
public static void main(String[] args)
{
Scanner input=new Scanner(System.in);
System.out.print("Enter Number1: ");
int num1=input.nextInt();
System.out.print("Enter Number2: ");
int num2=input.nextInt();
int sum=0;
System.out.println("Number Square");
for(int i=num1+1;i<num2;i++){
System.out.println(i+"\t"+(i*i));
sum+=(i*i);
}
System.out.println("Sum of squares: "+sum);
}
}

import java.util.*;
class CharacterArray
{
public static void main(String[] args)
{
Scanner input=new Scanner(System.in);
System.out.print("Enter String: ");
String st=input.nextLine();
System.out.println("Characters of string: ");
char ch[]=st.toCharArray();
for(int i=0;i<ch.length;i++){
System.out.println(ch[i]);
}
}
}

import java.io.*;
public class MultiplicationTable{
public static void main(String[] args) {
try{
BufferedWriter bw=new BufferedWriter(new FileWriter("c:/table.txt",true));
int[][] array = new int[11][11];
for (int i=1; i<array.length; i++) {
for (int j=1; j<array[i].length; j++) {
array[i][j] = i*j;
System.out.print(" " + array[i][j]);
bw.write(" "+Integer.toString(array[i][j]));
}
System.out.println();
bw.newLine();
}
bw.close();
}
catch(Exception e){}
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.