Jump to content

Java Work Start Cheyyali..


Recommended Posts

Posted

hmmm inka java kaaledhu saami antey malli C# homework pettadu devudaa..

  • Replies 40
  • Created
  • Last Reply

Top Posters In This Topic

  • PMREDDY19

    19

  • k2s

    5

  • K.A.Paul

    5

  • htnamus

    4

Top Posters In This Topic

Posted

[quote name='PMR aka OM' timestamp='1320371807' post='3062414']
hmmm inka java kaaledhu saami antey malli C# homework pettadu devudaa..
[/quote]

kochens post chey baa :D

Posted

copy paste under progress...

Posted

[quote name='dennis' timestamp='1320372832' post='3062424']

kochens post chey baa :D
[/quote]


daaniki e book kuda ledhu baa asalu naa ssaavuki thodu,, adhi kuda ivva la post chesadu repu evening ki answers post cheyyali antunnaadu..

naaku e saduvu lolli endho inni rojula taruvata...

Posted

idhi thappu chesav baa..

1.16 The following program is wrong. Reorder the lines so that the program displays
morning followed by afternoon.
public static void main(String[] args) {
}
public class Welcome {
System.out.println("afternoon");
System.out.println("morning");
}

Ans ::
public class Welcome

{
public static void main(String[] args)
{
System.out.println("afternoon");


System.out.println("morning");
}
}


Morning followed by afternoon. annadu. aa system.out.println order maarchu

Posted

[color=#FF0000][font=helvetica, arial, sans-serif][b]1.2 (Displaying five messages) Write a program that displays Welcome to Java five [/b][/font][/color][b]times. [/b]

[b]Ans::[/b]

public class Test
{ int i =1;
public static void main(String[] args)
{
while(i<=5)
{
System.out.println("Welcome to Java");
i++;
}
}

i ni class variable laa kaakunda main function lo local variable laa declare cheyi..

public class Test
{
public static void main(String[] args)
{
int i =1;
while(i<=5)
{
System.out.println("Welcome to Java");
i++;
}
}

Posted

[quote name='mba' timestamp='1320375914' post='3062463']
idhi thappu chesav baa..

1.16 The following program is wrong. Reorder the lines so that the program displays
morning followed by afternoon.
public static void main(String[] args) {
}
public class Welcome {
System.out.println("afternoon");
System.out.println("morning");
}

Ans ::
public class Welcome

{
public static void main(String[] args)
{
System.out.println("afternoon");


System.out.println("morning");
}
}


Morning followed by afternoon. annadu. aa system.out.println order maarchu
[/quote]

thanks baa..


inka e program okasari compile cheppu baa.. naa Daggara Eclipse edho main not found antundhi..



import java.util.Scanner;

public class Convertmin2year

{

public static void main(String[] args)
{

long minutes;
int years;
double days;
Scanner input = new Scanner(System.in);
System.out.print("Enter a time in seconds: ");
minutes=input.nextLong();
years=(minutes/[365*24*60]);
days=(minutes%[365*24*60]);
System.out.println("The "+minutes+" minutes is approximately equal to "+years+" years and "+days+" days ");
}
}

Posted

[quote name='mba' timestamp='1320375985' post='3062464']
[color=#FF0000][font=helvetica, arial, sans-serif][b]1.2 (Displaying five messages) Write a program that displays Welcome to Java five [/b][/font][/color][b]times. [/b]

[b]Ans::[/b]

public class Test
{ int i =1;
public static void main(String[] args)
{
while(i<=5)
{
System.out.println("Welcome to Java");
i++;
}
}

i ni class variable laa kaakunda main function lo local variable laa declare cheyi..

public class Test
{
public static void main(String[] args)
{
int i =1;
while(i<=5)
{
System.out.println("Welcome to Java");
i++;
}
}
[/quote]


updated... thankyou baa.

aa paina thread lo vesina programme nenu ippudu download chesina eclipse lo run chesthey main class not found ani edho vachindi..

Posted

try this.. e rendu lines tappu
years=(minutes/[365*24*60]);
days=(minutes%[365*24*60]);

[] vaadakdadhu akkada.. normal brackets () vaadali..

import java.util.Scanner;

public class Convertmin2year

{

public static void main(String[] args)
{

long minutes;
int years;
double days;
Scanner input = new Scanner(System.in);
System.out.print("Enter a time in seconds: ");
minutes = input.nextLong();
years = (int) (minutes / (365 * 24 * 60));
days = (minutes % (365 * 24 * 60));
System.out.println("The " + minutes + " minutes is approximately equal to " + years + " years and " + days
+ " days ");
}
}

Posted
thankyou all

now starts the visual C# 2008 :

[url="http://www.andhrafriends.com/topic/227874-visual-c-2008-work-please-answers-related-postsreplies-only/"]http://www.andhrafriends.com/topic/227874-visual-c-2008-work-please-answers-related-postsreplies-only/[/url]
×
×
  • Create New...